xcladeDocs

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.

EndpointAudienceRequired ScopesCapabilities
/mcpStore Admins & AI Ops Agentsmcp:read, mcp:write45+ tools across catalog, orders, inventory, WMS, B2B, pricing, analytics, RBAC, and direct GraphQL execution + Prompts, Resources, Tasks & MCP Apps UI
/mcp/storeAuthenticated Shoppers & B2B Buyersstore:mcp:read, store:mcp:write8 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) with Mcp-Session-Id session tracking.
  • Server-Sent Events (SSE) when Accept: text/event-stream is sent on GET.
  • Negotiated MCP Protocol Versions: 2026-07-28, 2025-11-25 (default), 2025-06-18, 2025-03-26, and 2024-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 EndpointPurpose
GET /.well-known/oauth-protected-resource/mcpProtected resource metadata for Admin MCP (/mcp).
GET /.well-known/oauth-protected-resource/mcp/storeProtected resource metadata for Buyer MCP (/mcp/store).
GET /.well-known/oauth-authorization-serverOAuth 2.1 authorization server metadata (RFC 8414).
POST /oauth/registerDynamic Client Registration (DCR).
GET / POST /oauth/authorizeInteractive PKCE consent screen (supports both Admin and Buyer OAuth).
POST /oauth/tokenAuthorization code & refresh token exchange.
POST /oauth/revokeInstant 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_product
  • list_orders, get_order
  • get_inventory, list_stock_locations
  • list_customer_groups
  • list_abandoned_carts, get_abandoned_cart, get_abandoned_cart_stats, get_cart_insights, list_live_carts
  • import_store_batch

Pricing, Promotions, Analytics & RBAC

  • list_price_lists, get_price_list, resolve_effective_prices
  • list_campaigns, get_campaign, list_promotions
  • get_analytics_overview, get_product_analytics, get_customer_analytics, get_b2b_pipeline_analytics
  • list_roles, list_role_policies, list_admin_users

B2B Wholesale & Warehouse Management (WMS)

  • get_b2b_overview, list_companies, get_company
  • list_quotes, get_quote, create_outbound_quote, send_quote_offer
  • list_approvals, update_approval
  • list_warehouse_bins, list_cycle_counts

Schema Discovery & GraphQL Execution

  • find_commerce_api, describe_commerce_api
  • read_admin_api, read_store_api, write_admin_api
  • execute_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:

ToolDescription
store_search_productsSearch published catalog items with live availability and contextual pricing.
store_get_productInspect full product specs, options, and variant SKUs.
store_get_my_pricingResolve the caller's exact customer-group or B2B contract price list rates.
store_list_my_ordersList orders belonging to the authenticated buyer (or their B2B company if Company Admin).
store_get_my_orderFetch line items, fulfillment tracking, and totals for a specific order.
store_list_my_quotesView active and historical B2B RFQ quotes.
store_request_quoteSubmit a new B2B Request-for-Quote directly from agent conversation.
store_create_checkout_cartAssemble a live cart with selected variants and return a ready-to-pay checkout link.

On this page