Skip to content

fix(mcp): restore mcp-route attachment to mcp-gateway - #719

Merged
esnible merged 1 commit into
rossoctl:mainfrom
pdettori:fix/mcp-inspector-routing
Feb 19, 2026
Merged

esnible merged 1 commit into
rossoctl:mainfrom
pdettori:fix/mcp-inspector-routing

Conversation

@pdettori

Copy link
Copy Markdown
Member

Summary

  • Adds mcp-gateway back as a second parentRef on the mcp-route HTTPRoute, fixing MCP Inspector connectivity broken by commit 68d2252

Root Cause

Commit 68d2252 ("Let MCP Gateway share the Kagenti Gateway") moved the mcp-route parentRef from the dedicated mcp-gateway to the shared http gateway. This left the mcp-gateway Envoy with no backend routes, so the ext_proc processes requests correctly but Envoy has nowhere to forward them — resulting in 404 / connection reset and the MCP Inspector showing "Connection Error."

Adding mcp-gateway as a second parentRef preserves the shared gateway intent while restoring the dedicated gateway routing that the MCP Inspector relies on.

See full RCA in #718 comment.

Fixes #718

Test plan

  • Deploy to Kind cluster and verify MCP Inspector can connect through mcp-gateway-istio.gateway-system.svc.cluster.local:8080/mcp
  • Verify MCP gateway tab in Kagenti UI opens MCP Inspector without "Connection Error"
  • Verify external access through the shared http gateway still works

🤖 Generated with Claude Code

Commit 68d2252 ("Let MCP Gateway share the Kagenti Gateway") moved the
mcp-route HTTPRoute parentRef from the dedicated mcp-gateway to the
shared http gateway. This left the mcp-gateway Envoy with no backend
routes, causing the MCP Inspector to fail with "Connection Error" when
connecting through mcp-gateway-istio.

Add mcp-gateway back as a second parentRef so the route is attached to
both gateways, preserving the shared gateway intent while restoring the
dedicated mcp-gateway routing.

Fixes rossoctl#718

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Copilot AI review requested due to automatic review settings February 18, 2026 15:40
@pdettori pdettori moved this from Backlog to In review / Needs Testing in Rossoctl Issue Prioritization Feb 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request restores MCP Inspector connectivity by re-attaching the mcp-route HTTPRoute to the dedicated mcp-gateway, which was inadvertently removed in commit 68d2252. The fix preserves the shared gateway functionality while restoring the internal cluster routing path that the MCP Inspector depends on.

Changes:

  • Adds mcp-gateway as a second parentRef on the mcp-route HTTPRoute, enabling dual-gateway attachment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@esnible

esnible commented Feb 18, 2026

Copy link
Copy Markdown
Member

I am out of the office today and can't test this PR until later.

I had intended to remove the Gateway mcp-gateway from the gateway-system namespace. (Unfortunately that change was lost in a rebase and my PR got merged, before I noticed). This fix seems correct, but why do we want two Gateways?

@esnible esnible left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested this and it works for me.

I tested this only under Kind, not under OpenShift.

Note that the configuration of the "Inspector Proxy Address" comes from a cookie on the browser. If it changed, or if you are using different browsers, you must set it to http://mcp-proxy.localtest.me:8080/ in the browser.

@esnible
esnible merged commit f51f74a into rossoctl:main Feb 19, 2026
20 checks passed
@github-project-automation github-project-automation Bot moved this from In review / Needs Testing to Done in Rossoctl Issue Prioritization Feb 19, 2026
@pdettori
pdettori deleted the fix/mcp-inspector-routing branch April 23, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🐛 Cannot connect to MCP inspector through Kagenti

3 participants