Skip to content

🐛 fix setting up mcp inspector proxy URL - #262

Merged
pdettori merged 3 commits into
rossoctl:mainfrom
pdettori:fix-inspector
Oct 3, 2025
Merged

pdettori merged 3 commits into
rossoctl:mainfrom
pdettori:fix-inspector

Conversation

@pdettori

@pdettori pdettori commented Oct 3, 2025

Copy link
Copy Markdown
Member

Summary

fix setting up mcp inspector proxy URL. Accounts for MCP_PROXY_FULL_ADDRESS being part of the configuration and not an environment variable so it can only be set in the UI or passed as query parameter.

Fixes #72

Comment thread kagenti/ui/lib/tool_details_page.py Outdated
"Connect with MCP Inspector",
# TODO - transport should be a property of MCP server
url=f"{mcp_inspector_url}?serverUrl={mcp_server_url}&transport=streamable_http",
url=f"{mcp_inspector_url}?serverUrl={mcp_server_url}&transport=streamable_http&MCP_PROXY_FULL_ADDRESS={mcp_proxy_url}",

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.

Perhaps use urllib.parse.quote() in case the server or proxy URL was configured with a special character. For security we don't want < unescaped, for correctness we should only allow URL characters and quote() will take care of that.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: MCP Inspector not connecting to weather tool

2 participants