Documentation menu

Connect Cursor

Cursor connects to Agent Warden as a remote MCP server with a bearer token, for all your projects or just one.

  1. In WordPress, create an agent and copy its token (Install).
  2. 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>" }
    }
  }
}
  1. Enable the agentwarden server. 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.