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.
Summary
This PR introduces a flexible command-line configuration system that allows users to selectively enable or disable tools when starting the
mcp-devkit-server. This feature provides fine-grained control over which Mapbox DevKit tools are available during a session, improving security and reducing cognitive load by limiting available tools to only those needed for specific tasks.Changes
Core Implementation
toolRegistry.ts) to manage all 12 available toolstoolConfig.tsmodule with argument parsing and tool filtering logicindex.tsto use the filtered tool set based on command-line argumentsCommand-Line Options
--enable-tools: Specify exact tools to enable (exclusive mode)--disable-tools: Specify tools to disable (all others remain enabled)--enable-toolstakes priorityTesting
Documentation
TOOL_CONFIGURATION.mdwith complete usage guideBenefits
delete_style_tool)Example Usage