Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AI assistants (MCP)

The phone system exposes an MCP (Model Context Protocol) server: an AI assistant, whether Claude, ChatGPT, Le Chat or any other MCP client, uses the API operations. You ask it in plain language “who called yesterday after 6 pm?”, it calls the operations it needs and answers you.

Two ways to connect it:

  • With your account: you add the server in the assistant, which sends you to a portal page; you sign in and authorize access. The assistant then acts with your rights. This is the way for web assistants (claude.ai, ChatGPT, Le Chat) and Claude Code.
  • With an API key: for command-line tools and your own integrations, which send a fixed key.

Before you start

  • Server address: https://<portal address>/api/v1/mcp, over streamable HTTP. In the examples below, replace portal.example with your portal’s address.
  • Data sent: API responses (call log, numbers, user names) go to the assistant’s provider. Check that this use is compatible with your GDPR commitments, in particular towards your staff.
  • Network: tools installed on your computer (Claude Code, Codex, Vibe) reach the portal from your computer. Web assistants (claude.ai, ChatGPT, Le Chat, OpenAI API) reach it from their provider’s servers: the portal must be reachable from the internet.

With your account

In the assistant, add a connector with just the server address, no key. It opens an Authorize an application page on the portal (sign-in first, second factor included):

  • check the application’s name and above all the host that will receive the access (claude.ai, chatgpt.com, chat.mistral.ai…); if in doubt, refuse;
  • if the access goes to an application installed on this computer, the page says so: only accept if you just started it yourself.

The assistant then acts with your rights, but only for the operations the portal’s assistant can do: no sign-in, no API keys, no instance settings (SSO, directory), no webhooks, no phone setup, nothing that creates an account, an invitation or another access (an account’s email address, monitoring token, SIP connector password). Those stay with the portal and API keys. Every write is recorded in the audit log, on the mcp channel, in your name and the application’s. If the application asked to stay connected, access lasts until you remove it in My account, MCP connector, and 90 days at most; otherwise, one hour. It also ends if your account or organization is disabled, if your second factor is reset, if you sign out of all devices or if you change your password.

claude.ai and Claude Desktop: Settings, Connectors, Add custom connector, the server address, then Connect.

Claude Code: add the server, then run /mcp in Claude Code and choose Authenticate: the browser opens on the portal.

claude mcp add --transport http phone https://portal.example/api/v1/mcp

ChatGPT: in Settings, Apps & Connectors, turn on developer mode in the advanced settings, then Create a connector with the server address and OAuth authentication.

Le Chat: a workspace administrator opens Connectors, Add Connector, Custom MCP Connector tab. They give a name without spaces (phone) and the server address; Le Chat recognizes OAuth and opens the portal.

With an API key

  • Key: create one on the API page (API keys); it only sees and changes your own space. The MCP client sends it in the Authorization: Bearer <key> header.
  • Rights: the tool has exactly the key’s rights. Choose the narrowest role that is enough, read-only to start with. Every write is recorded in the key’s name.
  • One key per tool: revoking it cuts off that tool alone.
  • Secret: don’t paste the key into a conversation. Put it in the tool’s configuration, or better in an environment variable (PHONE_KEY below).

Claude Code, without going through your account:

claude mcp add --transport http phone https://portal.example/api/v1/mcp \
  --header "Authorization: Bearer $PHONE_KEY"

Codex (command line and editor extension): add the server to ~/.codex/config.toml, export PHONE_KEY before starting Codex, then check with codex mcp list.

[mcp_servers.phone]
url = "https://portal.example/api/v1/mcp"
bearer_token_env_var = "PHONE_KEY"

OpenAI API (Responses), for your own integrations: declare the server in the request’s tools. allowed_tools limits the operations offered to the model, and require_approval makes you approve each call.

"tools": [{
  "type": "mcp",
  "server_label": "phone",
  "server_url": "https://portal.example/api/v1/mcp",
  "authorization": "<key>",
  "require_approval": "always"
}]

Vibe (Mistral, command line): add the server to ~/.vibe/config.toml, and export PHONE_KEY before starting Vibe.

[[mcp_servers]]
name = "phone"
transport = "http"
url = "https://portal.example/api/v1/mcp"
api_key_env = "PHONE_KEY"
api_key_header = "Authorization"
api_key_format = "Bearer {token}"

Other MCP clients: any client that sends a fixed header works.

{
  "mcpServers": {
    "phone": {
      "type": "http",
      "url": "https://portal.example/api/v1/mcp",
      "headers": { "Authorization": "Bearer <key>" }
    }
  }
}

Tools

Each operation of your space’s API (documentation at /api/docs/en on the portal) is a tool with the same name (listerAppels, reglerRenvois…). With the Accept-Language: en header, tool descriptions and error details are in English.

The assistant also has access to this guide, in your account’s language: it can search it for the answer to a question and read a whole page before explaining a feature or changing a setting. The monCompte tool gives it your account and your organization, its starting point. Before any change, it must ask you to confirm.

Example requests

  • “Who called yesterday after 6 pm, and who answered?”
  • “How many missed calls this week, extension by extension?”
  • “Forward extension 102 to 06 12 34 56 78.”
  • “Which extensions aren’t connected right now?”

The portal also has its own assistant, with nothing to set up.

To cut off an assistant’s access: remove it in My account, or revoke its key on the API page.