Connect Claude Code

ProxyKit must be running so the engine writes its local control token — MCP talks to 127.0.0.1, never to the cloud.

Requirements

Terminal
$ claude mcp add proxykit /Applications/ProxyKit.app/Contents/Resources/proxykit-mcp
.mcp.json (project root)
{ "mcpServers": { "proxykit": { "command": "/Applications/ProxyKit.app/Contents/Resources/proxykit-mcp", "env": { "PROXYKIT_CONTROL_AUTH_TOKEN_FILE": "~/Library/Application Support/ProxyKit/control.token", "PROXYKIT_MCP_TIER": "readonly" } } } }

A project .mcp.json commits the server for everyone on the repo; claude mcp add configures it for you only.

  1. Start ProxyKit so the engine writes control.token.
  2. Run claude mcp add, or commit the .mcp.json block above to the repo root.
  3. Set PROXYKIT_MCP_TIER in the env block — readonly is the default.
  4. Restart Claude Code so it picks up the server.

What Claude Code can do with it

Tiered tools — start read-only, opt in to mutation and capture when you trust the workflow.

Traffic inspection

List, filter, and explain captured HTTP requests without leaving the chat.

Rules & mocks

Create and validate mocks, rewrites, chaos rules, and assertions from conversation.

Sessions & replay

Compare sessions, replay requests, and run CI-style diffs against live endpoints.

Findings & redaction

Triage security findings and apply redaction suggestions to protect secrets.

Tiered permissions

Start read-only; opt in to mutate, capture, analysis, and replay per workspace.

Same engine as the UI

Every tool calls the local control API — no duplicated proxy logic in MCP.

Exposed tool groups

  • tooltraffic.list / get / explain
  • toolrules.list / create / validate
  • toolmocks / rewrites / chaos / assertions
  • toolsessions.list / compare / replay
  • toolfindings.list / triage / dismiss
  • toolredaction.suggest / apply
  • toolpacks / codegen / export

When Claude Code does not see the tools

Both use the same command and env block. A committed .mcp.json gives every contributor the tools; claude mcp add keeps the configuration on your machine only.

Uninstall

  1. Run claude mcp remove proxykit, or delete the proxykit entry from .mcp.json.
  2. Restart Claude Code.

Connect Claude Code to real traffic

Install MCP once. Debug, mock, and replay from your assistant.

Download ProxyKitSet up capture →