-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Allow --mcp flag to accept URLs for streamable-http servers #8119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When a URL starting with http:// or https:// is passed to the --mcp flag, it will now automatically be configured as a streamable-http MCP server connection instead of trying to load it from the hub. This allows users to run: cn --mcp https://docs.continue.dev/mcp The URL will be parsed and configured with: - type: streamable-http - url: the provided URL - name: hostname from the URL Fixes CON-4285 Generated with [Continue](https://continue.dev) Co-authored-by: Username <[email protected]>
| const config = await enhancer.enhanceConfig(mockConfig, options); | ||
|
|
||
| // MCPs from --mcp flag should be prepended (at the start) | ||
| expect(config.mcpServers).toHaveLength(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like these tests failed, you need to make sure they pass
|
| const config = await enhancer.enhanceConfig(mockConfig, options); | ||
|
|
||
| // MCPs from --mcp flag should be prepended (at the start) | ||
| expect(config.mcpServers).toHaveLength(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix the failing tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 2 files
|
🎉 This PR is included in version 1.24.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.28.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
This PR implements support for URLs in the
--mcpflag. When a URL starting withhttp://orhttps://is passed to the--mcpflag, it will now automatically be configured as a streamable-http MCP server connection.Changes
configEnhancer.tsto detect URLs in MCP specs and create streamable-http configurations--mcpflagUsage
Users can now run:
This works alongside existing hub slug support:
Fixes CON-4285
This agent session was co-authored by nate and Continue.
Summary by cubic
Allows the --mcp flag to accept http/https URLs and auto-configures them as streamable-http MCP servers. Addresses CON-4285 and works alongside existing hub slug support.