agentguard for VS Code
io.github.agentwares/agentguard
MCP policy proxy: spend caps, approvals for destructive tools, kill switch, dry-run, audit log.
client:VS Code
transport:stdio
runtime:npm
Install agentguard in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "agentguard-config",
"description": "AGENTGUARD_CONFIG",
"password": true
},
{
"type": "promptString",
"id": "agentguard-kill",
"description": "AGENTGUARD_KILL",
"password": true
}
],
"servers": {
"agentguard": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agentwares/agentguard"
],
"env": {
"AGENTGUARD_CONFIG": "${input:agentguard-config}",
"AGENTGUARD_KILL": "${input:agentguard-kill}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs