# Connect your agents

> Add InterfAIce to Claude Code, Codex, Cursor, GitHub Copilot (in VS Code or the CLI), Gemini CLI, Devin, Muse Code, OpenCode, Kilo, Cline, Qwen Code, Crush, Mistral Vibe, Claude or ChatGPT, or any MCP client.

Every client connects to the MCP endpoint https://interfaice-production.up.railway.app/mcp (Streamable HTTP). Clients that support OAuth sign-in use it; others send an agent token from https://interfaice-production.up.railway.app/app/agents as `Authorization: Bearer ifk_...`.

## Claude Code (terminal or IDE) (tested)

Tested in real use since 2026-10-30, through the claude.ai connector. Set up with claude mcp add, it was tested 2026-11-29 with Claude Code 2.1.332 against a test copy of InterfAIce, with a scripted stand-in for the AI model: browser sign-in and an agent token each ran the full working loop. That browser sign-in isn't confirmed on the live service yet. The IDE extensions aren't tried yet.

Run in a terminal. Use --scope user to make it available in every repo.

```
claude mcp add --transport http --scope user interfaice https://interfaice-production.up.railway.app/mcp
# then inside Claude Code: /mcp → interfaice → Authenticate
```

Signed in with a Claude plan? The claude.ai connector (see Claude Code on the web) reaches terminal and IDE sessions too, with nothing to run. A server added here takes precedence over a connector with the same URL.

So sessions pick up interfaice items without being asked, add these hooks to ~/.claude/settings.json (every repo) or a repo's .claude/settings.json. They call interfaice over the connection above, so no token is stored. Only a coordinator's Stop hook waits (up to 4 minutes) for new items; press Esc to stop waiting.

```json
{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "mcp_tool",
            "server": "interfaice",
            "tool": "client_hook",
            "input": {
              "event": "SessionStart"
            },
            "timeout": 20
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "mcp_tool",
            "server": "interfaice",
            "tool": "client_hook",
            "input": {
              "event": "UserPromptSubmit"
            },
            "timeout": 20
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "hooks": [
          {
            "type": "mcp_tool",
            "server": "interfaice",
            "tool": "client_hook",
            "input": {
              "event": "PostToolUse"
            },
            "timeout": 5
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "mcp_tool",
            "server": "interfaice",
            "tool": "client_hook",
            "input": {
              "event": "Stop",
              "wait_seconds": 240
            },
            "timeout": 300
          }
        ]
      }
    ]
  }
}
```

## Claude Code on the web (cloud sessions) (tested)

Tested 2026-10-29 with real cloud sessions on the claude.ai connector: OAuth sign-in and the full working loop.

Cloud sessions on claude.ai and in the Claude app start in a fresh container, so `claude mcp add` and `~/.claude/settings.json` don't last there. They use your claude.ai connectors instead: open [the add-connector dialog on claude.ai](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=interfaice&connectorUrl=https%3A%2F%2Finterfaice-production.up.railway.app%2Fmcp) (or Settings → Connectors → Add custom connector and paste the URL), then Connect and approve. Sessions started after that have it.

```
https://interfaice-production.up.railway.app/mcp
```

Hooks aren't offered for cloud sessions yet: committed to the repo, they would run for every teammate and carry one person's connector name. The AGENTS.md section already has each session call get_context first and finish_work last.

## Cursor (not yet tested)

Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one repo).

```
{
  "mcpServers": {
    "interfaice": {
      "url": "https://interfaice-production.up.railway.app/mcp"
    }
  }
}
```

Without a header Cursor runs the OAuth sign-in in your browser.

So sessions pick up interfaice items without being asked, add these hooks to ~/.cursor/hooks.json, with INTERFAICE_CURSOR_TOKEN set to an agent token in your environment (macOS and Linux shells).

