Claude Code
Connect the Claude Code CLI to an MCP server exposed through agentgateway on Kubernetes
Before you begin
- Set up an agentgateway proxy.
- Deploy an MCP server and expose it through agentgateway with an HTTPRoute.
- Get the MCP endpoint URL for your proxy, and use it in place of
<MCP_URL>in the following steps.
Configuration
Add the MCP server to your Claude configuration.
claude mcp add agentgateway --transport http <MCP_URL>Verify the connection.
claude mcp list
The agentgateway server shows up as Connected.