kitsune-mcp is a tool centered on developing, testing, and temporarily mounting MCP (Model Context Protocol) servers. The project uses the "nine-tailed fox" as a metaphor: an agent can borrow a server's capabilities, then shed them after use, without restarting the client.
Purpose and Background MCP clients typically start a server once and keep that process running. When an agent modifies tool code, the client is still running the old code, so the agent cannot verify the fix itself and must wait for a manual restart or reconnect. On the other hand, when trying someone else's community server, the code enters the user's configuration and starts with the current user's identity, potentially gaining access to local files and API keys. kitsune-mcp attempts to solve both problems: letting the agent complete the "edit—reload—call" loop within the same session, and providing optional Docker isolation for community code.
Main Capabilities
- Hot reload: connect, call, and reload are exposed to the agent as tools, enabling it to complete the connect, call, and reload cycle on its own. After reload, tools are re-registered as real client tools, preserving the same schema, structured output, and error messages.
- Mounting servers mid-session: shapeshift(server_id) can select stdio, Streamable HTTP, legacy SSE, WebSocket, or Docker transport; after connecting, it reads tools/list and registers each tool as a native tool; calling it without arguments unmounts and closes the connection.
- Search and discovery: search() covers the official server repository, MCP Registry, Glama, npm, PyPI, and GitHub (github:owner/repo); hosted servers are accessed via their https:// URL.
- Developer tools: setting KITSUNE_TOOLS=all or using the kitsune-forge command enables inspect (schema, credential checks, token cost), bench (p50/p95 latency), compare, prewarm, craft (turning any HTTP endpoint into a tool), setup, and more.
- Authentication: if a hosted server uses OAuth, auth("server-id") can initiate a browser flow with PKCE, and tokens are stored per server URL.
Usage The project requires Python 3.12+, uv; the npm method requires node/npx; Docker is optional and is used only to isolate community servers. Installation methods include: running via uvx, PyPI (pip install kitsune-mcp, command kitsune-mcp), npm (npx kitsune-mcp, delegated to uvx). Configuration for different clients (Claude Code, Claude Desktop, Cursor, Windsurf, Cline, Zed, etc.) is described in the project documentation; for automatic installation by AI agents, see llms-install.md. The default toolset has about 10 tools; on clients that preload all tool schemas, there is a resident cost of about 1,900 tokens per turn, and on Claude Code with Tool Search enabled, about 70 tokens/turn (measurement data provided by the project).
Security and limitations
- Community sources (npm, PyPI, GitHub) require confirm=True; the model can set this flag itself, so real approval should rely on the client's tool approval UI.
- When Docker is installed, community packages run in a container by default: no host filesystem, read-only root, --cap-drop ALL, no-new-privileges, memory and PID limits; credentials are passed by name rather than as command-line arguments.
- Version pinning (TOFU): a version that is already running will not be silently replaced by a later malicious release.
- connect() is for the user's own code, runs as the current user, has no consent gate or sandbox, and should be approved in the client.
- Optional action guard: ~/.kitsune/policy.json checks downstream call parameters according to allow/ask/deny rules, path roots, and host allowlists; ask is confirmed by the user via MCP elicitation.
- No duplicate execution: calls that may have already executed (timeout after sending, broken pipe) are not resent; instead, "result unknown" is reported.
- SSRF protection: fetch() and craft tools reject private, loopback, and cloud metadata addresses; redirects are rechecked on each hop; credentials and request bodies are not carried across origins when following redirects.
- OAuth 2.1: PKCE, issuer checks (RFC 8414, RFC 9207), HTTPS enforced for endpoints involving secrets, token requests do not follow redirects.
- Verifiable releases: GitHub releases are Sigstore-signed, builds are reproducible, and signature files are byte-identical to PyPI.
- The project explicitly warns: do not run unattended in production management, billing, or security credential environments.
Use cases Suitable for MCP server developers for rapid iteration and validation of real client behavior; suitable for agents to temporarily try community servers within a session; suitable for automated workflows that need to test tool fixes without restarting the client. For scenarios requiring only a one-off quick check, the project also states that it does not replace the scripting method of issuing JSON-RPC directly from Bash, but rather supplements it with capabilities such as real client tool testing, no need to write test scaffolding, and isolation of community code.
Other information The project uses the MIT license, is built on the MCP Python SDK, and provides documentation, hot-reload tutorials, security model explanations, and a compatibility list.