CRA AGENT for VS Code
io.github.giupy997/cra-agent
Lets an agent pay for x402 APIs in USDC on Arc, under a spending policy it cannot change.
client:VS Code
transport:stdio
runtime:npm
Install CRA AGENT in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "cra-network",
"description": "CRA_NETWORK",
"password": true
},
{
"type": "promptString",
"id": "cra-key-file",
"description": "CRA_KEY_FILE",
"password": true
},
{
"type": "promptString",
"id": "cra-policy",
"description": "CRA_POLICY",
"password": true
},
{
"type": "promptString",
"id": "cra-rpc-url",
"description": "CRA_RPC_URL",
"password": true
},
{
"type": "promptString",
"id": "database-url",
"description": "DATABASE_URL",
"password": true
}
],
"servers": {
"cra-agent": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cra-agent/mcp"
],
"env": {
"CRA_NETWORK": "${input:cra-network}",
"CRA_KEY_FILE": "${input:cra-key-file}",
"CRA_POLICY": "${input:cra-policy}",
"CRA_RPC_URL": "${input:cra-rpc-url}",
"DATABASE_URL": "${input:database-url}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs