Policy-gated x402 MCP for agent workflows with TEE receipts, 18 tools, and no custody.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add yieldagentx402 --env YAX_API_KEY='<YAX_API_KEY>' --env YAX_AGENT_ID='<YAX_AGENT_ID>' -- npx -y agentx402-mcp-server~/.codex/config.toml
[mcp_servers.yieldagentx402]
command = "npx"
args = ["-y", "agentx402-mcp-server"]
env = { YAX_API_KEY = "<YAX_API_KEY>", YAX_AGENT_ID = "<YAX_AGENT_ID>" }
# codex mcp add yieldagentx402 --env YAX_API_KEY='<YAX_API_KEY>' --env YAX_AGENT_ID='<YAX_AGENT_ID>' -- npx -y agentx402-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"yieldagentx402": {
"command": "npx",
"args": [
"-y",
"agentx402-mcp-server"
],
"env": {
"YAX_API_KEY": "<YAX_API_KEY>",
"YAX_AGENT_ID": "<YAX_AGENT_ID>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"yieldagentx402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agentx402-mcp-server"
],
"env": {
"YAX_API_KEY": "<YAX_API_KEY>",
"YAX_AGENT_ID": "<YAX_AGENT_ID>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"yieldagentx402": {
"command": "npx",
"args": [
"-y",
"agentx402-mcp-server"
],
"env": {
"YAX_API_KEY": "<YAX_API_KEY>",
"YAX_AGENT_ID": "<YAX_AGENT_ID>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"yieldagentx402": {
"command": "npx",
"args": [
"-y",
"agentx402-mcp-server"
],
"env": {
"YAX_API_KEY": "<YAX_API_KEY>",
"YAX_AGENT_ID": "<YAX_AGENT_ID>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"yieldagentx402": {
"command": "npx",
"args": [
"-y",
"agentx402-mcp-server"
],
"env": {
"YAX_API_KEY": "<YAX_API_KEY>",
"YAX_AGENT_ID": "<YAX_AGENT_ID>"
}
}
}
}Environment variables
YAX_API_KEYYAX_AGENT_ID
Replace the placeholders with your own credentials and keep them out of version control.