🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agonx402/gateway-mcp

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agonx402/gateway-mcp

MCP server for Agon Gateway discovery, calls, Tokens market data, and generic signer-hook auth.

latest
Source
npmnpm
Version
0.4.2
Version published
Maintainers
1
Created
Source

@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_health
  • agon_gateway_catalog
  • agon_gateway_find_route
  • agon_gateway_prepare_solana
  • agon_gateway_prepare_wallet
  • agon_gateway_call
  • agon_gateway_prepare_auth
  • agon_gateway_complete_siwx
  • agon_gateway_call_with_headers
  • agon_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_auth sends or models the initial challenge request and returns normalized JSON for siwx, exact, or agon-channel.
  • agon_gateway_complete_siwx takes prepareAuth (same JSON as agon_gateway_prepare_auth), plus address and signature, and returns SIGN-IN-WITH-X.
  • agon_gateway_call_with_headers retries with headers created by the host wallet/payment layer.
  • agon_gateway_auth_call performs 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).

Keywords

agon

FAQs

Package last updated on 02 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts