clawswap for VS Code
io.github.wartech9/clawswap
Cross-chain swaps between Solana and Base for AI agents paid for via via x402 micropayments.
client:VS Code
transport:stdio
runtime:npm
Install clawswap in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "solana-private-key",
"description": "SOLANA_PRIVATE_KEY",
"password": true
},
{
"type": "promptString",
"id": "base-private-key",
"description": "BASE_PRIVATE_KEY",
"password": true
},
{
"type": "promptString",
"id": "solana-rpc-url",
"description": "SOLANA_RPC_URL",
"password": true
},
{
"type": "promptString",
"id": "base-rpc-url",
"description": "BASE_RPC_URL",
"password": true
}
],
"servers": {
"clawswap": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
],
"env": {
"SOLANA_PRIVATE_KEY": "${input:solana-private-key}",
"BASE_PRIVATE_KEY": "${input:base-private-key}",
"SOLANA_RPC_URL": "${input:solana-rpc-url}",
"BASE_RPC_URL": "${input:base-rpc-url}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs