Local mandate gate and proof trail for AI agents that take consequential actions.
registry version 0.1.5
npm
npx -y forge-agent-gatenpm
npx -y forge-agent-gate@0.1.5
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"agent-gate": {
"command": "npx",
"args": [
"-y",
"forge-agent-gate"
],
"env": {
"FORGE_API_KEY": "<YOUR_FORGE_API_KEY>",
"FORGE_BEARER_TOKEN": "<YOUR_FORGE_BEARER_TOKEN>",
"FORGE_TENANT_ID": "<YOUR_FORGE_TENANT_ID>",
"KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>"
}
}
}
}{
"mcpServers": {
"agent-gate": {
"command": "npx",
"args": [
"-y",
"forge-agent-gate@0.1.5"
],
"env": {
"FORGE_API_KEY": "<YOUR_FORGE_API_KEY>",
"FORGE_BEARER_TOKEN": "<YOUR_FORGE_BEARER_TOKEN>",
"FORGE_TENANT_ID": "<YOUR_FORGE_TENANT_ID>",
"KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env FORGE_API_KEY=<YOUR_FORGE_API_KEY> --env FORGE_BEARER_TOKEN=<YOUR_FORGE_BEARER_TOKEN> --env FORGE_TENANT_ID=<YOUR_FORGE_TENANT_ID> --env KALSHI_API_KEY_ID=<YOUR_KALSHI_API_KEY_ID> agent-gate -- npx -y forge-agent-gate
claude mcp add --env FORGE_API_KEY=<YOUR_FORGE_API_KEY> --env FORGE_BEARER_TOKEN=<YOUR_FORGE_BEARER_TOKEN> --env FORGE_TENANT_ID=<YOUR_FORGE_TENANT_ID> --env KALSHI_API_KEY_ID=<YOUR_KALSHI_API_KEY_ID> agent-gate -- npx -y forge-agent-gate@0.1.5
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"agent-gate": {
"command": "npx",
"args": [
"-y",
"forge-agent-gate"
],
"env": {
"FORGE_API_KEY": "<YOUR_FORGE_API_KEY>",
"FORGE_BEARER_TOKEN": "<YOUR_FORGE_BEARER_TOKEN>",
"FORGE_TENANT_ID": "<YOUR_FORGE_TENANT_ID>",
"KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>"
}
}
}
}{
"mcpServers": {
"agent-gate": {
"command": "npx",
"args": [
"-y",
"forge-agent-gate@0.1.5"
],
"env": {
"FORGE_API_KEY": "<YOUR_FORGE_API_KEY>",
"FORGE_BEARER_TOKEN": "<YOUR_FORGE_BEARER_TOKEN>",
"FORGE_TENANT_ID": "<YOUR_FORGE_TENANT_ID>",
"KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"agent-gate": {
"command": "npx",
"args": [
"-y",
"forge-agent-gate"
],
"env": {
"FORGE_API_KEY": "<YOUR_FORGE_API_KEY>",
"FORGE_BEARER_TOKEN": "<YOUR_FORGE_BEARER_TOKEN>",
"FORGE_TENANT_ID": "<YOUR_FORGE_TENANT_ID>",
"KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>"
}
}
}
}{
"servers": {
"agent-gate": {
"command": "npx",
"args": [
"-y",
"forge-agent-gate@0.1.5"
],
"env": {
"FORGE_API_KEY": "<YOUR_FORGE_API_KEY>",
"FORGE_BEARER_TOKEN": "<YOUR_FORGE_BEARER_TOKEN>",
"FORGE_TENANT_ID": "<YOUR_FORGE_TENANT_ID>",
"KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"agent-gate": {
"command": "npx",
"args": [
"-y",
"forge-agent-gate"
],
"env": {
"FORGE_API_KEY": "<YOUR_FORGE_API_KEY>",
"FORGE_BEARER_TOKEN": "<YOUR_FORGE_BEARER_TOKEN>",
"FORGE_TENANT_ID": "<YOUR_FORGE_TENANT_ID>",
"KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>"
}
}
}
}{
"mcpServers": {
"agent-gate": {
"command": "npx",
"args": [
"-y",
"forge-agent-gate@0.1.5"
],
"env": {
"FORGE_API_KEY": "<YOUR_FORGE_API_KEY>",
"FORGE_BEARER_TOKEN": "<YOUR_FORGE_BEARER_TOKEN>",
"FORGE_TENANT_ID": "<YOUR_FORGE_TENANT_ID>",
"KALSHI_API_KEY_ID": "<YOUR_KALSHI_API_KEY_ID>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
FORGE_API_KEY secret — Forge decision-API key (starts with fi_). Set this or FORGE_BEARER_TOKEN.FORGE_BEARER_TOKEN secret — Alternative to FORGE_API_KEY: a Forge bearer token for the decision API.FORGE_API_BASE_URL — Base URL of the Forge decision API. Defaults to the hosted Forge cloud.FORGE_TENANT_ID required — Tenant id stamped into every proof-trail record.FORGE_RECORD_MODE — required = fail-closed (block if Forge cannot record); best_effort = execute anyway.AGENT_GATE_MANDATE_PATH — Absolute path to the signed mandate (policy) JSON. Create it with `forge-agent-gate init`.AGENT_GATE_KILL_FILE — If this file exists, every gated write is hard-blocked (master kill switch).KALSHI_API_KEY_ID secret — Kalshi API key id. Only for the live Kalshi venue adapter; stays on your machine.Distributed as npm, listed under AI Agents. Review our MCP security guide before granting access to real data.
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/agent-gate/)
HTML
<a href="https://mcpnav.net/server/agent-gate/"><img src="https://mcpnav.net/badge/agent-gate.svg" alt="Listed on MCPNav" height="20"></a>