Skip to content

People connecting MCP servers

An agent starts its MCP servers when a session begins, with your permissions, and a server’s definition or tool descriptions can change after you added it. One server’s result can also end up in another server’s writing tool.

In your own terminal:

Terminal window
openmoat mcp wrap github # or: openmoat init --mcp-proxy, for every stdio server
openmoat mcp accept github # after the agent first starts it: read each tool, accept
openmoat status # lists the servers that start outside OpenMoat

openmoat mcp unwrap github and openmoat uninstall put the server’s configuration back. A wrapped server runs in openmoat run’s sandbox where that can sandbox (macOS 13 or later, Linux).

What the agent’s MCP list shows when a definition changed:

Terminal window
OpenMoat did not start MCP server `github`: MCP server `github` in ~/.claude.json changed
command: "npx" → "sh"; OpenMoat starts it only once a person has reviewed it: run
`openmoat mcp accept github` in a terminal

Run openmoat mcp accept github, then restart the agent’s session.

  • A new or changed server. Its tool calls are refused until you accept it, and a wrapped server does not start at all.
  • A changed tool. A tool nobody accepted, or one whose description, schemas or annotations changed, is left out of the agent’s tool list and its calls are refused.
  • Changed server text. New or changed instructions, prompts and resources are held until openmoat mcp accept shows you what changed.
  • Files and hosts named in arguments. Paths and URLs in a call’s arguments are checked by the policy, as the hook checks any file or host.
  • Data carried between servers. A later call of another server’s tool that writes or sends text one server returned is held for review (mcp-cross-server).
  • Unwrapped servers start before any call is checked. A changed or new server’s tool calls are denied, but its command has already run once, with your permissions.
  • The hook sees an MCP call’s arguments, not what the server then does. A server started without --sandbox, or where no sandbox is available, can read any file you can and write anywhere.
  • The gateway covers stdio servers only. A remote (HTTP) server is checked by the hook alone.
  • The flow check sees wrapped servers and exact text only. Results of a server not run through openmoat mcp wrap are not recorded, and text the agent rewrites, encodes, splits or shortens below eight words is not found. A tool’s own annotations or its name decide whether it writes or sends.
  • A browser goes where the page sends it. OpenMoat checks the URL a call names, not where the page’s scripts, links and redirects lead next.
  • Tool results reach the model as the server sent them. They mark the session untrusted.

Antigravity CLI’s MCP servers are pinned and can be wrapped, but no test runs a real agy with them yet, so that part is preview (Protection by agent and OS).

The MCP gateway · Tool pinning · MCP data between servers · Limits