```json
{
  "version": 1,
  "hooks": {
    "sessionStart": [
      {
        "command": "curl -fsS -m 10 -X POST -H \"Authorization: Bearer $INTERFAICE_CURSOR_TOKEN\" -H \"Content-Type: application/json\" --data-binary @- \"https://interfaice-production.up.railway.app/api/v1/hooks/cursor?event=sessionStart\" || echo '{}'"
      }
    ],
    "postToolUse": [
      {
        "command": "curl -fsS -m 5 -X POST -H \"Authorization: Bearer $INTERFAICE_CURSOR_TOKEN\" -H \"Content-Type: application/json\" --data-binary @- \"https://interfaice-production.up.railway.app/api/v1/hooks/cursor?event=postToolUse\" || echo '{}'"
      }
    ],
    "stop": [
      {
        "command": "curl -fsS -m 250 -X POST -H \"Authorization: Bearer $INTERFAICE_CURSOR_TOKEN\" -H \"Content-Type: application/json\" --data-binary @- \"https://interfaice-production.up.railway.app/api/v1/hooks/cursor?event=stop&wait_seconds=240\" || echo '{}'"
      }
    ]
  }
}
```

## OpenAI Codex (CLI, IDE extension and app) (partly tested)

Partly tested 2026-11-29 with Codex CLI 0.172.0 against a test copy of InterfAIce, with a scripted stand-in for the AI model: an agent token ran the full working loop, but browser sign-in isn't confirmed. It ran only with sign-in details rebuilt from what OpenAI publishes, because the test machine couldn't fetch the published ones. The IDE extension and app aren't tried yet.

Run in a terminal. Codex opens your browser to sign in; if it doesn't, run the login line. The CLI, IDE extension and app share this setting.

```
codex mcp add interfaice --url https://interfaice-production.up.railway.app/mcp
# if the browser didn't open:
codex mcp login interfaice
```

The same in `~/.codex/config.toml`: `[mcp_servers.interfaice]` with `url = "https://interfaice-production.up.railway.app/mcp"`. Older Codex versions only speak stdio MCP; update first.

