IBM Granite via x402 for VS Code
io.github.nirholas/ibm-x402-mcp
x402 pay-per-use IBM Granite AI: chat, code, embeddings, analysis, forecasting. Pay USDC per call.
client:VS Code
transport:stdio
runtime:npm
Install IBM Granite via x402 in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "mcp-svm-payment-address",
"description": "MCP_SVM_PAYMENT_ADDRESS",
"password": true
},
{
"type": "promptString",
"id": "watsonx-api-key",
"description": "WATSONX_API_KEY",
"password": true
},
{
"type": "promptString",
"id": "watsonx-project-id",
"description": "WATSONX_PROJECT_ID",
"password": true
},
{
"type": "promptString",
"id": "watsonx-space-id",
"description": "WATSONX_SPACE_ID",
"password": true
},
{
"type": "promptString",
"id": "watsonx-url",
"description": "WATSONX_URL",
"password": true
},
{
"type": "promptString",
"id": "watsonx-model-id",
"description": "WATSONX_MODEL_ID",
"password": true
},
{
"type": "promptString",
"id": "watsonx-embed-model-id",
"description": "WATSONX_EMBED_MODEL_ID",
"password": true
},
{
"type": "promptString",
"id": "x402-fee-payer-solana",
"description": "X402_FEE_PAYER_SOLANA",
"password": true
},
{
"type": "promptString",
"id": "x402-facilitator-url",
"description": "X402_FACILITATOR_URL",
"password": true
}
],
"servers": {
"ibm-x402-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/ibm-x402-mcp"
],
"env": {
"MCP_SVM_PAYMENT_ADDRESS": "${input:mcp-svm-payment-address}",
"WATSONX_API_KEY": "${input:watsonx-api-key}",
"WATSONX_PROJECT_ID": "${input:watsonx-project-id}",
"WATSONX_SPACE_ID": "${input:watsonx-space-id}",
"WATSONX_URL": "${input:watsonx-url}",
"WATSONX_MODEL_ID": "${input:watsonx-model-id}",
"WATSONX_EMBED_MODEL_ID": "${input:watsonx-embed-model-id}",
"X402_FEE_PAYER_SOLANA": "${input:x402-fee-payer-solana}",
"X402_FACILITATOR_URL": "${input:x402-facilitator-url}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs