feat(mcp): modular router with feature flags and runtime toolset selection#656
Merged
joshrotenberg merged 2 commits intomainfrom Feb 6, 2026
Merged
feat(mcp): modular router with feature flags and runtime toolset selection#656joshrotenberg merged 2 commits intomainfrom
joshrotenberg merged 2 commits intomainfrom
Conversation
…ction Split the monolithic build_router() into modular sub-routers using McpRouter::merge. Each tool domain (cloud, enterprise, database, app) now owns its own router() and instructions() functions. Add compile-time feature flags (cloud, enterprise, database) to gate optional dependencies, and a runtime --tools CLI flag to enable/disable toolsets per invocation. The "app" toolset bundles profile tools, resources, and prompts into a single category that can be excluded from developer-facing instances while remaining available in admin instances.
Update tower-mcp from 0.3.4 to 0.4.0 and bump workspace MSRV to 1.90. Also update time from 0.3.44 to 0.3.47 to resolve RUSTSEC-2026-0009.
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.
Summary
build_router()into modular sub-routers usingMcpRouter::merge, where each tool domain (cloud, enterprise, database, app) owns its ownrouter()andinstructions()functionscloud,enterprise,database) to gate optional dependencies (redis-cloud,redis-enterprise,redis), allowing minimal builds with--no-default-features--toolsCLI flag to enable/disable toolsets per invocation (e.g.,--tools cloud,database)Test plan
cargo clippy -p redisctl-mcp --all-features -- -D warningspasses cleancargo check -p redisctl-mcp --no-default-featurescompiles clean--features cloud,--features enterprise,--features database) all compilecargo test -p redisctl-mcp --all-featurespasses (66 tests: 17 lib + 7 binary + 14 cloud integration + 27 enterprise integration + 1 doctest)cargo fmt --checkpasses--helpoutput shows--toolsflag with all four toolset options