-
Notifications
You must be signed in to change notification settings - Fork 144
feat: Add ability to add/remove servers #223
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
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
cmrigney
left a comment
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.
Overall looking good, just think we need to make those changes to remove
c2689f5 to
0eb8425
Compare
Add functionality to add and remove servers from a workingset. Can add/remove by OCI ref or registry URI.
0eb8425 to
2790b2b
Compare
- removed argument validation from working set command line parsing logic - change removal arguments from `--server` to `--name` - removed `EnsuresnapshotsResolved` logic as part of adding a server - update tests to use `Snapshot.Server.Name` - update tests to remove registry examples - added validation method to check for server name uniqueness
cmrigney
left a comment
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.
Nice!
| return workingSet.validateUniqueServerNames() | ||
| } | ||
|
|
||
| func (workingSet *WorkingSet) validateUniqueServerNames() error { |
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.
praise: Thanks for adding this!
What I did
Added commands to add and remove servers from a working set.
docker mcp workingset server add [working-set-id] --server [ref or uri]Example
docker mcp workingset server add test-set --server docker://roberthouse224/mcp-dice:latest --server https://mcp.docker.com/v0/servers/slackdocker mcp workingset server remove [working-set-id] --server [ref or uri]Example
docker mcp workingset server remove test-set --server docker://roberthouse224/mcp-dice:latest --server https://mcp.docker.com/v0/servers/slack/versions/latestRelated issue
(very mandatory) A picture of a cute animal, if possible in relation to what you did
