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
Tool filtering
Add new commands:
docker mcp tools enable <toolName>
anddocker mcp tools disable <toolName>
. They auto-discover the first matching server using the catalog. Also they accept a--server
flag. It helps with duplicate tool names where the auto-discover might fail to find the server the user wants.The enabled tools are stored in a
tools.yaml
file which contains all the enabled tools grouped by server. Example file:read as:
The gateway reads and respects this file. When launching the gateway, the existing
--tools
option (which accepts the tools names) takes precedence over thetools.yaml
file. This works the same way as the--servers
option and theregistry.yaml
.Nice to haves:
tools.yaml
if all of the server's tools are enabled--server
flagRelated issue
(not mandatory) A picture of a cute animal, if possible in relation to what you did