Skip to content

Pin tool descriptions with the MCP proxy

Pinning a definition (MCP pinning) does not see a server that changes a tool’s description later. For that, run a stdio server through openmoat mcp proxy. It is opt-in per server:

Terminal window
openmoat mcp wrap <server> # one server
openmoat init --mcp-proxy # every server, at setup

openmoat mcp proxy sits between the agent and the server and:

  • pins each tool’s name, title, description, input and output schemas and annotations (such as readOnlyHint, which an agent may read to run a call without asking), and every other field of the tool as it is;
  • leaves every tool of a server it has not pinned yet out of the tool list, and refuses its calls, naming openmoat mcp accept <server>, which shows each tool and asks;
  • leaves a changed or new tool out of the tool list, and answers a call to it with an error naming openmoat mcp accept <server>; the call never reaches the server;
  • records every tool call in the audit log;
  • from 0.12.0, passes a call to the server only when the agent’s hook decided exactly that call, and refuses the rest with mcp-unattributed (The MCP gateway).

openmoat mcp accept <server> then shows a diff of what changed. openmoat mcp wrap changes only the server’s command in your own file (~/.claude.json, Cursor’s mcp.json, Codex’s config.toml, Copilot CLI’s mcp-config.json), keeps a backup, and never rewrites a project’s file. A server with a change you have not accepted is skipped. Add --dry-run to see what it would change.

Terminal window
openmoat mcp wrap <server> --sandbox

The server then runs under openmoat run: the sandbox made from your policy, with network only to the hosts the policy allows. Many servers need writes (package caches) or hosts the default policy does not list, so this is a choice per server. --sandbox cannot be used for an agent that itself runs under openmoat run.

Terminal window
openmoat mcp unwrap <server>

openmoat uninstall also puts every wrapped server back as it was.