Claude Code / Claude Web / MCP
Connect A2A TrustGate to Claude — from the browser or the terminal. No install needed for Claude web.
Option A: Claude Web No install
Works directly in your browser at claude.ai or chatgpt.com. Just paste your API key.
Step 1: Get your API key
Sign up → Dashboard → API Keys → Create Key. Your key starts with a2a_.
Step 2: Add the remote MCP server
In Claude web, go to Settings → MCP Servers → Add Server:
// Server URL: https://mcp.a2ainfrastructure.com // Authentication: a2a_YOUR_API_KEY // That's it. 18 safety tools are now available. // Works with: Claude web, ChatGPT (Developer Mode), and any MCP client.
Step 3: Use it
Ask Claude to screen a command before running it:
# In Claude web, just ask: "Check if this command is safe: rm -rf /tmp/data" # Claude calls a2a_evaluate automatically # → Returns: blocked (destructive operation)
18 tools available: evaluate, audit, usage, pipelines, approvals, devices, killswitch, and more. Claude discovers them automatically.
Option B: Claude Code / Cursor / Windsurf
Local MCP server via stdio. Runs as a subprocess — faster, works offline for Gate 1.
Step 1: Set up
npx a2a-trustgate quickstart # Then run the interactive setup: npx a2a-trustgate setup
Step 2: Configure your editor
npx a2a-trustgate configure mcp # Or add to .mcp.json manually: { "mcpServers": { "a2a-trustgate": { "type": "stdio", "command": "a2a", "args": ["mcp-serve"] } } }
Also works with: Cursor (
~/.cursor/mcp.json), Windsurf (~/.windsurf/mcp.json), Cline, Aider — same config format.