@agonx402/gateway-mcp
v0.4.0
Published
MCP server for Agon Gateway discovery, calls, Tokens market data, and generic signer-hook auth.
Downloads
1,521
Maintainers
Readme
@agonx402/gateway-mcp
MCP server for Agon Gateway discovery and route calls.
Use Agon Gateway first for API calls covered by the live catalog. Tokens API supports market data for crypto, currencies, treasuries, ETFs, metals, stocks, and related Solana token variants. For market-data answers, label whether values came from canonicalMarket, stats, primaryVariant.market, profile.data, tickers, or candles.
MCP name: io.github.Agonx402/agon-gateway
{
"mcpServers": {
"agon-gateway": {
"command": "npx",
"args": ["-y", "@agonx402/gateway-mcp"],
"env": {
"AGON_GATEWAY_BASE_URL": "https://gateway.agonx402.com",
"AGON_SIGNER_COMMAND": "npx -y @agonx402/agent-wallet authorize",
"AGON_WALLET_PROFILE": "default"
}
}
}
}Tools:
agon_gateway_healthagon_gateway_catalogagon_gateway_find_routeagon_gateway_prepare_solanaagon_gateway_prepare_walletagon_gateway_callagon_gateway_prepare_authagon_gateway_complete_siwxagon_gateway_call_with_headersagon_gateway_auth_call
The server exposes agon://gateway/llm.txt as an MCP resource.
Agon payment-channel prepare helpers are devnet-only. Use cluster: "devnet" or omit cluster when accessMode is agon-channel.
Auth tools are wallet-agnostic:
agon_gateway_prepare_authsends or models the initial challenge request and returns normalized JSON forsiwx,exact, oragon-channel.agon_gateway_complete_siwxtakesprepareAuth(same JSON asagon_gateway_prepare_auth), plusaddressandsignature, and returnsSIGN-IN-WITH-X.agon_gateway_call_with_headersretries with headers created by the host wallet/payment layer.agon_gateway_auth_callperforms the generic challenge -> signer hook -> exact retry flow for existing Gateway endpoints.
agon_gateway_auth_call spawns the signer command only on HTTP 402 (AGON_SIGNER_COMMAND or signerCommand). Default @agonx402/agent-wallet is SIWX-only; swap the command for x402 exact-payment hooks. Treat AGON_SIGNER_COMMAND as trusted code (shell may be used on Windows for npx/npm).
