smart-router
Allows routing search and tool calls to the GitHub MCP server, enabling access to GitHub capabilities through smart-router.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@smart-routersearch for a tool to list my recent pull requests"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
warden
warden is one MCP server. It gives an agent access to many other MCP servers and Skills. The agent sees only 5 tools:
search(query, limit=5)— This tool does a regex or keyword search. It looks in the name, the description, and the arguments of each tool. It also looks in the name and the description of each Skill. No other data goes to the agent.call_tool(server, name, arguments)— This tool sends a call to the MCP server that has the tool. Use asearchresult to find the server and the tool.use_skill(name)— This tool returns the full instructions for a Skill. Use asearchresult to find the Skill.admin(action, params)— This tool controls the registry. It can also move MCP servers and Skills out of Claude Code. The changes are immediate, and you do not restart the server. Refer to Theadmintool.route(task, context=None, mode=None)— This tool selects the best tool or Skill for a task. It ranks the candidates and returns the best one. It does not run the tool. Refer to Routing.
At start, warden connects one time to each MCP server in the
configuration and gets its tools with list_tools. It also reads each Skill
directory and finds the SKILL.md files. warden keeps this catalog on the
server. The model does not get these definitions. The model gets only search
results, and only when it asks.
How to use
The goal is to move your MCP servers and Skills behind warden. Then the Claude context has only the 5 tools. warden supplies the other data only when the agent asks for it.
Install.
pip install -r requirements.txt # or: pip install . (for the warden command)Test first (the safe method). The dry run shows each change. Then apply the migration to a temporary Claude home. warden does not change your real
~/.claude.warden migrate --all # dry run: shows each change warden migrate --all --apply --home /tmp/fake-claude # apply to a temporary home warden restore --id <printed-id> --home /tmp/fake-claudeDo the real migration. Remove
--hometo change your real Claude configuration. warden adds the items to the registry. warden also disables the items in Claude.warden migrate --all --apply # or select items: --plugins X --skills Y --mcp Z warden list # look at the registryTo move only some items, add them one at a time. Use
warden add-mcp <name> --command <cmd> [--args ...]orwarden add-skill <path>.Set warden as the only MCP server in Claude. Refer to the JSON in Setup. Then restart Claude Code. Claude Code reads the disabled items at start. warden does not need a restart, because its catalog updates immediately.
Use warden. Give Claude a usual instruction. When Claude needs a tool, it calls
search. Then it callscall_tooloruse_skill. warden does not start hidden skills automatically. Add the instruction from Limitation to yourCLAUDE.md. To add or move more items later, an agent calls theadmintool, or you use the CLI. To reverse a migration, usewarden restore --id <id>.
Each section below gives more data: CLI,
The admin tool,
Migration from Claude Code.
Related MCP server: fastmcp-gateway
Setup
pip install -r requirements.txtwarden reads its catalog from a registry file. The registry file has the
same structure as config.example.json:
{
"mcp_servers": {
"github": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": {} }
},
"skill_dirs": ["./skills"]
}You do not have to write the registry manually. The commands
warden add-mcp, add-skill, and migrate make the registry and change
it. An empty registry is also correct. Then warden starts with an empty
catalog and prints one line to stderr. An agent can then fill the registry with
the admin tool.
Config location
warden finds the registry in this sequence:
WARDEN_CONFIG— the full path to theconfig.jsonfile.WARDEN_HOME— a directory. The registry is<home>/config.json.The default:
~/.config/warden/config.json(XDG).
All writes go to WARDEN_CONFIG, WARDEN_HOME, or the XDG default.
The commands add-mcp, add-skill, migrate, and the admin tool make these
writes. The writes do not go to the current directory. Therefore the registry
stays available in all sessions and from all directories. For reads, if none of
these are present, warden uses ./warden.config.json.
To start the server, use one of these commands:
python3 -m warden # or: warden (the installed console command)Each command is the same as warden serve.
Set warden as the only MCP server in your MCP client. Example clients are Claude Desktop, Claude Code, Copilot CLI, and Cursor. For example:
{
"mcpServers": {
"warden": {
"command": "python3",
"args": ["-m", "warden"],
"cwd": "/path/to/warden"
}
}
}CLI
The same registry operations are available to you as subcommands. The default
subcommand is serve.
Command | Function |
| Runs the MCP server. This is the default. |
| Adds an MCP server to the registry. |
| Adds a Skill directory to the registry. warden reads its |
| Prints the registry as JSON. It shows the MCP servers, the skill directories, and the migration ids. |
| Moves MCP servers and Skills out of Claude Code. This is a dry run. Add |
| Reverses a migration. It puts back the changes in Claude. Add |
| Prints the routing configuration as JSON. |
| Sets the default routing mode. |
| Adds names to |
| Adds names to |
| Adds a per-file routing rule. |
warden add-mcp github --command npx --args -y @modelcontextprotocol/server-github
warden add-skill ~/my-skills
warden listThe admin tool
The admin(action, params) tool gives the registry operations to an agent
through MCP. The agent can set up warden or change it, and the agent does
not restart the server. After each change, warden makes the internal
catalog again. Therefore search shows the change immediately. The actions are:
list— returns{mcp_servers, skill_dirs, migrations}.register_mcp—params: {name, command, args?, env?}.register_skill—params: {path}.unregister—params: {kind: "mcp"|"skill", name}.migrate—params: {targets: {mcp, plugins, personal_skills}, apply?}. This is a dry run and returns the plan. Setapplyto true to make the changes. Each target is an array of names or keys, or the text"all".restore—params: {id}.get_routing— returns the routing configuration.set_routing—params: {mode?, priority_order?, exclude?, rules?}. It changes the routing configuration. Refer to Routing.
Routing
The route tool selects the best tool or Skill for a task. It ranks the
candidates and returns the best one. It does not run the tool. The agent then
calls call_tool or use_skill on the result.
route(task, context=None, mode=None):
task— a description of what you want to do.context— optional and light. It is{"file_path"?, "extension"?, "project_markers"?}. It holds references only, not file content. If you omit it, warden still ranks from the configuration.mode—"auto"returns the single best pick."ask"returns a ranked list. The default comes from the configuration. If only one tool is a candidate, warden returns it directly and does not rank.
The result is {"mode", "single_option", "chosen", "candidates"}. Each
candidate has a name, a score, and reasons.
Routing rules live in the configuration (the routing block). warden reads
them at each call, so a change takes effect immediately.
priority_order— a list of names. An earlier name gets a higher rank and wins a tie.exclude— a list of names. warden never routes to these.rules— per-file rules. Each rule is{"when": {"extension"?: [...], "path_glob"?: "..."}, "prefer"?: [...], "exclude"?: [...]}. A rule matches the passedcontext. If you omit the context, warden skips the context rules and usespriority_orderandexcludeonly.
Set the rules with the CLI or the admin set_routing action:
warden routing set-mode ask
warden routing prefer ts-tools code-reviewer
warden routing exclude legacy-linter
warden routing add-rule --ext tsx --prefer ts-tools
warden routing showMigration from Claude Code
Claude Code loads each MCP tool and Skill into the context at start. The
migrate command moves them behind warden. The command does these tasks:
MCP servers — warden copies the server into the registry. warden removes the server from
~/.claude.json(the user scope or the project scope).Plugins — warden adds the Skills directory of the plugin to the registry. warden disables the plugin in
~/.claude/settings.json. This action disables all the functions of that plugin. Look at the dry run first.Personal skills — warden moves the directory
~/.claude/skills/<name>into a warden directory. warden adds that directory to the registry.
Before each change, warden makes a backup of the file. warden also
writes a manifest that permits a reverse. Therefore restore --id <id> (or
admin restore) puts back all the changes.
warden migrate --all # dry run: shows each change
warden migrate --all --apply # apply the changes and print the migration id
warden restore --id <id> # reverse the migrationSafe test. By default, migrate and restore change your real ~/.claude.
Add --home <dir> to use a different Claude home. Then you can do a full test of
a migration and its restore. Your real configuration does not change.
warden migrate --all --apply --home /tmp/fake-claude
warden restore --id <id> --home /tmp/fake-claudeRestart Claude Code. Claude Code reads
~/.claude.jsonand~/.claude/settings.jsonat start. Therefore the changes to the MCP servers and the plugins take effect only after a restart. The warden catalog updates immediately.
Limitation: warden does not start skills automatically
You get skills behind warden only through search. Claude Code cannot
start these skills automatically from their description. This is the cost to
keep them out of the context until you need them. To help, tell the model to use
warden first. This is an example CLAUDE.md text:
## Capabilities
warden hides many tools and skills to keep them out of the context. Before
you decide that a capability is not available, call the warden `search`
with a description of your need. Then call `use_skill` or `call_tool` on a
result.Tests
python3 -m unittest discover -s tests -vtests.test_search and tests.test_config are self-contained and need no other
software. tests.test_integration runs the full server through stdio MCP. It
uses a test MCP server and a test skill, and it needs mcp. If mcp is not
installed, this test skips automatically.
Design notes
The search is one function. It does regex scoring and keyword scoring together, and it uses only the standard
remodule. Refer towarden/search.py.The
call_tooltool opens a new connection to the MCP server for each call. It does not keep a pool of connections. Refer towarden/downstream.py. This design is simple and correct. It is sufficient, unless the start time of the subprocess becomes a measured problem.The configuration is plain JSON. It does not need a YAML dependency for two keys.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceAn MCP aggregator that consolidates multiple MCP servers behind a single interface with just 3 tools (search, get details, execute), reducing context pollution for AI agents by avoiding direct exposure of numerous tool schemas.Last updated2362MIT
- Alicense-qualityAmaintenanceAggregates tools from multiple upstream MCP servers and exposes them through 4 meta-tools, enabling LLMs to discover and use hundreds of tools without loading all schemas upfront.Last updated2Apache 2.0
- Alicense-qualityBmaintenanceA single MCP endpoint for AI agents to browse, inspect, and call tools from multiple upstream MCP servers without loading all schemas upfront, reducing context overhead.Last updated25ISC
- Alicense-qualityCmaintenanceActs as a proxy/router for multiple downstream MCP servers, exposing only meta-tools to the host to reduce token usage, enabling efficient search and invocation of tools from a fleet of servers.Last updatedMIT
Related MCP Connectors
Multi-engine search for AI agents. Trust scoring, local corpus, MCP-native. Self-hostable, BYOK.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chris-asmussen/smart-router'
If you have feedback or need assistance with the MCP directory API, please join our Discord server