AgentPay - The economic-intelligence layer for AI agents — an x402 gateway that prices, caps, and receipts agent data spend. 17 free tools + verified_route, the buyer-side x402 trust oracle. USDC on Base or Stellar.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add agentpay-trust-routing-spend-caps-for-x4 --env AGENTPAY_BASE_KEY='<AGENTPAY_BASE_KEY>' -- npx -y @romudille/agentpay-mcp~/.codex/config.toml
[mcp_servers.agentpay-trust-routing-spend-caps-for-x4]
command = "npx"
args = ["-y", "@romudille/agentpay-mcp"]
env = { AGENTPAY_BASE_KEY = "<AGENTPAY_BASE_KEY>" }
# codex mcp add agentpay-trust-routing-spend-caps-for-x4 --env AGENTPAY_BASE_KEY='<AGENTPAY_BASE_KEY>' -- npx -y @romudille/agentpay-mcp~/.cursor/mcp.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"command": "npx",
"args": [
"-y",
"@romudille/agentpay-mcp"
],
"env": {
"AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@romudille/agentpay-mcp"
],
"env": {
"AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"command": "npx",
"args": [
"-y",
"@romudille/agentpay-mcp"
],
"env": {
"AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"command": "npx",
"args": [
"-y",
"@romudille/agentpay-mcp"
],
"env": {
"AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"command": "npx",
"args": [
"-y",
"@romudille/agentpay-mcp"
],
"env": {
"AGENTPAY_BASE_KEY": "<AGENTPAY_BASE_KEY>"
}
}
}
}远程托管
claude mcp add --transport http agentpay-trust-routing-spend-caps-for-x4 https://agentpay.tools/mcp~/.codex/config.toml
[mcp_servers.agentpay-trust-routing-spend-caps-for-x4]
url = "https://agentpay.tools/mcp"
# codex mcp add agentpay-trust-routing-spend-caps-for-x4 --url https://agentpay.tools/mcp~/.cursor/mcp.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"url": "https://agentpay.tools/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"type": "http",
"url": "https://agentpay.tools/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"httpUrl": "https://agentpay.tools/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://agentpay.tools/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentpay-trust-routing-spend-caps-for-x4": {
"url": "https://agentpay.tools/mcp"
}
}
}需要的环境变量
AGENTPAY_BASE_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。