x402 Micro Tollgate for Zed
io.github.kevin2003050666-coder/x402-micro-tollgate
x402 HTTP 402 + MCP paywall: charge USDC per agent call. Self-host via npx or Docker.
client:Zed
transport:stdio
runtime:npm
Install x402 Micro Tollgate in Zed
~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json
{
"context_servers": {
"x402-micro-tollgate": {
"command": "npx",
"args": [
"-y",
"x402-micro-tollgate"
],
"env": {
"CDP_API_KEY_ID": "<CDP_API_KEY_ID>",
"CDP_API_KEY_SECRET": "<CDP_API_KEY_SECRET>",
"X402_PAY_TO": "<X402_PAY_TO>",
"UPSTREAM_URL": "<UPSTREAM_URL>",
"PRICE": "<PRICE>",
"NETWORK": "<NETWORK>",
"X402_ENVIRONMENT": "<X402_ENVIRONMENT>"
}
}
}
}
Merge this into your existing settings object — do not replace the file. Zed docs