Support file:// schema when adding servers#326
Merged
Conversation
cmrigney
commented
Jan 6, 2026
|
|
||
| var data []byte | ||
| if strings.HasSuffix(strings.ToLower(filename), ".yaml") { | ||
| if strings.HasSuffix(strings.ToLower(filename), ".yaml") || strings.HasSuffix(strings.ToLower(filename), ".yml") { |
Contributor
Author
There was a problem hiding this comment.
Just an incidental, but unrelated fix!
slimslenderslacks
previously approved these changes
Jan 7, 2026
Collaborator
slimslenderslacks
left a comment
There was a problem hiding this comment.
this works for adding servers to existing catalogs too, right?
Contributor
Author
|
@slimslenderslacks yep it should! You just need to compose the right command I believe. |
Contributor
Author
|
So to "add" one to an existing catalog, you'd basically select from the existing catalog on create and add more Which makes me think we need to be able to select all from a catalog, e.g. |
slimslenderslacks
approved these changes
Jan 7, 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.
What I did
Adds support for adding a server from a yaml/json file like so
--server file://my-server.yaml. The format of this file can either be a full catalog yaml/json like the one output when you runtask catalog -- my-serverin mcp-registry, or the file can just be a single server entry directly.Example
Create duckduckgo.yaml
Then create the catalog:
(not mandatory) A picture of a cute animal, if possible in relation to what you did