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
bug: MCP Inspector not connecting to weather tool #72
After importing weather tool and selecting "Connect with MCP Inspector", the inspector window opens. When I click "Connect" this error show up: Error Connecting to MCP Inspector Proxy - Check Console logs. There are no errors in mcp-inspector pod logs.
Steps To Reproduce
As above.
Expected Behavior
Inspector should be connecting and giving me the page to list tools.
Is the installer the latest from main? I discovered that mcp inspector uses two different ports, one for the ui and one for the proxy. When connecting to a Mcp server, the UI delegates all to the proxy, so request like list tools etc, go to the proxy port. I had this issue when I was not exposing the proxy port in the container, in a service and in the HTTPRoute. This was addressed later last week so you may still have a previous version of deployment for inspector? Check if you see a match in what you have deployed with https://github.com/kagenti/kagenti/blob/main/kagenti/installer/app/resources/mcp-inspector.yaml or more simply make sure to pull latest main and re-run the installer to apply any delta (if any)
Ok - you may not see a log because the ui simply redirects to the proxy and if there is no connection to proxy it will show that error … needs some debugging to ensure connectivity for proxy from outside cluster (httproute -> service -> proxy port)
@pdettori when you set up the mcp-inspector did you port-forward or did something special? Hai found an issue in mcp-inspector github which matches what I see: modelcontextprotocol/inspector#484
With port-forward the mcp-inspector works fine: kubectl -n kagenti-system port-forward deployments/mcp-inspector 6274:6274 6277:6277
So this is a workaround until better solution is found.
I did not use port forward - I was able to make it work with the Istio ingress gateway - a service with 2 ports and 2 http routes - one for the ui and one for the proxy.
I just could not get this to work. I do see both http routes yet the inspector is failing. So this part of the demo is broken. So temporary fix is the port-forward until a fix is made. Users begin to play with kagenti and its better to have a workaround for now.
Needs the full address with http:// and port 8080
I'm also still observing this with the additions of the suggested env vars (also whether with 0.15.0 or latest 0.16.7 inspector image version). I tried a few small changes like changing the service from clusterIP->nodePort and trying out those ports and replacing parts in the MCP_PROXY_FULL_ADDRESS parts but it seems that did not make a difference. The proxy (6277) still has to be particularly port-forwarded.
@evaline-ju thanks for your feedback. I am still mystified by this issue. It works on my Mac (without port forwarding) and I was even able to install kagenti on a RHEL 9 VM, where I can also get inspector to work w/o forwarding. Will try next on OpenShift once the PRs for OCP are ready.
I may have finally found the culprit. MCP_PROXY_FULL_ADDRESS is part of the configuration and not an environment variable as I initially thought, so it can only be set in the UI or passed as query parameter. It appears that configurations are persisted in the browser across sessions, so since I set this value once long ago in my UI it has been persisted since then. And it worked for different instances of Kagenti ! Working on a PR which will set this value as query parameter to the mcp inspector URL, which seems to set the value as well in the UI.
Activity
pdettori commentedon Jul 17, 2025
Is the installer the latest from main? I discovered that mcp inspector uses two different ports, one for the ui and one for the proxy. When connecting to a Mcp server, the UI delegates all to the proxy, so request like list tools etc, go to the proxy port. I had this issue when I was not exposing the proxy port in the container, in a service and in the HTTPRoute. This was addressed later last week so you may still have a previous version of deployment for inspector? Check if you see a match in what you have deployed with https://github.com/kagenti/kagenti/blob/main/kagenti/installer/app/resources/mcp-inspector.yaml or more simply make sure to pull latest main and re-run the installer to apply any delta (if any)
msteinder commentedon Jul 17, 2025
I have a fresh install. Newborn today.
pdettori commentedon Jul 17, 2025
Ok - you may not see a log because the ui simply redirects to the proxy and if there is no connection to proxy it will show that error … needs some debugging to ensure connectivity for proxy from outside cluster (httproute -> service -> proxy port)
cwiklik commentedon Jul 18, 2025
In Chrome Dev tools I see:
cwiklik commentedon Jul 25, 2025
@pdettori when you set up the mcp-inspector did you port-forward or did something special? Hai found an issue in mcp-inspector github which matches what I see: modelcontextprotocol/inspector#484
With port-forward the mcp-inspector works fine:
kubectl -n kagenti-system port-forward deployments/mcp-inspector 6274:6274 6277:6277So this is a workaround until better solution is found.
pdettori commentedon Jul 26, 2025
I did not use port forward - I was able to make it work with the Istio ingress gateway - a service with 2 ports and 2 http routes - one for the ui and one for the proxy.
cwiklik commentedon Jul 27, 2025
I just could not get this to work. I do see both http routes yet the inspector is failing. So this part of the demo is broken. So temporary fix is the port-forward until a fix is made. Users begin to play with kagenti and its better to have a workaround for now.
pdettori commentedon Jul 28, 2025
I think I have found the problem - there is a missing env variable in https://github.com/kagenti/kagenti/blob/e7dc3134d938e0733a56041a3ce0df2d7bb41482/kagenti/installer/app/resources/mcp-inspector.yaml#L29
The env variable ‘ MCP_PROXY_FULL_ADDRESS’ needs to be set to the value of the address specified in the http route for the proxy so that the redirect from the ui works correctly - that value is set in https://github.com/kagenti/kagenti/blob/e7dc3134d938e0733a56041a3ce0df2d7bb41482/kagenti/installer/app/resources/mcp-inspector.yaml#L88
cwiklik commentedon Jul 28, 2025
Tried the above but no cigar. I've checked the pod to make sure the new env var is there:
Same error as before: Failed to load resource: net::ERR_CONNECTION_REFUSED
pdettori commentedon Jul 28, 2025
Needs the full address with http:// and port 8080
cwiklik commentedon Jul 28, 2025
Still the same error with mcp inspector pod env:
containers:
value: http://mcp-proxy.localtest.me:8080
value: "true"
value: http://mcp-inspector.localtest.me:8080
value: 0.0.0.0
pdettori commentedon Aug 20, 2025
@cwiklik do you still see this problem ? I did a fresh install with the latest kagenti and it works for me
cwiklik commentedon Aug 20, 2025
@pdettori with the latest, I continue to have the same problem if I dont do port-forward
evaline-ju commentedon Sep 15, 2025
I'm also still observing this with the additions of the suggested env vars (also whether with 0.15.0 or latest 0.16.7 inspector image version). I tried a few small changes like changing the service from clusterIP->nodePort and trying out those ports and replacing parts in the
MCP_PROXY_FULL_ADDRESSparts but it seems that did not make a difference. The proxy (6277) still has to be particularly port-forwarded.pdettori commentedon Sep 16, 2025
@evaline-ju thanks for your feedback. I am still mystified by this issue. It works on my Mac (without port forwarding) and I was even able to install kagenti on a RHEL 9 VM, where I can also get inspector to work w/o forwarding. Will try next on OpenShift once the PRs for OCP are ready.
pdettori commentedon Oct 3, 2025
I may have finally found the culprit.
MCP_PROXY_FULL_ADDRESSis part of the configuration and not an environment variable as I initially thought, so it can only be set in the UI or passed as query parameter. It appears that configurations are persisted in the browser across sessions, so since I set this value once long ago in my UI it has been persisted since then. And it worked for different instances of Kagenti ! Working on a PR which will set this value as query parameter to the mcp inspector URL, which seems to set the value as well in the UI.