fix handling of mcp remote#303
Merged
peterj merged 6 commits intoagentregistry-dev:mainfrom Mar 10, 2026
Merged
Conversation
54f1980 to
90589c2
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts the MCP CLI publish flow to distinguish “remote-only” MCP servers (already deployed endpoints) from package-based servers, aligning the published ServerJSON shape with how the registry models remotes vs installable packages.
Changes:
- Adds
--remote-urlto publish an already-deployed MCP server as aremotes[]entry (nopackages[]). - Updates
mcp publishhelp text/examples and shifts required flag validation to be mode-dependent. - Adds
.claudeto.gitignore.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| internal/cli/mcp/publish.go | Introduces remote-only publish mode and constructs ServerJSON with Remotes instead of Packages. |
| .gitignore | Ignores .claude IDE/tooling artifacts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Fix --transport flag help text to reflect mode-dependent valid values - Fix --transport-url help text (revert erroneous "used with --type") - Update remote publish example to use reverse-DNS namespace format - Add mutual exclusivity check: error when --type/--package-id used with --remote-url - Add unit tests for buildRemoteServerJSON and remote transport validation
- Add Scheme field to RemoteMCPServer and SSETargetSpec so https:// URLs are preserved through the publish -> registry -> deploy pipeline instead of being hardcoded to http:// - Update parseUrl, kagent translator (buildRemoteMCPURL), and docker-compose translator to propagate the scheme end-to-end - Add e2e tests for --remote-url publish flow including URL preservation, dry-run output, and flag conflict validation
Signed-off-by: Peter Jausovec <[email protected]>
Signed-off-by: Peter Jausovec <[email protected]>
Signed-off-by: Peter Jausovec <[email protected]>
peterj
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
handle remote MCP servers
Change Type
Changelog