Skip to main content

MCP Client Config

The SDK’s connectHttp() 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:
For direct, programmatic tool calls without wiring up an external MCP client, use the igris.mcp resource: igris.mcp.initialize(slug), igris.mcp.listTools(slug) and igris.mcp.callTool(slug, ...).

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 URL https://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>.

Limits

The MCP gateway accepts request bodies up to 512 KB and allows 1000 requests per minute per API key. See Limits and errors.

Multiple Connections

You can use multiple connections — each points to a different upstream MCP server:
Each gets its own gateway URL, policies, and audit trail.