GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Multi-tenant HTTP 402 infrastructure gateway and stdio MCP server for machine payments.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"x402-facilitator-proxy": {
"command": "npx",
"args": [
"-y",
"x402-facilitator-proxy"
]
}
}
}在终端中运行这条命令
claude mcp add x402-facilitator-proxy -- npx -y x402-facilitator-proxy粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"x402-facilitator-proxy": {
"command": "npx",
"args": [
"-y",
"x402-facilitator-proxy"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"x402-facilitator-proxy": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"x402-facilitator-proxy"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
注册名称已通过 GitHub 账户 seob5285-alt 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.1)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A decentralized, autonomous payment infrastructure for API monetization on Base L2 with programmatic fee routing and agent-compatible settlement protocols.
The X402 Facilitator Proxy implements a complete multi-tenant payment gateway that enables merchants to monetize APIs through HTTP 402 "Payment Required" responses, while autonomous agents can seamlessly settle transactions using USDC on Base L2.
x402-facilitator-proxy/
├── src/ # Core Cloudflare Worker Engine │ ├── index.ts # Main proxy gateway endpoint │ └── backend/automation/ │ └── sweeper.ts # Automated fee collection ├── x402-client-sdk/ # Core Interface Rails │ ├── src/ │ │ ├── client-library.ts # TypeScript SDK │ │ └── mcp-server.ts # Model Context Protocol Server │ ├── package.json # SDK dependencies │ └── tsconfig.json # TypeScript configuration └── templates/ # Integration Templates ├── express-middleware/ │ └── x402-guard.js # Merchant-Side API Gating ├── langchain-ts/ │ ├── agent.ts # TypeScript Agent Template │ ├── package.json # LangChain dependencies │ └── README.md # Setup instructions └── crewai-python/ └── agent.py # Python Agent Template
The core backend (src/index.ts) operates as a serverless payment verification gateway deployed on Cloudflare's edge network:
https://x402-facilitator-proxy.seob5285.workers.dev/api/v1/verify-and-settle0x2E3DADfb314718849A93c49A78618E586c3b2C60Key Features:
The MCP server (x402-client-sdk/src/mcp-server.ts) provides a standardized interface for AI agents to interact with the payment system:
# Start the MCP server locally via stdio
npm run mcp:start
Protocol Features:
The Express middleware (templates/express-middleware/x402-guard.js) enables merchants to protect APIs with HTTP 402 challenges:
import { x402TollboothGuard } from './templates/express-middleware/x402-guard.js';
app.use('/api/premium', x402TollboothGuard("0.10", "0xYourWalletAddress"));
Middleware Behavior:
templates/langchain-ts/agent.ts)import { createPaymentAgent } from './templates/langchain-ts/agent.js';
const agent = await createPaymentAgent(); const result = await agent.invoke({ input: JSON.stringify({ agentPrivateKey: process.env.AGENT_PRIVATE_KEY, developerWallet: "0x742d35Cc6297C24aE0E4838C4667C02693C4cB36", amountUSD: "0.10" }) });
templates/crewai-python/agent.py)from templates.crewai_python.agent import X402PaymentAgent
agent = X402PaymentAgent() result = agent.process_payment({ "agent_private_key": os.getenv("AGENT_PRIVATE_KEY"), "developer_wallet": "0x742d35Cc6297C24aE0E4838C4667C02693C4cB36", "amount_usd": "0.10" })
npm install
npm run deploy
cd x402-client-sdk
npm install npm run mcp:start
# Copy the Express middleware to your project
cp templates/express-middleware/x402-guard.js your-project/middleware/
import { x402TollboothGuard } from './middleware/x402-guard.js'; app.use('/api/protected', x402TollboothGuard("0.05", "0xYourWallet"));
# For TypeScript/LangChain agents
cd templates/langchain-ts npm install npm run dev
cd templates/crewai-python pip install -r requirements.txt python agent.py
⚠️ NEVER HARDCODE PRIVATE KEYS IN REPOSITORY FILES
All sensitive credentials must be managed through secure environment variables:
# Set via Cloudflare Workers dashboard or wrangler
wrangler secret put FACILITATOR_PRIVATE_KEY wrangler secret put PLATFORM_VAULT_ADDRESS
Create .env files for local testing:
# .env (root directory - for Cloudflare Worker development)
FACILITATOR_PRIVATE_KEY=0x1234567890abcdef... PLATFORM_VAULT_ADDRESS=0x2E3DADfb314718849A93c49A78618E586c3b2C60
AGENT_PRIVATE_KEY=0xabcdef1234567890... OPENAI_API_KEY=sk-...
process.env.AGENT_PRIVATE_KEYos.getenv("AGENT_PRIVATE_KEY")https://x402-facilitator-proxy.seob5285.workers.dev/api/v1/verify-and-settle0x2E3DADfb314718849A93c49A78618E586c3b2C600x833589fCD6eDb6E08f4c7C32d4f71b54bda02913)graph TD
A[Agent API Call] --> B{HTTP 402?} B -->|Yes| C[Parse Payment Requirements] C --> D[Execute USDC Split Transfer] D --> E[Submit to Proxy Gateway] E --> F[Retry Original Request] F --> G[Access Granted] B -->|No| G
# Core proxy development
npm run dev # Start local development server npm run deploy # Deploy to Cloudflare Workers npm run cf-typegen # Generate Cloudflare types
cd x402-client-sdk npm run build # Build TypeScript SDK npm run mcp:start # Start MCP server
cd templates/langchain-ts npm run dev # Test TypeScript agent
cd templates/crewai-python python agent.py # Test Python agent
npm run sweep # Execute fee sweeping automation
This project is licensed under the MIT License - enabling open-source innovation while maintaining platform sustainability through programmatic fee routing.
Built for the autonomous economy. Powered by Base L2. Secured by multi-tenant verification.