DocsGet started

Connect an agent

Point Claude Code, Cursor, VS Code, Codex or a CI job at Gatehouse.

Every agent connects to the same URL: your Gatehouse address plus /mcp, for example https://gatehouse.yourcompany.com/mcp. You'll find it under Connect an agent in the console.

Agents sign in through the browser with OAuth 2.1 and PKCE. The person approves the agent once, and everything it does is recorded under their name.

Claude Code

claude mcp add --transport http gatehouse https://gatehouse.yourcompany.com/mcp

Then run /mcp in Claude Code, choose gatehouse and Authenticate. If Claude Code ever shows the server as disconnected, for example after Gatehouse restarts with new settings, run /mcp and choose Reconnect.

Cursor

Add Gatehouse to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "gatehouse": { "url": "https://gatehouse.yourcompany.com/mcp" }
  }
}

Open Cursor Settings → MCP. Gatehouse shows "Needs login". Click it and allow access in the browser.

VS Code

Add Gatehouse to .vscode/mcp.json:

{
  "servers": {
    "gatehouse": { "type": "http", "url": "https://gatehouse.yourcompany.com/mcp" }
  }
}

Click Start above the entry and sign in when the browser opens.

CI jobs and scripts

Clients that can't open a browser use a personal token. Create one under Connect an agent → Tokens. Tokens expire after 30, 90 or 365 days. Use a separate token per job so you can revoke it on its own.

Send it as a header:

Authorization: Bearer gth_pat_…

For Claude Code without a browser:

claude mcp add --transport http gatehouse https://gatehouse.yourcompany.com/mcp \
  --header "Authorization: Bearer gth_pat_…"

Revoking access

The Tokens list shows agent sign-ins and personal tokens. Revoke cuts that agent off immediately. Disabling a person revokes all their tokens at once.

What agents see

Agents see only the tools that are on and that some policy could allow for that person, plus Gatehouse's built-in tools:

  • gatehouse__find_tools and gatehouse__call_tool find and call any tool the person can use right now.
  • Three tools for access requests.

When tools are added or removed

Some apps, including Claude's connectors, fetch the tool list once when they connect and don't refresh it. Gatehouse handles both directions without anyone reconnecting:

  • Removed tools stop working on the next call. Every call is checked when it's made: the tool must be on, its server enabled, a policy must allow it, and the person and token must be active. The app may still show the tool until it reconnects, but calls are refused and logged.
  • New tools work straight away. Gatehouse tells agents their list may be out of date. An agent that can't find a tool looks it up with gatehouse__find_tools and calls it with gatehouse__call_tool, with the same policies, approvals and audit as a direct call. Reconnecting the app also shows the new tools in its list.

Apps that keep a live connection, such as Claude Code and Cursor, update their tool list as soon as an admin changes it. Gatehouse also tells agents, in its server instructions, not to retry blocked calls with different wording.