Spree Commerce developer docs for AI agents
Spree Commerce docs for AI coding agents: build headless B2B and marketplace ecommerce on its APIs.
作者提供的说明(英文原文)
PHANTOM ID MCP payment server: agent-to-agent USDC payments on Base.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
PHANTOM_API_URL, PHANTOM_API_KEY, Authorization标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"phantom": {
"command": "npx",
"args": [
"-y",
"@phantomid/mcp-server"
],
"env": {
"PHANTOM_API_URL": "your-value",
"PHANTOM_API_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http phantom https://pay.idphantom.com/mcp --header 'Authorization: Bearer {PHANTOM_API_KEY}'claude mcp add phantom --env PHANTOM_API_URL=your-value --env PHANTOM_API_KEY=your-value -- npx -y @phantomid/mcp-server运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"phantom": {
"url": "https://pay.idphantom.com/mcp",
"headers": {
"Authorization": "Bearer {PHANTOM_API_KEY}"
}
}
}
}粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"phantom": {
"command": "npx",
"args": [
"-y",
"@phantomid/mcp-server"
],
"env": {
"PHANTOM_API_URL": "your-value",
"PHANTOM_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"phantom": {
"type": "http",
"url": "https://pay.idphantom.com/mcp",
"headers": {
"Authorization": "Bearer {PHANTOM_API_KEY}"
}
}
}
}粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"phantom": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@phantomid/mcp-server"
],
"env": {
"PHANTOM_API_URL": "your-value",
"PHANTOM_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
PHANTOM_API_URL envAuthorization HTTP header这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
工具名称和描述与服务器在 2026年11月10日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。
phantom_registerOne-line onboarding: creates an IDPHANTOM account for the configured payer wallet, pays the $2 USDC registration with a locally-signed EIP-712 authorization and returns the api_key. Requires PHANTOM_PAYER_PRIVATE_KEY and PHANTOM_ROUTER_ADDRESS in the environment. The api_key is s
phantom_authorize_budgetFunder-signed EIP-712 AgentWalletAuthorization: lets an account spend up to max_units of USDC (6-decimal units, e.g. '1000000' = $1) with an optional daily cap, without giving away the wallet. Requires PHANTOM_FUNDER_PRIVATE_KEY in the environment; the signature is produced local
phantom_bind_identityRegisters an agent_id as a portable identity for this account via POST /v1/identity/bind. The proof-of-possession is an EIP-712 IdentityBinding signature produced LOCALLY with PHANTOM_IDENTITY_PRIVATE_KEY (environment variable only, never a command-line flag — AGP-057); the priva
quote_paymentCreate an IDPHANTOM payment quote with transparent platform fee (0.5%, min $0.01 USDC). Returns a payment intent ready for the payer's EIP-712 signature. Free: quoting never moves funds.
authorize_paymentAttach the payer's EIP-712 PaymentAuthorization signature to a quoted payment intent. The signature is produced locally by the payer's wallet; it authorizes up to maximumTotalAuthorized, expiring at expiresAt. No funds move until submit_payment.
submit_paymentBroadcast an authorized payment intent through IDPHANTOM. The platform relays the on-chain transaction; exactly one broadcast per intent is enforced server-side (retries return the already-submitted transaction hash). This is the step that settles funds.
verify_paymentVerify an IDPHANTOM payment receipt: cryptographic checks (EIP-712 signature, payer recovery), expiry, and the on-chain state of the authorization (free/used/cancelled). Free for receipts of payments the caller participated in; paid via the receipt-verifier for third-party receip
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日
注册名称已通过 GitHub 账户 Arbromagency-Sato 验证,该账户拥有此仓库
代码最后更新于26天前
我们还没有从 GitHub 读取这个仓库
在 128 毫秒内响应(HTTP 200)
无需登录
已读取 7 个工具描述,未发现针对 AI 的隐藏指令
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 4 项适用的基础检查中通过了 4 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:PHANTOM_API_KEY
两种方式都可以:安装在你的电脑上,或者连接云端版本。
GitHub 仓库最后更新于26天前,最新版本(0.3.2)于前天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Spree Commerce developer docs for AI agents, Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Spree Commerce docs for AI coding agents: build headless B2B and marketplace ecommerce on its APIs.
Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
MCP server integrating with Stripe - tools for customers, products, payments, and more.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@phantomid/mcp-server exposes IDPHANTOM payments as standard MCP tools so an AI agent can quote, authorize, submit, and verify agent-to-agent payments through IDPHANTOM.
Production defaults to:
https://pay.idphantom.com
npx @phantomid/mcp-server
For MCP clients, configure the server command and environment:
{
"mcpServers": { "phantom-id": { "command": "npx", "args": ["@phantomid/mcp-server"], "env": { "PHANTOM_API_URL": "https://pay.idphantom.com", "PHANTOM_API_KEY": "pk_live_..." } } } }
PHANTOM_API_URL is optional when using production. PHANTOM_API_KEY is required for normal paid API usage after registration.
The MCP tools phantom_register and phantom_authorize_budget read their signing keys only from the environment (never from command-line flags — argv leaks into shell history and process listings):
| Variable | Used by | Purpose |
|---|---|---|
PHANTOM_PAYER_PRIVATE_KEY | phantom_register (auto mode) | Pays the $2 USDC registration; signs locally, never leaves the process. |
PHANTOM_FUNDER_PRIVATE_KEY | phantom_authorize_budget | Human funder's key for the EIP-712 AgentWalletAuthorization. |
PHANTOM_ROUTER_ADDRESS | both | PhantomRouter verifying contract of the EIP-712 domain. |
PHANTOM_FUNNEL_SOURCE | funnel | internal for dogfood/QA traffic (reported separately — wash volume prohibited); default external. |
Without PHANTOM_PAYER_PRIVATE_KEY, phantom_register runs in manual mode: pass payer_wallet and it returns the registration challenge plus step-by-step signing instructions.
The server emits one JSON line per event on stderr, prefixed with [funnel]:
[funnel] {"event":"install","ts":"...","source":"external",...}
Events: install → register_start → register_complete → first_pay → repeat. Scrape these lines to build the onboarding funnel (install → register → first pay → repeat). Traffic tagged PHANTOM_FUNNEL_SOURCE=internal must be aggregated separately from external volume.
Registration is self-serve and costs $2 USDC on Base mainnet. The CLI signs locally and never prints the private key.
export PHANTOM_PAYER_PRIVATE_KEY="0x..."
export PHANTOM_ROUTER_ADDRESS="0x..." npx @phantomid/mcp-server init --name my-agent
The init flow calls:
POST /v1/registerPOST /v1/intents/:id/authorizePOST /v1/intents/:id/submitGET /v1/register/:referencePOST /v1/register/:reference/claimOn success it prints the account id and the API key once. Store the returned key as PHANTOM_API_KEY.
Flags are supported for non-sensitive options. The payer key is environment-only (never a flag — command lines leak into shell history and process listings):
export PHANTOM_PAYER_PRIVATE_KEY="0x..."
npx @phantomid/mcp-server init \ --api-url https://pay.idphantom.com \ --router-address 0x... \ --name my-agent
The server supports newline-delimited JSON-RPC over stdio.
quote_payment{
"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "quote_payment", "arguments": { "payer_wallet": "0x...", "recipient_wallet": "0x...", "asset_contract": "0x...", "amount": "1000000", "chain_id": 8453, "idempotency_key": "quote-001", "payer_agent_id": "buyer-agent", "recipient_agent_id": "seller-agent" } } }
authorize_payment{
"jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "authorize_payment", "arguments": { "payment_intent_id": "pi_...", "payer_signature": "0x..." } } }
submit_payment{
"jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": { "name": "submit_payment", "arguments": { "payment_intent_id": "pi_..." } } }
verify_payment{
"jsonrpc": "2.0", "id": 4, "method": "tools/call", "params": { "name": "verify_payment", "arguments": { "payment_intent_id": "pi_...", "receipt_id": "rcpt_..." } } }
Default production policy limits are:
Payments above those limits are rejected by the PHANTOM ID API.
npm publish --access public