Remote MCP Servers
Connect AI agents to your store via OAuth 2.1 Streamable HTTP/SSE on /mcp (Admin) and /mcp/store (Buyer)
Remote MCP Servers (/mcp & /mcp/store)
Every xclade store runs two native Model Context Protocol (MCP) servers compiled directly into the Go store binary—protected by OAuth 2.1 with automatic RFC 9728 / RFC 8414 discovery and Dynamic Client Registration.
| Endpoint | Audience | Required Scopes | Capabilities |
|---|---|---|---|
/mcp | Store Admins & AI Ops Agents | mcp:read, mcp:write | 45+ tools across catalog, orders, inventory, WMS, B2B, pricing, analytics, RBAC, and direct GraphQL execution + Prompts, Resources, Tasks & MCP Apps UI |
/mcp/store | Authenticated Shoppers & B2B Buyers | store:mcp:read, store:mcp:write | 8 scoped buyer tools for product search, personal contract pricing, orders, RFQ quotes, and checkout cart creation |
Transport & Protocol Versions
Both /mcp and /mcp/store support:
- Streamable HTTP (
POST,GET,DELETE,OPTIONS) withMcp-Session-Idsession tracking. - Server-Sent Events (SSE) when
Accept: text/event-streamis sent onGET. - Negotiated MCP Protocol Versions:
2026-07-28,2025-11-25(default),2025-06-18,2025-03-26, and2024-11-05.
OAuth 2.1 Discovery & Authorization
Modern MCP clients (Claude Desktop, Cursor, Windsurf, Antigravity) discover OAuth endpoints automatically from the WWW-Authenticate header on the first unauthenticated request:
| Well-Known / OAuth Endpoint | Purpose |
|---|---|
GET /.well-known/oauth-protected-resource/mcp | Protected resource metadata for Admin MCP (/mcp). |
GET /.well-known/oauth-protected-resource/mcp/store | Protected resource metadata for Buyer MCP (/mcp/store). |
GET /.well-known/oauth-authorization-server | OAuth 2.1 authorization server metadata (RFC 8414). |
POST /oauth/register | Dynamic Client Registration (DCR). |
GET / POST /oauth/authorize | Interactive PKCE consent screen (supports both Admin and Buyer OAuth). |
POST /oauth/token | Authorization code & refresh token exchange. |
POST /oauth/revoke | Instant token revocation. |
Client Configuration Example
{
"mcpServers": {
"xclade-store-ops": {
"url": "https://{shortId}.api.myxclade.com/mcp",
"transport": "streamable-http"
},
"xclade-buyer-agent": {
"url": "https://{shortId}.api.myxclade.com/mcp/store",
"transport": "streamable-http"
}
}
}Every MCP tool carries MCP annotations (readOnlyHint, destructiveHint) and runs through the same Go RBAC policy checks as /admin/graphql. Destructive or policy-gated operations return structured MCP elicitation metadata so the host can request human confirmation.
Merchant Operations Tools (/mcp)
Commerce, Orders, Inventory & Carts
search_products,get_productlist_orders,get_orderget_inventory,list_stock_locationslist_customer_groupslist_abandoned_carts,get_abandoned_cart,get_abandoned_cart_stats,get_cart_insights,list_live_cartsimport_store_batch
Pricing, Promotions, Analytics & RBAC
list_price_lists,get_price_list,resolve_effective_priceslist_campaigns,get_campaign,list_promotionsget_analytics_overview,get_product_analytics,get_customer_analytics,get_b2b_pipeline_analyticslist_roles,list_role_policies,list_admin_users
B2B Wholesale & Warehouse Management (WMS)
get_b2b_overview,list_companies,get_companylist_quotes,get_quote,create_outbound_quote,send_quote_offerlist_approvals,update_approvallist_warehouse_bins,list_cycle_counts
Schema Discovery & GraphQL Execution
find_commerce_api,describe_commerce_apiread_admin_api,read_store_api,write_admin_apiexecute_graphql,execute_store_graphql,execute_admin_graphql
Storefront & B2B Buyer Tools (/mcp/store)
Authenticated shoppers and B2B company buyers can authorize personal shopping assistants on /mcp/store with strict account & company isolation:
| Tool | Description |
|---|---|
store_search_products | Search published catalog items with live availability and contextual pricing. |
store_get_product | Inspect full product specs, options, and variant SKUs. |
store_get_my_pricing | Resolve the caller's exact customer-group or B2B contract price list rates. |
store_list_my_orders | List orders belonging to the authenticated buyer (or their B2B company if Company Admin). |
store_get_my_order | Fetch line items, fulfillment tracking, and totals for a specific order. |
store_list_my_quotes | View active and historical B2B RFQ quotes. |
store_request_quote | Submit a new B2B Request-for-Quote directly from agent conversation. |
store_create_checkout_cart | Assemble a live cart with selected variants and return a ready-to-pay checkout link. |