Get MCP server code snippets
MCP Servers V2
Get MCP server code snippets
Returns ready-to-use connection snippets (Cursor, VS Code, Claude, Python, TypeScript, Windsurf, Codex) for the MCP server. gatewayBaseURL sets the proxy base URL in the snippets.
GET
Get MCP server code snippets
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
MCP server id (the id returned by GET /v1/mcp, not the name).
Example:
"mcp-01HXYZ..."
Query Parameters
Base URL of the MCP gateway. Substitutes {{mcpProxyBaseURL}} for the proxied MCP server URL in the snippets.
Response
200 - application/json
Generated code snippets in different languages and formats.