Repository navigation
Let a user choose the advertised tools of every server - #424
Merged
Merged
Conversation
A server reads tools.json from MCP's folder of the user's configuration when it starts. Its advertise and unadvertise lists move tools across the defaults, and a server whose code chose its tools keeps them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
A server's advertised tools could only be chosen in Smalltalk, one server at a time, so a user had no way to choose them once for every image they run.
A server now reads
tools.jsonfrom MCP's folder of the user's configuration when it starts:$XDG_CONFIG_HOME/pharo-mcp,%APPDATA%\pharo-mcpon Windows, else~/.config/pharo-mcp, whereotel.envalready lives. Itsadvertiseandunadvertiselists move tools across the defaults (MCPToolChoice, held by the tool registry), so a tool a later release adds still follows its default exposure, and a server whose code chose its tools (advertiseTools:,advertiseAllTools,onlyTools:) keeps them.The file is read leniently: a name no tool in the image has changes nothing, since the tool may come from a project the image does not load; a name in both lists keeps its default; and a file that is missing, unreadable or not an object of name lists changes nothing and never stops a server.
The folder rules move from
MCPOpenTelemetrySettingsto a newMCPUserSettings, which the telemetry settings now extend, so both files are found the same way.