{"_id":"@andesmountain/stdio-bridge-http","_rev":"2-24365624d6cd1c3fa77fd2f216c56bd4","name":"@andesmountain/stdio-bridge-http","dist-tags":{"latest":"2.6.1"},"versions":{"2.6.0":{"name":"@andesmountain/stdio-bridge-http","version":"2.6.0","keywords":["x402","mcp","stdio","claude","chatbox","payment"],"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","_id":"@andesmountain/stdio-bridge-http@2.6.0","maintainers":[{"name":"andesmountain","email":"443889956@qq.com"}],"homepage":"https://github.com/coinbase/x402#readme","bugs":{"url":"https://github.com/coinbase/x402/issues"},"bin":{"stdio-bridge-http":"dist/cli.js"},"dist":{"shasum":"199d97698c3157c0a377aba993d234676417a00f","tarball":"https://registry.npmjs.org/@andesmountain/stdio-bridge-http/-/stdio-bridge-http-2.6.0.tgz","fileCount":4,"integrity":"sha512-5HQ2QP9+169ngrwKroQiR29H1ehF3gaQPC5Idxsc3b7cycZZWmbt0jpt+R/zVoetM2rRPOoI+bV+VByTRCDYIA==","signatures":[{"sig":"MEYCIQCWcC4nLWFInHXc2t2rd6U1f8YXfusA39Lw1O1gASO3OgIhAMbiKBcJNrqaclgVCCCl3dI8gd+dYthtHkqOAdOo6eAn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14072},"main":"./dist/cli.js","type":"module","engines":{"node":">=18.0.0"},"gitHead":"0f74fb46506d642a947cbcd4743377126027090b","scripts":{"lint":"eslint . --ext .ts --fix","build":"tsup","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"andesmountain","email":"443889956@qq.com"},"repository":{"url":"git+https://github.com/coinbase/x402.git","type":"git"},"_npmVersion":"10.9.4","description":"x402 stdio bridge for Claude Desktop / Chatbox — connect MCP stdio to an HTTP API with 402 payment","directories":{},"_nodeVersion":"22.22.0","dependencies":{"viem":"^2.39.0","dotenv":"^16.5.0","@x402/evm":"workspace:~","@x402/fetch":"workspace:~","@modelcontextprotocol/sdk":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","eslint":"^9.24.0","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/stdio-bridge-http_2.6.0_1773200128986_0.9467336390619416","host":"s3://npm-registry-packages-npm-production"}},"2.6.1":{"name":"@andesmountain/stdio-bridge-http","version":"2.6.1","description":"x402 stdio bridge for Claude Desktop / Chatbox — connect MCP stdio to an HTTP API with 402 payment","type":"module","main":"./dist/cli.js","bin":{"stdio-bridge-http":"dist/cli.js"},"scripts":{"build":"tsup","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\"","lint":"eslint . --ext .ts --fix","lint:check":"eslint . --ext .ts"},"keywords":["x402","mcp","stdio","claude","chatbox","payment"],"license":"Apache-2.0","author":{"name":"Coinbase Inc."},"repository":{"type":"git","url":"git+https://github.com/coinbase/x402.git"},"engines":{"node":">=18.0.0"},"dependencies":{"@modelcontextprotocol/sdk":"^1.12.1","@x402/evm":"^2.6.0","@x402/fetch":"^2.6.0","dotenv":"^16.5.0","viem":"^2.39.0"},"devDependencies":{"@eslint/js":"^9.24.0","@types/node":"^22.13.4","@typescript-eslint/eslint-plugin":"^8.29.1","@typescript-eslint/parser":"^8.29.1","eslint":"^9.24.0","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.6","prettier":"3.5.2","tsup":"^8.4.0","typescript":"^5.7.3"},"_id":"@andesmountain/stdio-bridge-http@2.6.1","gitHead":"0f74fb46506d642a947cbcd4743377126027090b","bugs":{"url":"https://github.com/coinbase/x402/issues"},"homepage":"https://github.com/coinbase/x402#readme","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-f+RqklPd2aAN8Kr7XT1JpJmswZI94m8A5mnlWov9wfYfkc6288/T19SqvpWz9kPLtkLQ3PnaVS794FGAGgv5Lw==","shasum":"e894729253329cfe23b5b3e17989fc9b17d70488","tarball":"https://registry.npmjs.org/@andesmountain/stdio-bridge-http/-/stdio-bridge-http-2.6.1.tgz","fileCount":4,"unpackedSize":14062,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICMawe2dYXTnQ7E9tlbEbUO4MsCMMv08a8txeub77Ig2AiAaaD8LC3J9iGvXMe1vf6GrfHuF4q+dKaWyUdgyvEGjkg=="}]},"_npmUser":{"name":"andesmountain","email":"443889956@qq.com"},"directories":{},"maintainers":[{"name":"andesmountain","email":"443889956@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stdio-bridge-http_2.6.1_1773201104671_0.10383762626765347"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-11T03:35:28.914Z","modified":"2026-03-11T03:51:44.953Z","2.6.0":"2026-03-11T03:35:29.159Z","2.6.1":"2026-03-11T03:51:44.821Z"},"bugs":{"url":"https://github.com/coinbase/x402/issues"},"author":{"name":"Coinbase Inc."},"license":"Apache-2.0","homepage":"https://github.com/coinbase/x402#readme","keywords":["x402","mcp","stdio","claude","chatbox","payment"],"repository":{"type":"git","url":"git+https://github.com/coinbase/x402.git"},"description":"x402 stdio bridge for Claude Desktop / Chatbox — connect MCP stdio to an HTTP API with 402 payment","maintainers":[{"name":"andesmountain","email":"443889956@qq.com"}],"readme":"# @andesmountain/stdio-bridge-http\n\nx402 stdio bridge for **Claude Desktop** and **Chatbox**: connect MCP stdio to an HTTP API with 402 payment. The bridge speaks MCP over stdio and calls your HTTP backend; payment is handled in the bridge so the model never sees x402 details.\n\n## Quick start (npx)\n\nNo clone required. In your Claude Desktop or Chatbox MCP config, use:\n\n```json\n{\n  \"mcpServers\": {\n    \"demo-http\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@andesmountain/stdio-bridge-http\"],\n      \"env\": {\n        \"EVM_PRIVATE_KEY\": \"0x...\",\n        \"HTTP_SERVER_URL\": \"http://localhost:4021\",\n        \"FACILITATOR_URL\": \"https://x402.org/facilitator\"\n      }\n    }\n  }\n}\n```\n\n- **EVM_PRIVATE_KEY** (required): EVM wallet private key (with `0x` prefix). Must have testnet funds for payment.\n- **HTTP_SERVER_URL** (optional): Your x402 HTTP server base URL. Default: `http://localhost:4021`.\n- **FACILITATOR_URL** (optional): x402 facilitator URL.\n\nEnsure your HTTP server is running (e.g. the [Express example](https://github.com/coinbase/x402/tree/main/examples/typescript/servers/express)). The bridge exposes a single tool `get_weather` that calls `GET {HTTP_SERVER_URL}/weather?city=...` and handles 402 payment.\n\n## Install as dependency\n\n```bash\npnpm add @andesmountain/stdio-bridge-http\n# or\nnpm i @andesmountain/stdio-bridge-http\n```\n\nThen in MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"demo-http\": {\n      \"command\": \"pnpm\",\n      \"args\": [\"exec\", \"stdio-bridge-http\"],\n      \"env\": {\n        \"EVM_PRIVATE_KEY\": \"0x...\",\n        \"HTTP_SERVER_URL\": \"http://localhost:4021\",\n        \"FACILITATOR_URL\": \"https://x402.org/facilitator\"\n      }\n    }\n  }\n}\n```\n\nOr with Node directly (after `node_modules/.bin` in PATH or full path):\n\n```json\n\"command\": \"node\",\n\"args\": [\"node_modules/@andesmountain/stdio-bridge-http/dist/cli.js\"],\n\"env\": { ... }\n```\n\n## Flow\n\n```\nClaude Desktop / Chatbox (stdio MCP)\n        ↓\n  this bridge (x402 client)\n        ↓\n  Your HTTP API (e.g. Express + x402 middleware)\n```\n\nTools are defined in the bridge; when a tool is called, the bridge performs the HTTP request and handles 402 payment, then returns the result over MCP.\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}