Documentation menu

Connect Claude Code

Claude Code connects to Agent Warden as a remote HTTP MCP server, so it only sees the tools its agent's policy allows or holds.

  1. In WordPress, create an agent and copy its token (Install).
  2. In a terminal, add Agent Warden as an HTTP MCP server:
sh
claude mcp add --transport http agentwarden https://example.com/wp-json/agentwarden/mcp --header "Authorization: Bearer <YOUR_TOKEN>"
  1. Start Claude Code and run /mcp to see the agentwarden server and its tools.

Tips#

  • Give Claude Code an agent with the narrowest template that does the job, for example Content editor (drafts only) for writing drafts.
  • Hold anything you want to review with Hold for approval in the policy editor. Claude Code receives a pending result, and can check again later with the agentwarden/check-approval tool.
  • Remove the server with claude mcp remove agentwarden, and revoke the agent's token in Agent Warden → Agents.