MCP integration
ToolFence Gate can sit in front of agent tool calls via MCP — as a gate, not a transparent upstream proxy.
HTTP gated call (tools/call)
POST /v1/mcp/tools/call
{
"name": "send_refund",
"arguments": { "customer_id": "c1", "amount": 49.99 },
"risk": "high",
"tags": ["finance"],
"agent_id": "mcp-gate"
}
Response includes policy, optional pending approval, and whether the call is allowed.
When approval is required, wait until Inbox decides — same bound fingerprint rules as the SDK.
Stdio MCP server
For local coding agents (Claude Code and similar):
toolpause-mcp
Point the agent MCP config at this process. Set the backend URL and API key when auth is on.
Copy-ready config: Inbox → Get started → MCP.
MCP catalog / gate
GET / PUT /v1/mcp/config — enable the catalog, default agent_id, and per-tool risk / tags / require-approval.
Configure in Rules → MCP catalog / gate.
Operator knobs
| Control | Where |
|---|---|
| Per-tool pause / deny / allow | Rules |
| Trusted-agent bypass | Rules → trusted agents |
| Risk thresholds | Rules |
| MCP catalog | Rules → MCP catalog / gate |
| Timeout extend | Inbox → +5 min |
| Pending digest | Settings |
vs raw MCP
Without ToolPause, MCP tools run as soon as the model calls them.
With ToolPause, high-impact calls pause on a bound tool+args fingerprint until a human clears them.
See also: quickstart · API