Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
X402_TEST_URLNoOverride target for pnpm pay-newsep and pnpm pay-solana
X402_ALLOWLISTNoComma-separated allowed hostnames (replaces default set from seed.json)
X402_BAZAAR_URLNoCDP Bazaar endpoint overrideapi.cdp.coinbase.com/platform/v2/x402/discovery/search
X402_FEDERATIONNo'off' disables all external indexes; discover returns local-only resultson
X402_SOLANA_RPCNoSolana RPC for fetching a recent blockhash at sign timeapi.mainnet-beta.solana.com
X402_AGENTIC_URLNoagentic.market endpoint overrideapi.agentic.market/v1/services/search
X402_DAILY_LIMITNoMax USDC spent per rolling 24h window1.00
X402_RECEIPTS_PATHNoWhere the receipts log is written.local/receipts.jsonl
X402_X402WATCH_URLNox402watch daily snapshot URL (the {date} placeholder is filled at request time)GitHub raw snapshot URL
X402_CONFIRM_STRICTNoSet to '1' to refuse payment when the client lacks elicitation or tasks/create support
X402_DISABLE_BAZAARNoSet to '1' to skip CDP Bazaar
X402_PER_CALL_LIMITNoMax USDC per single call0.05
X402_DISABLE_AGENTICNoSet to '1' to skip agentic.market
X402_REQUIRE_CONFIRMNo'always', 'never', or a USDC threshold (e.g. '0.01'). Asks the user to approve via MCP elicitation before signingalways
X402_ALLOW_UNVERIFIEDNoSet to '1' to allow any host — dev only
X402_PAYER_SOLANA_KEYNoSolana secret key — base58 (Phantom export) or JSON-array (solana-keygen) format
X402_DISABLE_X402WATCHNoSet to '1' to skip x402watch
X402_PAYER_PRIVATE_KEYNoBase / EVM private key (0x-prefixed, 64 hex chars)
X402_FEDERATION_TIMEOUT_MSNoPer-source timeout in ms1500

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
pay.discoverA

Search the registry of paid APIs by free-text query. Queries the local curated registry plus external indexes (CDP Bazaar, agentic.market, x402watch) when federation is enabled. Each match carries a source field — verified means the entry is in our curated seed; other values are external indexes that have not been independently verified. The protocol field indicates whether the seller speaks x402 or mpp (Solana, paymentauth.org draft).

pay.fetchA

Make an HTTP request to a URL that may require payment. If the server returns 402, the gateway speaks either x402 (Coinbase's spec, Base and Solana) or MPP (paymentauth.org draft-solana-charge, Solana only) and signs the required USDC payment from its configured wallet — subject to spend caps and the host allowlist — then returns the response body. The LLM client never sees the wallet or the 402.

pay.wallet_statusA

Return the gateway wallet address, today's spend total in USDC, and the configured per-call and per-day spend limits. Use this to surface payment context to the user.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jaysperspective/thebuyside-x402-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server