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.
- In WordPress, create an agent and copy its token (Install).
- 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>"
- Start Claude Code and run
/mcpto see theagentwardenserver 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-approvaltool. - Remove the server with
claude mcp remove agentwarden, and revoke the agent's token in Agent Warden → Agents.