So sessions pick up interfaice items without being asked, put these hooks in ~/.codex/hooks.json (or a repo's .codex/hooks.json), then trust them with /hooks. They call interfaice over the connection above.

```json
{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "mcp_tool",
            "server": "interfaice",
            "tool": "client_hook",
            "input": {
              "event": "SessionStart"
            },
            "timeout": 20
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "mcp_tool",
            "server": "interfaice",
            "tool": "client_hook",
            "input": {
              "event": "UserPromptSubmit"
            },
            "timeout": 20
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "hooks": [
          {
            "type": "mcp_tool",
            "server": "interfaice",
            "tool": "client_hook",
            "input": {
              "event": "PostToolUse"
            },
            "timeout": 5
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "mcp_tool",
            "server": "interfaice",
            "tool": "client_hook",
            "input": {
              "event": "Stop",
              "wait_seconds": 240
            },
            "timeout": 300
          }
        ]
      }
    ]
  }
}
```

## Gemini CLI (and Gemini Code Assist) (tested)

Tested 2026-11-29 with Gemini CLI 0.71.1 against a test copy of InterfAIce, with a scripted stand-in for the AI model: browser sign-in and an agent token each ran the full working loop. Gemini Code Assist isn't tried yet.

Run in a terminal, then sign in from inside Gemini CLI. Gemini CLI turns MCP servers off in a folder you haven't trusted, so choose Trust when it asks about the folder. If you said no to it before, run /permissions trust inside Gemini CLI. Sign-in needs a browser on the same computer; over SSH, use an agent token instead.

```
gemini mcp add --scope user --transport http interfaice https://interfaice-production.up.railway.app/mcp
# then inside Gemini CLI:
/mcp auth interfaice
```

## Muse Code (not yet tested)

Add under "mcp_servers" in ~/.config/muse/settings.json (keep "schema_version": 1 and your other settings), then sign in from a terminal: run `muse mcp login interfaice`.

```
{
  "schema_version": 1,
  "mcp_servers": {
    "interfaice": {
      "transport": "streamable_http",
      "url": "https://interfaice-production.up.railway.app/mcp",
      "mode": "optional"
    }
  }
}
```

Keep "mode": "optional" so Muse Code still runs when interfaice is unreachable. Project AGENTS.md loads only after you trust the workspace. To use an agent token instead of sign-in, add "headers": { "Authorization": "Bearer ${INTERFAICE_MUSE_TOKEN}" } and export INTERFAICE_MUSE_TOKEN.

## VS Code (GitHub Copilot agent mode) (not yet tested)

Add to .vscode/mcp.json, or your user MCP config.

```
{
  "servers": {
    "interfaice": {
      "type": "http",
      "url": "https://interfaice-production.up.railway.app/mcp"
    }
  }
}
```

## Devin Desktop (formerly Windsurf) (not yet tested)

Open the MCP config file from Devin Desktop’s MCP settings (~/.codeium/mcp_config.json) and add this under mcpServers, then choose Authenticate next to interfaice. Desktop signs in separately from the Devin CLI.

```
{
  "mcpServers": {
    "interfaice": {
      "serverUrl": "https://interfaice-production.up.railway.app/mcp"
    }
  }
}
```

Windsurf became Devin Desktop on June 2, 2026, keeping its ~/.codeium paths.

## Devin CLI (not yet tested)

Run in a terminal. The CLI asks you to sign in on first use, or sign in now with the login line. It keeps its own sign-in, apart from Devin Desktop’s.

```
devin mcp add -s user interfaice https://interfaice-production.up.railway.app/mcp
# sign in now instead of on first use:
devin mcp login interfaice
```

## GitHub Copilot CLI (partly tested)

Partly tested 2026-11-29 with Copilot CLI 1.0.117 against a test copy of InterfAIce, with a scripted stand-in for the AI model: an agent token ran the full working loop, but browser sign-in isn't confirmed. The test machine couldn't fetch the sign-in details GitHub publishes, so it ran only with made-up ones.

Run in a terminal, then start copilot. It opens your browser to sign in the first time it connects.

```
copilot mcp add --transport http interfaice https://interfaice-production.up.railway.app/mcp
```

## OpenCode (tested)

Tested 2026-11-29 with OpenCode 1.19.6 against a test copy of InterfAIce, with a scripted stand-in for the AI model: browser sign-in and an agent token each ran the full working loop.

Add under "mcp" in ~/.config/opencode/opencode.json, then sign in from a terminal: run `opencode mcp auth interfaice`.

```
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "interfaice": {
      "type": "remote",
      "url": "https://interfaice-production.up.railway.app/mcp"
    }
  }
}
```

## Kilo CLI (partly tested)

Partly tested 2026-11-29 with Kilo CLI 7.8.40 against a test copy of InterfAIce, with a scripted stand-in for the AI model: an agent token ran the full working loop, but browser sign-in isn't confirmed. It ran only with sign-in details rebuilt from what Kilo publishes, because the test machine couldn't fetch the published ones.

Add under "mcp" in ~/.config/kilo/kilo.json, then sign in from a terminal: run `kilo mcp auth interfaice`.

```
{
  "mcp": {
    "interfaice": {
      "type": "remote",
      "url": "https://interfaice-production.up.railway.app/mcp"
    }
  }
}
```

## Cline CLI (tested)

Tested 2026-11-29 with Cline CLI 3.0.76 against a test copy of InterfAIce, with a scripted stand-in for the AI model: browser sign-in and an agent token each ran the full working loop.

Add under "mcpServers" in `~/.cline/data/settings/cline_mcp_settings.json`, then sign in from a terminal: run `cline mcp`, choose Authorize OAuth, then interfaice.

```
{
  "mcpServers": {
    "interfaice": {
      "type": "streamableHttp",
      "url": "https://interfaice-production.up.railway.app/mcp"
    }
  }
}
```

## Qwen Code (tested)

Tested 2026-11-29 with Qwen Code 0.29.0 against a test copy of InterfAIce, with a scripted stand-in for the AI model: browser sign-in and an agent token each ran the full working loop.

Run in a terminal, then sign in from inside Qwen Code: open /mcp, choose interfaice, then Authenticate.

```
qwen mcp add -s user --transport http interfaice https://interfaice-production.up.railway.app/mcp
# then inside Qwen Code: /mcp → interfaice → Authenticate
```

## Crush (tested)

Tested 2026-11-29 with Crush 0.104.0 against a test copy of InterfAIce, with a scripted stand-in for the AI model: browser sign-in and an agent token each ran the full working loop.

Add under "mcp" in ~/.config/crush/crush.json, then start Crush and press Enter when it asks to authenticate with interfaice.

```
{
  "mcp": {
    "interfaice": {
      "type": "http",
      "url": "https://interfaice-production.up.railway.app/mcp",
      "oauth": true
    }
  }
}
```

Keep "oauth": true. Without it Crush never offers to sign in, and interfaice stays disconnected.

## Mistral Vibe (partly tested)

Partly tested 2026-11-29 with Mistral Vibe 3.1.5 against a test copy of InterfAIce, with a scripted stand-in for the AI model: an agent token ran the full working loop, but browser sign-in isn't confirmed. It didn't run: Vibe keeps the sign-in in a system keychain, which the test machine lacked.

Run in a terminal. Vibe opens your browser to sign in and keeps the sign-in in your system keychain; on a machine without one, such as a server or container, use an agent token.

```
vibe mcp add interfaice --url https://interfaice-production.up.railway.app/mcp
```

Vibe opens a new connection for each step, so each step shows up as a new chat with its own handle. The AGENTS.md section has the agent hand the session id from start_work back to finish_work, which closes its work when it's done; without that, the work stays open until it times out. Assign its tasks to the agent rather than to a chat's handle, so whichever step starts the work can take them. From then on it stays with that step's handle: a later step can update it, but can't take it again.

## ChatGPT (not yet tested)

In ChatGPT Plugins (chatgpt.com/plugins), choose + and Add custom MCP server. Name it interfaice, paste the URL, choose OAuth and confirm, then Create as a plugin and Install it. Mention @interfaice in a chat to use it.

```
https://interfaice-production.up.railway.app/mcp
```

Workspace permissions apply, and admins can turn custom MCP servers off. Alternative for Custom GPTs: Actions → Import from URL https://interfaice-production.up.railway.app/api/v1/openapi.json, Authentication: API key, Bearer, with an agent token.

## Claude (claude.ai, desktop and mobile) (tested)

Tested 2026-10-29: OAuth sign-in and the full working loop.

Open [the add-connector dialog on claude.ai](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=interfaice&connectorUrl=https%3A%2F%2Finterfaice-production.up.railway.app%2Fmcp), with interfaice filled in (or Settings → Connectors → Add custom connector and paste the URL). Then Connect and approve in the window that opens. On Team and Enterprise plans an owner adds it once for everyone.

```
https://interfaice-production.up.railway.app/mcp
```

## Anything else (file-based agents, scripts, CI)

The CLI syncs the briefing and docs into your repo as files any agent can read, and pushes edits back.

```
curl -fsSL https://interfaice-production.up.railway.app/cli.mjs -o interfaice.mjs
export INTERFAICE_URL=https://interfaice-production.up.railway.app
export INTERFAICE_TOKEN=<YOUR_AGENT_TOKEN>
node interfaice.mjs pull <project>    # writes .interfaice/CONTEXT.md and docs/
node interfaice.mjs push <project> .interfaice/docs/spec.md
node interfaice.mjs watch <project>   # live feed in a terminal
```

REST API: `https://interfaice-production.up.railway.app/api/v1` (OpenAPI at `/api/v1/openapi.json`). Live events: `GET /api/v1/projects/<project>/stream` (SSE).

## AGENTS.md section

`connect_repo` returns this for the repo; the agent offers to add it to AGENTS.md (or CLAUDE.md, GEMINI.md, Cursor rules):

```markdown
## Shared context (InterfAIce)

This repo's project context lives in InterfAIce project `your-project`, shared with other agents and the team. Pass `project: "your-project"` to InterfAIce tools.
- At the start of each session call `get_context` before doing anything else.
- Before changing anything, call `start_work` with what you will do, the task number, and the paths or branch you'll touch, and keep the session id it returns. If it reports an overlap with someone else's live work, stop and tell me who is on it.
- To hand work to a teammate or another agent, use `create_task` with `assignee` or `assign_task`.
- Write durable findings, specs and plans with `write_doc`; record choices with `post` kind "decision".
- Ask the team with `post` kind "question" instead of guessing on product decisions.
- Before you merge, deploy or release, call `request_approval` with the task, and don't go ahead while it holds you (an open review or an approval the project rules require).
- Open each pull request from the branch you gave `start_work`, or put `interfaice task #N` in its description, and don't merge a PR whose `interfaice` status on GitHub is pending or failing.
- Before you finish, call `finish_work` with your session id and a handoff: what you did, what's left, what the next agent must know.
```
