Principle:1broseidon Ketch MCP Tool Allowlist
| Knowledge Sources | |
|---|---|
| Domains | MCP, Configuration |
| Last Updated | 2026-10-27 00:00 GMT |
Overview
A config-driven allowlist over the published MCP tool set: unlisted tools are never registered and the server instructions describe only what exists, so a pruned server never advertises what it won't answer.
Theoretical Basis
An MCP server publishes tools via `tools/list` and instructions via the initialize result. If a pruned set advertised tools the server won't answer, an agent would be routed to a dead tool. The allowlist keeps both in sync because both derive from one resolved list: tools not in the list are never registered with the SDK (so they don't appear in `tools/list`), and the instructions are generated from the same list (so they never mention a pruned tool).
Validation is fail-loud at three points — `config set`, the `KETCH_MCP_TOOLS` env override, and server startup — so a typo is caught early with the valid names listed. The empty/unset list publishes all six tools (the default); a configured list publishes exactly those tools. The result is canonical-ordered regardless of input order, so instructions stay deterministic.
Usage
Use when an agent-facing server must be prunable to a subset of tools. Derive both the tool registration and the instructions from one validated list. Validate fail-loud at every entry point.