You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 Cannot connect to MCP inspector through Kagenti #718
When I try to open MCP inspector through Kagenti's MCP gateway tab, I see "Connection Error - Did you add the proxy session token in Configuration?" as in the screenshot
The MCP Inspector cannot connect to the MCP gateway because commit 68d2252 ("Let MCP Gateway share the Kagenti Gateway") moved the mcp-route HTTPRoute's parentRef from the dedicated mcp-gateway to the shared http gateway. This left the mcp-gateway Envoy with no backend routes, so all requests through it fail.
This means the route now only applies to the shared http gateway (http-istio service in kagenti-system), while the dedicated mcp-gateway (mcp-gateway-istio service in gateway-system) has zero routes attached.
Evidence from cluster inspection
Broker logs (mcp-gateway-broker-router) show requests are received and processed by the ext_proc, but every request ends with:
envoy ext_proc: Received gRPC error on stream: 14, message upstream connect error or disconnect/reset before headers.
reset reason: connection termination{upstream_reset_before_response_started{connection_termination}}
The HTTP 503 on the http gateway path suggests the broker also has issues receiving direct HTTP connections (likely expects traffic through the ext_proc/Envoy pipeline, not raw HTTP).
Proposed fix
Add the mcp-gateway back as a second parentRef to the mcp-route, so the route is attached to both gateways:
The proxy is not reachable! The browser is trying to talk to 6277, but nothing is listening on that port. There are no HTTPRoutes to that port.
I experimented with creating an HTTPRoute to the mcp-inspector's proxy port. Then I expanded the MCP Inspector's config, and set the Inspector Proxy Address to a new HTTPRoute, mcp-inspector-proxy.localtest.me:8080, and it worked fine.
Would it make sense to expose a HTTPRoute for MCP Inspector's proxy?
Activity
pdettori commentedon Feb 18, 2026
Root Cause Analysis
Summary
The MCP Inspector cannot connect to the MCP gateway because commit
68d2252("Let MCP Gateway share the Kagenti Gateway") moved themcp-routeHTTPRoute'sparentReffrom the dedicatedmcp-gatewayto the sharedhttpgateway. This left themcp-gatewayEnvoy with no backend routes, so all requests through it fail.Request flow (broken)
The breaking change
In
charts/kagenti/templates/mcp-gateway.yaml, themcp-routeHTTPRoute parentRef was changed from:to:
This means the route now only applies to the shared
httpgateway (http-istioservice inkagenti-system), while the dedicatedmcp-gateway(mcp-gateway-istioservice ingateway-system) has zero routes attached.Evidence from cluster inspection
Broker logs (
mcp-gateway-broker-router) show requests are received and processed by the ext_proc, but every request ends with:Envoy logs (
mcp-gateway-istio) confirm:Connectivity tests from inside the cluster:
mcp-gateway-istio:8080/mcp(no Host header)mcp-gateway-istio:8080/mcp(Host: mcp.127-0-0-1.sslip.io)http-istio:80/mcp(Host: mcp.127-0-0-1.sslip.io)mcp-gateway-broker:8080/mcp(direct)The HTTP 503 on the
httpgateway path suggests the broker also has issues receiving direct HTTP connections (likely expects traffic through the ext_proc/Envoy pipeline, not raw HTTP).Proposed fix
Add the
mcp-gatewayback as a second parentRef to themcp-route, so the route is attached to both gateways:This preserves the "share the Kagenti Gateway" intent from
68d2252while restoring the dedicatedmcp-gatewayrouting that the MCP Inspector relies on.fix(mcp): restore mcp-route attachment to mcp-gateway
esnible commentedon Feb 19, 2026
@evaline-ju I am researching the problem.
From outside the cluster, I have no problem with curl to http://mcp.127-0-0-1.sslip.io:8080/mcp .
From inside the cluster, I have no problem with curl to http://mcp-gateway-istio.gateway-system.svc.cluster.local:8080/mcp
From Kagenti MCP Inspector http://mcp-inspector.localtest.me:8080/ there are four cases to consider:
The proxy is not reachable! The browser is trying to talk to 6277, but nothing is listening on that port. There are no HTTPRoutes to that port.
I experimented with creating an HTTPRoute to the mcp-inspector's proxy port. Then I expanded the MCP Inspector's config, and set the Inspector Proxy Address to a new HTTPRoute, mcp-inspector-proxy.localtest.me:8080, and it worked fine.
Would it make sense to expose a HTTPRoute for MCP Inspector's proxy?