Connect your clients
Point Claude Code, Cursor, VS Code, Codex or any MCP client at Godelgate.
Every client connects to the same endpoint, /mcp, using Streamable HTTP. Each person sends their own key in the Authorization header, so every call in the audit log is tied to them. Keys are defined in Users and keys.
In the examples below, replace https://your-gate with your gate's address and YOUR_KEY with the user's key.
#Claude Code
claude mcp add --transport http godelgate https://your-gate/mcp \
--header "Authorization: Bearer YOUR_KEY"#Cursor
Add to ~/.cursor/mcp.json, or .cursor/mcp.json in a project:
{
"mcpServers": {
"godelgate": {
"url": "https://your-gate/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}#VS Code
Add to .vscode/mcp.json:
{
"servers": {
"godelgate": {
"type": "http",
"url": "https://your-gate/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}#Codex
Add to ~/.codex/config.toml and export the key as GODELGATE_KEY:
[mcp_servers.godelgate]
url = "https://your-gate/mcp"
bearer_token_env_var = "GODELGATE_KEY"#Your own agents
Any MCP client library that supports Streamable HTTP works. With the TypeScript SDK:
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(
new StreamableHTTPClientTransport(new URL("https://your-gate/mcp"), {
requestInit: { headers: { Authorization: `Bearer ${process.env.GODELGATE_KEY}` } },
}),
);
const { tools } = await client.listTools();#What clients see
- Tools are named
server__tool, for examplegithub__create_issue. - Each description starts with the server name in brackets, for example
[github] Create an issue. - Tools that a deny rule always blocks for this user, and quarantined tools, are not listed at all.
- A blocked call returns an MCP error result whose text starts with
Blocked by Godelgate:and gives the reason.
Clients that only connect to remote servers through OAuth, such as the Claude desktop app's connectors, can't send a static key yet. SSO / OIDC support is on the roadmap.