Documentation Index Fetch the complete documentation index at: https://docs.x402layer.cc/llms.txt
Use this file to discover all available pages before exploring further.
Slayer on the Marketplace
The Singularity MCP server exposes 35 tools that let any MCP-compatible AI client (Claude Desktop, Cursor, Windsurf, Claude Code, etc.) interact with the x402Studio marketplace. Browse listings, manage endpoints, process payments, and register agents — all through natural language.
Quick Setup
Claude Desktop
Cursor
Claude Code
Add to ~/Library/Application Support/Claude/claude_desktop_config.json: {
"mcpServers" : {
"singularity" : {
"url" : "https://mcp.x402layer.cc/mcp"
}
}
}
Add to .cursor/mcp.json: {
"mcpServers" : {
"singularity" : {
"url" : "https://mcp.x402layer.cc/mcp"
}
}
}
Add to your project’s .mcp.json or global ~/.claude/mcp.json: {
"mcpServers" : {
"singularity" : {
"url" : "https://mcp.x402layer.cc/mcp"
}
}
}
Authentication
Method Format Scope Personal Access Token (PAT) sgl_pat_{48hex}Owner-wide (all endpoints + products) Endpoint API Key x402_{32hex}Single endpoint only
Create PATs at Dashboard > Settings > PAT with granular scopes:
mcp:read — List inventory, fetch details and stats
mcp:endpoints:write — Update endpoints, manage webhooks
mcp:campaigns:write — Create and update fundraiser campaigns
mcp:products:write — Update product metadata and pricing
mcp:* — Full access
Browse and discover marketplace listings without any authentication.
Tool Description browse_marketplaceSearch and filter listings by type, category, chain, rating, with pagination get_listingFull details for a specific listing by slug get_featuredFeatured marketplace items get_top_ratedTop-rated listings get_agentERC-8004 agent info by network and ID list_categoriesAll available marketplace categories list_networksSupported blockchain networks list_agentsAll registered ERC-8004 agents with pagination
Manage your x402Studio resources programmatically. Requires a PAT.
Tool Description Scope list_my_endpointsList all your endpoints mcp:readlist_my_campaignsList all your fundraiser campaigns mcp:readcreate_campaignCreate a fundraiser campaign with internal endpoint provisioning mcp:campaigns:writeupdate_campaignUpdate allowlisted fundraiser campaign fields mcp:campaigns:writeget_endpoint_detailsFull endpoint info including credit balance mcp:readget_endpoint_statsUsage analytics (requests, revenue, success rate) mcp:readupdate_endpointUpdate pricing, listing flags, webhook settings mcp:endpoints:writedelete_endpointPermanently delete an endpoint mcp:endpoints:writelist_my_productsList all your products mcp:readupdate_productUpdate metadata, pricing, branding, listing state mcp:products:writeset_webhookSet or update webhook URL (returns signing secret) mcp:endpoints:writeremove_webhookRemove webhook from an endpoint mcp:endpoints:write
Complete payment-backed operations through MCP. These tools handle the x402 challenge-response flow.
Tool Description request_endpoint_creation_paymentGet the x402 challenge to create a new endpoint create_endpoint_with_paymentFinalize endpoint creation after payment request_endpoint_topup_paymentGet the x402 challenge to add credits topup_endpoint_with_paymentComplete a credit top-up after payment request_product_purchase_paymentGet the x402 challenge for a product purchase purchase_product_with_paymentComplete a product purchase after payment request_endpoint_credit_purchase_paymentGet the x402 challenge for credit pack purchase purchase_endpoint_credits_with_paymentComplete a credit pack purchase after payment
How Payment Flows Work
Request — Call the request_* tool to get an x402 payment challenge
Sign — The AI client’s wallet signs the USDC payment on-chain
Complete — Call the corresponding completion tool with the X-Payment payload
Done — The resource is created, topped up, or purchased
Wallet-session tools for ERC-8004 and Solana-8004 agent management.
Tool Description get_agent_registry_infoPublic registry info and supported networks request_agent_wallet_challengeRequest wallet-auth challenge for registration verify_agent_wallet_challengeVerify signature, get session token list_my_agent_bindable_endpointsList endpoints available for agent binding list_my_registered_agentsList agents owned by authenticated wallet prepare_agent_registrationPrepare wallet-first registration flow finalize_agent_registrationFinalize after on-chain transaction prepare_agent_updatePrepare agent metadata update finalize_agent_updateFinalize update after any on-chain tx submit_agent_feedbackSubmit reputation feedback for an agent
MCP never holds wallet private keys. The wallet signs locally, and MCP exchanges the signature for a short-lived session token.
MCP Resources
Static resources available via the MCP resource protocol:
URI Description singularity://featuredFeatured marketplace listings singularity://top-ratedTop rated listings singularity://categoriesAvailable categories singularity://networksSupported blockchain networks singularity://agentsAll registered ERC-8004 agents singularity://listing/{slug}Individual listing details singularity://agent/{network}/{id}Agent details by network and ID
Security
Secrets never touch the AI model — PATs and API keys are passed per-request to the MCP server and never stored. They are used only for authentication and immediately discarded after the request completes.
No secret logging — Token values are never written to logs, analytics, or any persistent storage on the MCP server.
Prompt injection safe — Because secrets are handled at the transport layer (HTTP headers), they cannot be extracted through prompt injection attacks against the AI client.
Scoped access — Read-only PATs (mcp:read) cannot perform writes. Endpoint-write PATs cannot mutate products (and vice versa).
Instant revocation — Revoked or expired PATs are rejected immediately. Revoke from Dashboard > Settings > PAT at any time.
Owner isolation — All tool calls are scoped to the authenticated owner’s resources. You cannot access another user’s data.
Server Info
Property Value Endpoint https://mcp.x402layer.cc/mcpProtocol MCP 2024-11-05 Transport HTTP (stateless) Total Tools 35
Full MCP Documentation See the complete MCP server reference for advanced usage, direct API testing, and detailed parameter schemas.