Skip to content

Release as an MCP Server

Copy page

Divinci has two MCP surfaces. Don’t confuse them:

Account MCPRelease MCP (this page)
Endpointhttps://mcp.divinci.app/mcphttps://mcp.divinci.app/{whitelabelId}/mcp
Who connectsYou, against your own accountYour consumers, against a release you publish
IdentityYour Divinci (Auth0) loginPer-release: API key, central OAuth, or your own federated IdP
ToolsEverything your permissions allowA curated allowlist you choose
PurposeOperate your accountExpose a product (knowledge base + tools) to others

This page covers the Release MCP — turning a white-label release into a standalone MCP server. It’s the server-publishing side; the Account MCP is the no-code client side.

Every white-label release can be published as its own MCP server. Consumers point Claude, Cursor, or any MCP client at your release’s endpoint and get a curated view: only the tools you expose, under the rate limits, billing mode, spend caps, and authentication you configure. It’s how you ship your RAG-backed assistant as an MCP product to your own users.

The endpoint for a release’s tenant is:

https://mcp.divinci.app/{whitelabelId}/mcp

Each tenant also gets its own OAuth routes under the same prefix (/{whitelabelId}/authorize, /token, /callback, /register, and the /.well-known/oauth-* metadata), so compliant clients discover and complete sign-in automatically.

Configure MCP under the release’s MCP Server Configuration panel (Setup → Release), or set the mcpConfig object on the release via the Server SDK / API.

  1. Turn on MCP for the workspace — the master switch mcpSettings.enabled (POST /white-label/:whitelabelId/mcp-settings { "enabled": true }). The tenant endpoint stays off until this is set, regardless of per-release config.
  2. Enable MCP on the release (mcpConfig.enabled = true).
  3. Pick exposed tools — leave empty to expose all of the release’s tools, or select a subset to present a focused product surface. Names must match the served tool names (e.g. search_knowledge) — unknown names are rejected at save.
  4. Set guardrails — anonymous access, per-token spend cap, rate limits. Enabling allowAnonymousMcp requires a positive maxSpendPerTokenCents (anonymous access without a spend cap is rejected — it would expose your wallet to the public).
  5. Publish the release. Consumers can now connect to https://mcp.divinci.app/{whitelabelId}/mcp.

The release’s mcpConfig (WhiteLabelReleaseMcpConfig):

FieldTypeDefaultDescription
enabledbooleanfalseMaster switch. While false, the tenant endpoint returns 404.
exposedToolsstring[](all)Allowlist of tool names. Empty/unset = all of the release’s tools. See the Tool Catalog.
allowedScopesstring[](all)Subset of platform scopes the release’s tokens may carry.
allowAnonymousMcpbooleanfalseAllow connections with no API key or OAuth token. Use only for public, read-only products.
maxSpendPerTokenCentsnumber1000Billing safety cap per token (1000 = $10.00). Caps the damage from a leaked credential.
mcpRateLimit.requestsPerMinutenumber60Per-minute request ceiling.
mcpRateLimit.requestsPerDaynumber10000Per-day request ceiling.

A tenant MCP endpoint accepts, in order:

  • API key — a divinci_… Bearer token from the release’s workspace. Best for headless/server consumers.

  • Central OAuth — Divinci’s Auth0, via the per-tenant OAuth routes. The consumer’s client opens a browser sign-in.

  • Federated IdP (your own) — point the tenant at your OIDC provider so your users sign in with their existing identity, never touching a Divinci login. Configured via the whitelabel’s idpConfig:

    FieldDescription
    issuerUrl / authorizationEndpoint / tokenEndpoint / userinfoEndpoint / jwksUriYour OIDC endpoints (or just issuerUrl for discovery).
    clientId / clientSecretRefYour IdP client credentials (secret stored by reference, never inline).
    scopeMappingMap your IdP scopes → Divinci platform scopes.
    userMapping.subjectClaim / emailClaim / groupsClaimWhich claims identify the user and their groups.
    allowedRedirectUrisRedirect URIs permitted in the federated flow.

    When idpConfig is present, the tenant’s /.well-known/oauth-authorization-server, /authorize, /callback, and /token routes use your IdP; otherwise they fall back to central Auth0.

A tenant MCP runs in one of two billing modes:

  • admin — tool usage bills to the whitelabel owner’s wallet. The consumer doesn’t pay; you absorb cost (good for a free/freemium product).
  • end-user — usage is attributed to the connecting identity, so premium (x402) tools are paid by the consumer per call.