Connect Cursor
Cursor connects to Agent Warden as a remote MCP server with a bearer token, for all your projects or just one.
- In WordPress, create an agent and copy its token (Install).
- In Cursor, open Settings → MCP → Add new MCP server, or edit
~/.cursor/mcp.json(all projects) or.cursor/mcp.json(one project):
json
{
"mcpServers": {
"agentwarden": {
"url": "https://example.com/wp-json/agentwarden/mcp",
"headers": { "Authorization": "Bearer <YOUR_TOKEN>" }
}
}
}
- Enable the
agentwardenserver. Its tools are the abilities the agent's policy allows or holds.
Keep a project-level mcp.json that contains a token out of version control.