La documentation est disponible en anglais.

Documentation / Connect tools

Mistral Studio / Le Chat

Connect TokenSaver as a custom MCP connector in Mistral Vibe (Le Chat) or Studio Build. Hosted tools server over OAuth 2.1 — governed chat, catalogue, usage, cache, RAG inventory.

Integration pattern
  1. Mistral Studio / Le Chat
  2. MCP OAuth 2.1
  3. mcp.tokensaver.fr
  4. TokenSaver tools

What you connect

  • MCP URL (Component A — tools): https://mcp.tokensaver.fr/mcp — not the gateway, not the bare host
  • Scope: mcp:tools (connector scope for Mistral Le Chat)
  • Pivot API key: created at consent — label Mistral MCP (Settings → API keys / MCP OAuth sessions)

Authentication

Prefer OAuth 2.1 (Dynamic Client Registration). Bearer ts_… works in the Connectors Debugger for smoke tests, but Studio “Create” is designed around OAuth.

Field Value
Server URL https://mcp.tokensaver.fr/mcp
Auth method OAuth 2.1
OAuth client ID mistral (platform catalogue)
OAuth client secret From DCR (POST /api/v1/oauth/register) — not your ts_… key
Studio redirect URI https://callback.mistral.ai/v1/integrations_auth/oauth2_callback
Debugger redirect URI https://console.mistral.ai/build/connectors/debugger/oauth-callback
  1. Open chat.mistral.ai → Connectors
  2. Custom MCP Connector → name like tokensaver (alphanumeric, _/- only)
  3. Server URL https://mcp.tokensaver.fr/mcp → Connect (OAuth auto-detect)
  4. Authorize on TokenSaver console → pivot key « Mistral MCP » → Return to Mistral
  5. Confirm tools appear in Work / Chat

Steps — Studio Build « Créer »

  1. Studio → Connectors → Custom MCP → same URL
  2. Auth OAuth 2.1 → advanced: Client ID mistral, secret from DCR below
  3. Prefer running the Connectors Debugger first (OAuth 2.0, empty client fields for DCR) — Debugger OK ≠ Create OK if redirect allowlist is wrong

Fetch OAuth client secret (DCR)

curl -sS -X POST https://api.tokensaver.fr/api/v1/oauth/register \
  -H "Content-Type: application/json" \
  -d '{
    "client_name": "MistralStudio",
    "grant_types": ["authorization_code", "refresh_token"],
    "token_endpoint_auth_method": "client_secret_basic",
    "response_types": ["code"],
    "redirect_uris": [
      "https://callback.mistral.ai/v1/integrations_auth/oauth2_callback"
    ]
  }'
# → client_id "mistral" + client_secret (stable)
Mistral Studio — connector + OAuth (optional)

Deep dive: MCP introduction · Tools server · API keys & auth.