Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:1broseidon Ketch MCP Tool Allowlist

From Leeroopedia
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.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment