MCP Client Config
The SDK’sconnectHttp() generates a URL + headers that work with any MCP client supporting HTTP transport. The only route is https://api.igrisecurity.com/v1/mcp/<slug>, and the upstream behind it must be an HTTP or SSE MCP server. stdio upstreams are not supported.
SDK Usage (Programmatic)
For apps that create MCP connections dynamically:Claude Desktop
How Claude Desktop connects to remote MCP servers is set by Anthropic and has changed between versions, so follow Claude Desktop’s own documentation to add one. Use the gateway URLhttps://api.igrisecurity.com/v1/mcp/<slug> and send Authorization: Bearer ig_your_api_key (plus the optional headers below) as in the other examples on this page.
Cursor
Add to.cursor/mcp.json in your project:
Claude Code
Add to~/.claude.json or .mcp.json:
VS Code
Add to.vscode/mcp.json:
X-Igris-User, X-Igris-Trace-Id and X-Igris-Metadata are optional. They’re useful when you want
per-user policy decisions and per-user audit attribution. The Authorization header
is required. The SDK always sets a trace ID for you.X-Igris-Metadata must be a JSON object of at most 4096 characters, nested no more than 3 levels,
with no dots in key names. Otherwise the gateway silently ignores it. You can also send one metadata
field per header as X-Igris-Metadata-<key>; header-based keys are lowercased, so policy conditions
should use metadata.<lowercase key>.