AgentGuard for VS Code
io.github.zaxcoraider/agentguard-mcp
Let an AI agent pay on NEAR through a vault whose spending rules a contract enforces, not the agent.
client:VS Code
transport:stdio
runtime:npm
Install AgentGuard in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "agentguard-vault",
"description": "AGENTGUARD_VAULT",
"password": true
},
{
"type": "promptString",
"id": "near-network",
"description": "NEAR_NETWORK",
"password": true
},
{
"type": "promptString",
"id": "agentguard-agent-key",
"description": "AGENTGUARD_AGENT_KEY",
"password": true
},
{
"type": "promptString",
"id": "agentguard-key-file",
"description": "AGENTGUARD_KEY_FILE",
"password": true
},
{
"type": "promptString",
"id": "near-rpc-url",
"description": "NEAR_RPC_URL",
"password": true
},
{
"type": "promptString",
"id": "sentinel-url",
"description": "SENTINEL_URL",
"password": true
}
],
"servers": {
"agentguard-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@zaxcoraider/agentguard-mcp"
],
"env": {
"AGENTGUARD_VAULT": "${input:agentguard-vault}",
"NEAR_NETWORK": "${input:near-network}",
"AGENTGUARD_AGENT_KEY": "${input:agentguard-agent-key}",
"AGENTGUARD_KEY_FILE": "${input:agentguard-key-file}",
"NEAR_RPC_URL": "${input:near-rpc-url}",
"SENTINEL_URL": "${input:sentinel-url}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs