# Search results for: "mcp"

## for/cursor.md (score: 1.000)

# Sotro for Cursor

## Configure .cursor/mcp.json

Add sotro to ~/.cursor/mcp.json (or .cursor/mcp.json for OAuth sign-in without a hardcoded secret):

```
{
  "mcpServers": {
    "sotro": {
      "type": "http",
      "url": "https://app.sotroai.com/mcp"
    }
  }
}
```

When using a scoped API key in your user-level ~/.cursor/mcp.json :

```
{
  "mcpServers": {
    "sotro": {
      "type": "http",
      "url": "https://app.sotroai.com/mcp",
      "headers": { "Authorization": "Bearer pvk_…" }
    }
  }
}
```

- Never commit a live pvk_… or pvt_… token inside a repository .cursor/mcp.json .

- Reload MCP servers in Cursor Settings after updating your configuration.

---

## for/antigravity.md (score: 0.967)

# Sotro for Google Antigravity

## Configure ~/.gemini/config/mcp_config.json

Add sotro under mcpServers in ~/.gemini/config/mcp_config.json :

```
{
  "mcpServers": {
    "sotro": {
      "url": "https://app.sotroai.com/mcp"
    }
  }
}
```

To authenticate with a workspace API key or member token instead of browser OAuth, include the Authorization header:

```
{
  "mcpServers": {
    "sotro": {
      "url": "https://app.sotroai.com/mcp",
      "headers": { "Authorization": "Bearer pvk_…" }
    }
  }
}
```

- Point Antigravity at SKILL.md ( setup-sotro ) or auth.md when bootstrapping workspace credentials without a TTY.

- Reload MCP servers in Antigravity after saving mcp_config.json .

---

## SKILL.md (score: 0.966)

# Set up Sotro

## 1. Check MCP connection

If the Sotro MCP server (`https://app.sotroai.com/mcp`) is already attached,
call `whoami` first.

- If `whoami` succeeds, confirm the workspace, scope, and role match what your
  user expects before calling anything else.
- If `whoami` returns `401` or fails authorization, ask your user to complete
  Sign in with Sotro in their client or set `SOTRO_TOKEN` in their environment.
  Do not continue until `whoami` succeeds.

If Sotro MCP is not attached yet, check whether OAuth sign-in is enabled:

```sh
curl -s -o /dev/null -w "%{http_code}\n" https://app.sotroai.com/.well-known/oauth-protected-resource/mcp
```

- `200`: add `https://app.sotroai.com/mcp` with OAuth sign-in, or use a bearer
  token (`SOTRO_TOKEN` with an org API key `pvk_...` or member token `pvt_...`).
- `404`: use a bearer token via `SOTRO_TOKEN` (created under **Settings -> API keys**).

Quick client setup:

```sh
# Claude Code (OAuth sign-in, then run /mcp to sign in)
claude mcp add --transport http sotro https://app.sotroai.com/mcp

# Claude Code (token)
claude mcp add --transport http sotro https://app.sotroai.com/mcp \
  --header "Authorization: Bearer $SOTRO_TOKEN"

# Codex CLI (OAuth sign-in; for token add bearer_token_env_var = "SOTRO_TOKEN" under [mcp_servers.sotro] in ~/.codex/config.toml)
codex mcp add sotro --url https://app.sotroai.com/mcp && codex mcp login sotro
```

For Gemini CLI (`~/.gemini/settings.json`, key `httpUrl`) or Antigravity / Cursor / other JSON MCP clients (`mcpServers` with `"type": "http"`):

```json
{ "mcpServers": { "sotro": { "type": "http", "url": "https://app.sotroai.com/mcp", "headers": { "Authorization": "Bearer <SOTRO_TOKEN>" } } } }
```

Never ask your user to paste a key into chat. Have them export `SOTRO_TOKEN`
in their shell.

---

## agents.md (score: 0.959)

# Sotro for AI agents

## Set up your client

Use the block for the client you are. If none matches, use the JSON form.

**Claude Code**, with a token:

```bash
claude mcp add --transport http sotro https://app.sotroai.com/mcp --header "Authorization: Bearer $SOTRO_TOKEN"
```

With sign-in, where it is on:

```bash
claude mcp add --transport http sotro https://app.sotroai.com/mcp
```

then `/mcp` in a session to sign in.

**Claude (claude.ai, desktop, mobile).** Settings, Connectors, Add custom
connector, URL `https://app.sotroai.com/mcp`, Connect, then sign in. Needs
sign-in to be on.

**ChatGPT.** Settings, Apps & Connectors, Advanced, Developer mode on, then
Create: URL `https://app.sotroai.com/mcp`, authentication OAuth. Needs sign-in
to be on.

**Codex CLI**, with sign-in:

```bash
codex mcp add sotro --url https://app.sotroai.com/mcp
```

```bash
codex mcp login sotro
```

With a token, set `bearer_token_env_var = "SOTRO_TOKEN"` under
`[mcp_servers.sotro]` in `~/.codex/config.toml`.

**Gemini CLI.** In `~/.gemini/settings.json`:

```json
{ "mcpServers": { "sotro": { "httpUrl": "https://app.sotroai.com/mcp" } } }
```

Add `"headers": { "Authorization": "Bearer pvk_…" }` for a token.

**Google Antigravity.** In `~/.gemini/config/mcp_config.json`:

```json
{
  "mcpServers": {
    "sotro": {
      "url": "https://app.sotroai.com/mcp"
    }
  }
}
```

Add `"headers": { "Authorization": "Bearer pvk_…" }` for a token.

**Devin.** Settings, MCP Marketplace, Add your own: transport HTTP, URL
`https://app.sotroai.com/mcp`, then OAuth, or a header
`Authorization: Bearer pvk_…` with an org key limited to the team Devin works
for.

**Any other client that takes a JSON config:**

```json
{
  "mcpServers": {
    "sotro": {
      "type": "http",
      "url": "https://app.sotroai.com/mcp",
      "headers": { "Authorization": "Bearer pvk_…" }
    }
  }
}
```

Merge this into the client's existing config. Do not replace other servers.

---

## for/codex.md (score: 0.945)

# Sotro for Codex

## Add Sotro in Codex CLI

Register the HTTP MCP server and sign in through your browser with your Sotro account:

```
codex mcp add sotro --url https://app.sotroai.com/mcp
codex mcp login sotro
```

To authenticate with an environment token instead of browser sign-in, point Codex at SOTRO_TOKEN in ~/.codex/config.toml :

```
[mcp_servers.sotro]
url = "https://app.sotroai.com/mcp"
bearer_token_env_var = "SOTRO_TOKEN"
```

- In ChatGPT, enable Developer mode under Settings → Apps & Connectors → Advanced and add https://app.sotroai.com/mcp with OAuth.

- Codex reads SOTRO_TOKEN at launch, so the plaintext key never touches disk.

---
