Skip to content

MCP server

Sedra has no built-in AI and needs no AI vendor account. Merchants connect the assistant they already use through the Model Context Protocol (MCP). The MCP tools are the same governed capabilities as the Merchant Agent API: same scopes, roles, validation, approvals and audit log.

Endpoint https://mcp.sedra.one/mcp (Streamable HTTP)
Authorization OAuth 2.1 with PKCE and dynamic client registration, or a Bearer sdr_ai_… credential
OAuth metadata /.well-known/oauth-authorization-server, protected-resource metadata (RFC 9728)
Tools Tool catalog (JSON)
Rate limit 120 tool calls per minute per identity
  1. A business owner issues an AI assistant credential (sdr_ai_…) with a role and read-only or operator permissions. See Authentication.
  2. Add the server to your client.

Claude (web and desktop): Settings → Connectors → Add custom connector → https://mcp.sedra.one/mcp. Claude opens the Sedra authorization page, where you paste the credential once. Claude then holds only an OAuth token. Custom connectors depend on your Claude plan.

Claude Code:

Terminal window
claude mcp add --transport http sedra https://mcp.sedra.one/mcp --header "Authorization: Bearer sdr_ai_..."

Other MCP clients: use the same URL with OAuth, or a Bearer header if the client supports custom headers. Clients without MCP can call the REST Agent API.

  1. tenants_list: which businesses this credential can operate.
  2. select_business: sets the default business for the session.
  3. Read freely. For changes, pass an idempotency_key and try dry_run: true first.
  4. Sensitive tools (refunds, deletions, bulk price changes, vendor commission) return pending_approval. A person approves in the Sedra app.

Example: “It’s Black Friday: show me a 10% discount code for everything.” The assistant calls promotions_create with dry_run: true, shows you the preview, and after you agree, calls it again with a fresh idempotency key.

  • No tools exist for SQL, shell, raw database access or arbitrary admin commands.
  • Every call is authorized by scope and role and written to the audit log with redacted input.
  • Results with merchant or customer text are flagged untrusted. The server tells the model not to follow instructions inside them.
  • Sign in with Foulad ID on the authorization page instead of pasting a credential.
  • Self-service AI credentials in the Sedra app.