MCP hosts (Claude Desktop, Codex, Cursor, custom orchestrators) launch Paybond as a stdio MCP server. The server exposes a tenant-bound tool surface: verify capabilities, authorize spend before side-effecting work, and submit evidence — same tenant boundary as the SDKs.
MCP is a first-class adapter
MCP hosts are a supported integration path alongside in-process adapters. Coding agents often start here before wiring paybond.instrument() in application code.
Try it (sandbox MCP path)
terminal
paybond login
paybond agent sandbox smoke \
--operation paid-tool \
--requested-spend-cents 100 \
--evidence-preset cost_and_completion \
--result-body '{"status":"ok","cost_cents":100}' \
--format tableFor MCP-native sandbox tools inside a running host, call paybond_bootstrap_sandbox_guardrail before the paid tool and paybond_submit_sandbox_guardrail_evidence after.
Launch the server
terminal
npx -y -p @paybond/kit paybond-mcp-serverRequired: PAYBOND_API_KEY (from paybond login → .env.local). Optional policy hot-reload:
terminal
export PAYBOND_POLICY_FILE="./paybond.policy.yaml"
export PAYBOND_POLICY_RELOAD="watch"Claude Desktop / Codex config
Add to your MCP host config (stdio):
{
"mcpServers": {
"paybond": {
"command": "npx",
"args": ["-y", "-p", "@paybond/kit", "paybond-mcp-server"],
"env": {
"PAYBOND_ENV_FILE": ".env.local"
}
}
}
}
Full coding-agent setup: /docs/kit/coding-agent-setup.
Production MCP flow
paybond_create_spend_intentorpaybond_fund_intent→intent_id+capability_tokenpaybond_authorize_agent_spendbefore the paid or side-effecting tool- Execute vendor work
paybond_submit_spend_evidencewith completion payload
PAYBOND_MCP_EVIDENCE_POLICY defaults to strict — evidence submit tools refuse calls until validation succeeds for the preset and payload.
Scaffold a paid-tool guard
terminal
npx -p @paybond/kit paybond-init \
--preset paid-tool-guard \
--framework provider-agnostic \
--out paybond-paid-tool-guard.tsFor multi-tool agents in application code, graduate to agent middleware.
Related guides
- Claude Agent SDK spend controls — in-process MCP custom tools
- Agent-agnostic spend controls — custom orchestrators
- Agent policy-as-code —
PAYBOND_POLICY_FILEhot-reload
Developer reference: /docs/kit/mcp-server.