agentguard for Cursor
io.github.agentwares/agentguard
MCP policy proxy: spend caps, approvals for destructive tools, kill switch, dry-run, audit log.
client:Cursor
transport:stdio
runtime:npm
Install agentguard in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"agentguard": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agentwares/agentguard"
],
"env": {
"AGENTGUARD_CONFIG": "<AGENTGUARD_CONFIG>",
"AGENTGUARD_KILL": "<AGENTGUARD_KILL>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs