Add to your Claude Desktop config file.macOS:~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop after saving. The tools appear in your conversation.For OAuth-enabled servers, Claude prompts for authentication on first tool use.
MCP Gateway uses HTTP Streamable transport for all connections. This is the standard MCP transport that supports bidirectional communication over HTTP.
Sessions are ephemeral—each request is independent. There’s no session persistence between requests, which simplifies scaling and removes the need for sticky sessions.
MCP servers with OAuth require users to complete consent before using tools.The first time a user calls a tool, Portkey returns an error with an authorization URL. Redirect the user to complete OAuth. After consent, retry the request.
Copy
Ask AI
try: result = await session.call_tool("get_repos", {})except Exception as e: if "authorization_url" in str(e): # Redirect user to authorize print(f"Please authorize: {authorization_url}")
After authorization, Portkey stores the user’s tokens and handles refresh automatically.