Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Pay any x402 endpoint on the open web: auto-paying bridge with Bazaar discovery and spend caps.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MCP_BRIDGE_EVM_PRIVATE_KEY, MCP_BRIDGE_SVM_PRIVATE_KEY, MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC, MCP_BRIDGE_MAX_TOTAL_ATOMIC, MCP_BRIDGE_ALLOWED_PAYTO, MCP_BRIDGE_ALLOWED_HOSTS, MCP_BRIDGE_ALLOW_HTTP, MCP_BRIDGE_DISCOVER_LIMIT, MCP_BRIDGE_BAZAAR_URL, MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER, MCP_BRIDGE_MAX_DEPOSIT_ATOMIC, X402_MCP_BRIDGE_CHANNELS_DIR, RPC_URL_8453标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"x402-bridge": {
"command": "npx",
"args": [
"-y",
"@three-ws/mcp-bridge"
],
"env": {
"MCP_BRIDGE_EVM_PRIVATE_KEY": "your-value",
"MCP_BRIDGE_SVM_PRIVATE_KEY": "your-value",
"MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC": "your-value",
"MCP_BRIDGE_MAX_TOTAL_ATOMIC": "your-value",
"MCP_BRIDGE_ALLOWED_PAYTO": "your-value",
"MCP_BRIDGE_ALLOWED_HOSTS": "your-value",
"MCP_BRIDGE_ALLOW_HTTP": "your-value",
"MCP_BRIDGE_DISCOVER_LIMIT": "your-value",
"MCP_BRIDGE_BAZAAR_URL": "your-value",
"MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER": "your-value",
"MCP_BRIDGE_MAX_DEPOSIT_ATOMIC": "your-value",
"X402_MCP_BRIDGE_CHANNELS_DIR": "your-value",
"RPC_URL_8453": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add x402-bridge --env MCP_BRIDGE_EVM_PRIVATE_KEY=your-value --env MCP_BRIDGE_SVM_PRIVATE_KEY=your-value --env MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC=your-value --env MCP_BRIDGE_MAX_TOTAL_ATOMIC=your-value --env MCP_BRIDGE_ALLOWED_PAYTO=your-value --env MCP_BRIDGE_ALLOWED_HOSTS=your-value --env MCP_BRIDGE_ALLOW_HTTP=your-value --env MCP_BRIDGE_DISCOVER_LIMIT=your-value --env MCP_BRIDGE_BAZAAR_URL=your-value --env MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER=your-value --env MCP_BRIDGE_MAX_DEPOSIT_ATOMIC=your-value --env X402_MCP_BRIDGE_CHANNELS_DIR=your-value --env RPC_URL_8453=your-value -- npx -y @three-ws/mcp-bridge运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"x402-bridge": {
"command": "npx",
"args": [
"-y",
"@three-ws/mcp-bridge"
],
"env": {
"MCP_BRIDGE_EVM_PRIVATE_KEY": "your-value",
"MCP_BRIDGE_SVM_PRIVATE_KEY": "your-value",
"MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC": "your-value",
"MCP_BRIDGE_MAX_TOTAL_ATOMIC": "your-value",
"MCP_BRIDGE_ALLOWED_PAYTO": "your-value",
"MCP_BRIDGE_ALLOWED_HOSTS": "your-value",
"MCP_BRIDGE_ALLOW_HTTP": "your-value",
"MCP_BRIDGE_DISCOVER_LIMIT": "your-value",
"MCP_BRIDGE_BAZAAR_URL": "your-value",
"MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER": "your-value",
"MCP_BRIDGE_MAX_DEPOSIT_ATOMIC": "your-value",
"X402_MCP_BRIDGE_CHANNELS_DIR": "your-value",
"RPC_URL_8453": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"x402-bridge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/mcp-bridge"
],
"env": {
"MCP_BRIDGE_EVM_PRIVATE_KEY": "your-value",
"MCP_BRIDGE_SVM_PRIVATE_KEY": "your-value",
"MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC": "your-value",
"MCP_BRIDGE_MAX_TOTAL_ATOMIC": "your-value",
"MCP_BRIDGE_ALLOWED_PAYTO": "your-value",
"MCP_BRIDGE_ALLOWED_HOSTS": "your-value",
"MCP_BRIDGE_ALLOW_HTTP": "your-value",
"MCP_BRIDGE_DISCOVER_LIMIT": "your-value",
"MCP_BRIDGE_BAZAAR_URL": "your-value",
"MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER": "your-value",
"MCP_BRIDGE_MAX_DEPOSIT_ATOMIC": "your-value",
"X402_MCP_BRIDGE_CHANNELS_DIR": "your-value",
"RPC_URL_8453": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC envMCP_BRIDGE_MAX_TOTAL_ATOMIC envMCP_BRIDGE_ALLOWED_PAYTO envMCP_BRIDGE_ALLOWED_HOSTS envMCP_BRIDGE_ALLOW_HTTP envMCP_BRIDGE_DISCOVER_LIMIT envMCP_BRIDGE_BAZAAR_URL envMCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER envMCP_BRIDGE_MAX_DEPOSIT_ATOMIC envX402_MCP_BRIDGE_CHANNELS_DIR envRPC_URL_8453 env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 nirholas 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:MCP_BRIDGE_EVM_PRIVATE_KEY, MCP_BRIDGE_SVM_PRIVATE_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.2)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, FlyDocs
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Spec-driven development workflow: your agent works issues, sessions and the status lifecycle.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@three-ws/mcp-bridge
One MCP server that can pay any x402-paid endpoint on the open web — the universal x402 payer for AI agents.
Quick start · Security · Tools · Environment · three.ws
A Model Context Protocol server that can pay any x402-paid endpoint on the open web. Point your agent at a URL that answers
402 Payment Required; the bridge signs, pays, retries, and hands back the response plus the settlement receipt — EVM exact, EVM batch-settlement, and Solana exact, all behind hard spending caps. It also pre-loads a tool per service discovered on the Coinbase x402 Bazaar, so the entire paid-API economy shows up in your tool list.
Claude Code:
claude mcp add x402-bridge -e MCP_BRIDGE_SVM_PRIVATE_KEY=... -- npx -y @three-ws/mcp-bridge
Use -e MCP_BRIDGE_EVM_PRIVATE_KEY=0x... instead (or as well) to pay on Base and other EVM chains. At least one key is required.
Claude Desktop (claude_desktop_config.json) or Cursor (~/.cursor/mcp.json):
{
"mcpServers": { "x402-bridge": { "command": "npx", "args": ["-y", "@three-ws/mcp-bridge"], "env": { "MCP_BRIDGE_EVM_PRIVATE_KEY": "0x…buyer key…", "MCP_BRIDGE_SVM_PRIVATE_KEY": "…base58 64-byte secret key…", "MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC": "100000", "MCP_BRIDGE_DISCOVER_LIMIT": "20" } } } }
Restart the client and ask for something like "pay $0.01 on Base for a weather report" — the model picks a matching Bazaar tool (or call_paid_endpoint), and the bridge auto-pays via x402.
This server holds private keys and spends real USDC. Read this section before configuring it.
MCP_BRIDGE_EVM_PRIVATE_KEY / MCP_BRIDGE_SVM_PRIVATE_KEY should never be a main wallet. Fund it with only what you are willing to let an agent spend.MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC (default 100000 = $0.10 USDC) is refused before a payload is signed, with an error naming the network, asset, and cap.MCP_BRIDGE_MAX_TOTAL_ATOMIC (default 1000000 = $1.00 USDC). This bounds the damage of a looping or prompt-injected agent: once the ceiling is reached, every further payment aborts until restart. The accumulator reserves atomically, so concurrent calls cannot jointly overshoot it.MCP_BRIDGE_ALLOWED_PAYTO (comma-separated addresses) to refuse payment to any recipient you have not explicitly trusted.169.254.169.254 cloud metadata), CGNAT, ULA, or unspecified. Literal-IP hosts are checked directly; redirects are never followed (a public host cannot 3xx the bridge into internal infrastructure). http:// is available only behind the explicit MCP_BRIDGE_ALLOW_HTTP=1 dev opt-in.MCP_BRIDGE_ALLOWED_HOSTS (comma-separated hostnames) for strict mode: only listed hosts can be paid at all.MCP_BRIDGE_MAX_DEPOSIT_ATOMIC (default $5.00) regardless of what a server requests.readOnlyHint: false, idempotentHint: false, openWorldHint: true, so MCP hosts apply their strictest confirmation policy. Retrying a paid call is a new charge.On startup the bridge registers:
| Tool | What it does |
|---|---|
call_paid_endpoint | Universal fallback: hit any URL, auto-pay if it returns 402. Returns the response + parsed settlement. |
list_bazaar_tools | Returns the cached list of Bazaar-discovered tools (name, resource, accepted payment terms). Free. |
refresh_bazaar | Re-queries the x402 Bazaar and re-registers dynamic tools without restarting. Free. |
paid_ … | One tool per discovered Bazaar resource (up to MCP_BRIDGE_DISCOVER_LIMIT), with that endpoint's schema. |
Tools whose prices all exceed the per-call cap are filtered out at discovery time, so the model never sees a tool it cannot afford.
Every tool carries MCP ToolAnnotations so hosts can apply the right confirmation policy:
call_paid_endpoint and every dynamic paid_* tool: readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true. These spend real USDC — each call settles a payment (capped by MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC), and retrying is a new charge. They never delete or overwrite caller state, hence not destructive.list_bazaar_tools: readOnlyHint: true, idempotentHint: true, openWorldHint: false. Pure in-process cache read; free, no network.refresh_bazaar: readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true. Free (no payment), but it mutates the registered tool set from the live Bazaar feed, so repeat calls can differ.Tool results that are plain objects are returned as both a JSON text block (backward compatible) and structuredContent for typed clients.
Payment paths registered on the buyer client:
eip155:* → BatchSettlementEvmScheme (preferred when the server advertises it; voucher-based, no per-call gas)eip155:* → ExactEvmScheme (used when the server advertises scheme: "exact")solana:* and the x402 v1 Solana networks (solana, solana-devnet, solana-testnet) → ExactSvmScheme / ExactSvmSchemeV1 (USDC SPL transfer co-signed by the advertised fee payer), registered together by registerExactSvmScheme(). v1 is the wire format most of the open x402 bazaar still speaks; the client always prefers v2 when a seller advertises both. The spending-cap hook reads either amount (v2) or maxAmountRequired (v1) so both are capped the same way.Batch-settlement channel state is persisted to ~/.x402-mcp-bridge/channels/client/ so client restarts do not re-deposit on the next call.
| Variable | Required | Default | Notes |
|---|---|---|---|
MCP_BRIDGE_EVM_PRIVATE_KEY | one of EVM/SVM required | — | 0x-prefixed 32-byte hex. Funds USDC payments on Base, Arbitrum, etc. |
MCP_BRIDGE_SVM_PRIVATE_KEY | one of EVM/SVM required | — | base58 64-byte secret key (Phantom/solana-keygen format) or 64-int JSON array. |
MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC | no | 100000 (= $0.10 USDC at 6 decimals) | Per-call spending cap. Payment aborts above this with a clear reason. |
MCP_BRIDGE_MAX_TOTAL_ATOMIC | no | 1000000 (= $1.00 USDC) | Cumulative session spending ceiling. Aborts further payments once reached. |
MCP_BRIDGE_ALLOWED_PAYTO | no | — (any payee) | Comma-separated payee allowlist. When set, unlisted payTo addresses are refused. |
MCP_BRIDGE_ALLOWED_HOSTS | no | — (any public host) | Comma-separated hostname allowlist for outbound paid requests. |
MCP_BRIDGE_ALLOW_HTTP | no | 0 | Set 1 to allow http:// targets. Local development only. |
MCP_BRIDGE_DISCOVER_LIMIT | no | 20 | Max number of Bazaar tools to register dynamically. Set 0 to disable discovery. |
MCP_BRIDGE_BAZAAR_URL | no | https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources | Override to point at a self-hosted or alternative bazaar. |
MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER | no | 5 | How many request-amounts to deposit at once when opening a batch channel. |
MCP_BRIDGE_MAX_DEPOSIT_ATOMIC | no | 5000000 (= $5.00 USDC) | Hard cap on the deposit amount per channel open / top-up. |
X402_MCP_BRIDGE_CHANNELS_DIR | no | ~/.x402-mcp-bridge/channels | Override the directory used by FileClientChannelStorage. |
RPC_URL_ | no | viem default public RPC | Per-chain RPC override. Example: RPC_URL_8453=https://mainnet.base.org. |
MCP_BRIDGE_* key vars also fall back to EVM_PRIVATE_KEY / SVM_PRIVATE_KEY if you already have those set.
The pre-payment hook inspects the selected accepts entry and aborts payload creation if the amount exceeds the per-call cap, the payee is outside the allowlist, or the session ceiling would be crossed. The tool result then carries a clear error message naming the network, asset, and the limit that was hit — useful for the model to decide whether to ask you to raise it.
MCP_BRIDGE_SVM_PRIVATE_KEY=... npx -y @modelcontextprotocol/inspector npx -y @three-ws/mcp-bridge
The inspector connects over stdio and lists the static tools (call_paid_endpoint, list_bazaar_tools, `refresh_ba
只显示了开头部分;其余内容请在仓库中阅读