Connect any MCP client
Agent Warden is a streamable HTTP MCP server at your site's REST API:
- Endpoint:
https://example.com/wp-json/agentwarden/mcp, orhttps://example.com/?rest_route=/agentwarden/mcpwithout pretty permalinks. - Authentication:
Authorization: Bearer <YOUR_TOKEN>on every request.
A generic client configuration:
json
{
"name": "agentwarden",
"transport": "http",
"url": "https://example.com/wp-json/agentwarden/mcp",
"headers": { "Authorization": "Bearer <YOUR_TOKEN>" }
}
What the client sees#
- Tools:
tools/listreturns only the abilities the agent's policy allows or holds. Denied abilities are not listed. - Refusals: a denied call returns an error that names the rule, so the agent can explain it.
- Holds: a held call returns a pending result with an approval ID. The
agentwarden/check-approvaltool returns the status:pending,approved,denied,expired,failed, ornot_found. Passwait_secondsto wait for a decision. An approved action has already run, and its outcome is inresult.
A token only works on the MCP endpoint if MCP is ticked under Client types when the agent is created. All three client types are ticked by default.