Payment gateway for AI agents with tool discovery, provisioning, metering, and reliability tools.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add agent-pay --env AGENTPAY_GATEWAY_KEY='<AGENTPAY_GATEWAY_KEY>' --env AGENTPAY_ADMIN_KEY='<AGENTPAY_ADMIN_KEY>' -- npx -y mcp-server-agentpay~/.codex/config.toml
[mcp_servers.agent-pay]
command = "npx"
args = ["-y", "mcp-server-agentpay"]
env = { AGENTPAY_GATEWAY_KEY = "<AGENTPAY_GATEWAY_KEY>", AGENTPAY_ADMIN_KEY = "<AGENTPAY_ADMIN_KEY>" }
# codex mcp add agent-pay --env AGENTPAY_GATEWAY_KEY='<AGENTPAY_GATEWAY_KEY>' --env AGENTPAY_ADMIN_KEY='<AGENTPAY_ADMIN_KEY>' -- npx -y mcp-server-agentpay~/.cursor/mcp.json
{
"mcpServers": {
"agent-pay": {
"command": "npx",
"args": [
"-y",
"mcp-server-agentpay"
],
"env": {
"AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
"AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agent-pay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-server-agentpay"
],
"env": {
"AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
"AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agent-pay": {
"command": "npx",
"args": [
"-y",
"mcp-server-agentpay"
],
"env": {
"AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
"AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agent-pay": {
"command": "npx",
"args": [
"-y",
"mcp-server-agentpay"
],
"env": {
"AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
"AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agent-pay": {
"command": "npx",
"args": [
"-y",
"mcp-server-agentpay"
],
"env": {
"AGENTPAY_GATEWAY_KEY": "<AGENTPAY_GATEWAY_KEY>",
"AGENTPAY_ADMIN_KEY": "<AGENTPAY_ADMIN_KEY>"
}
}
}
}需要的环境变量
AGENTPAY_GATEWAY_KEYAGENTPAY_ADMIN_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。