Integraciones MCP
Servidores MCP remotos cuyas herramientas usa un asistente.
GET /v1/mcp-servers
List the MCP servers of my organization
Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior
An `editor` or above, as a user. `items` are the remote MCP servers of the tenant by name, each with the tools of its last discover and which of them are allowed. An assistant attaches allowed tools in `config.mcp`. Header values and the URL are secrets of the customer: header values are stored sealed and never returned (a header shows its `name` and a `value_mask`). 401 when the token is missing, expired or invalid; 403 below `editor` or with an API key; 503 when MCP servers are not available.
Respuestas
200Successful Response · McpServerListNombre Tipo Requerido Descripción itemsMcpServerResponse[]sí items[].created_atstring (date-time)sí items[].created_bystringsí items[].descriptionstringsí items[].discovered_atstring (date-time) | nullsí items[].headersMcpHeaderResponse[]sí items[].headers[].namestringsí items[].headers[].value_maskstringsí items[].idstring (uuid)sí items[].namestringsí items[].slugstringsí items[].snapshot_hashstring | nullsí items[].toolsMcpToolResponse[]sí items[].tools[].allowedbooleansí items[].tools[].descriptionstringsí items[].tools[].input_schemaobjectsí items[].tools[].namestringsí items[].tools[].requires_confirmationbooleansí items[].transportstringsí (streamable_http) items[].updated_atstring (date-time)sí items[].urlstringsí 401Missing, expired or invalid token. · ErrorResponse403Role below the one this needs. · ErrorResponse503MCP servers are not available. · ErrorResponsedefaultDefault Response · ErrorResponse
POST /v1/mcp-servers
Connect an MCP server
Solo para usuarios con sesión iniciada (sin API key) · Rol: admin o superior
An `admin` or above. `name` (1 to 120 characters; its first 16 letters and digits become the prefix of the tool names the model sees, `mcp_<prefix>__<tool>`), `description`, `url` (`https` only, no credentials, not a private address; treat it as a secret), `transport` (`streamable_http`) and `headers` (up to 20, for example `Authorization: Bearer ...`). No tool is allowed until `discover` and the allowlist. Header values and the URL are secrets of the customer: header values are stored sealed and never returned (a header shows its `name` and a `value_mask`). Written to the audit log as `mcp_server.create`. 401 when the token is missing, expired or invalid; 403 below `admin` or with an API key; 409 when the name is taken; 422 when a field is invalid; 503 when MCP servers are not available.
Cuerpo de la solicitud
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
description | string | ||
headers | McpHeaderInput[] | ||
headers[].name | string | sí | |
headers[].value | string | null | ||
name | string | sí | |
transport | string | (streamable_http) | |
url | string | sí |
Respuestas
201Successful Response · McpServerResponseNombre Tipo Requerido Descripción created_atstring (date-time)sí created_bystringsí descriptionstringsí discovered_atstring (date-time) | nullsí headersMcpHeaderResponse[]sí headers[].namestringsí headers[].value_maskstringsí idstring (uuid)sí namestringsí slugstringsí snapshot_hashstring | nullsí toolsMcpToolResponse[]sí tools[].allowedbooleansí tools[].descriptionstringsí tools[].input_schemaobjectsí tools[].namestringsí tools[].requires_confirmationbooleansí transportstringsí (streamable_http) updated_atstring (date-time)sí urlstringsí 401Missing, expired or invalid token. · ErrorResponse403Role below the one this needs. · ErrorResponse409Another MCP server has this name. · ErrorResponse503MCP servers are not available. · ErrorResponsedefaultDefault Response · ErrorResponse
GET /v1/mcp-servers/{server_id}
One MCP server
Solo para usuarios con sesión iniciada (sin API key) · Rol: editor o superior
An `editor` or above. Header values and the URL are secrets of the customer: header values are stored sealed and never returned (a header shows its `name` and a `value_mask`). 401 when the token is missing, expired or invalid; 403 below `editor` or with an API key; 404 when the server is not in the caller's tenant; 503 when MCP servers are not available.
Parámetros
| Nombre | En | Tipo | Requerido | Descripción |
|---|---|---|---|---|
server_id | path | string (uuid) | sí |
Respuestas
200Successful Response · McpServerResponseNombre Tipo Requerido Descripción created_atstring (date-time)sí created_bystringsí descriptionstringsí discovered_atstring (date-time) | nullsí headersMcpHeaderResponse[]sí headers[].namestringsí headers[].value_maskstringsí idstring (uuid)sí namestringsí slugstringsí snapshot_hashstring | nullsí toolsMcpToolResponse[]sí tools[].allowedbooleansí tools[].descriptionstringsí tools[].input_schemaobjectsí tools[].namestringsí tools[].requires_confirmationbooleansí transportstringsí (streamable_http) updated_atstring (date-time)sí urlstringsí 401Missing, expired or invalid token. · ErrorResponse403Role below the one this needs. · ErrorResponse404No such MCP server in the caller's tenant. · ErrorResponse503MCP servers are not available. · ErrorResponsedefaultDefault Response · ErrorResponse
PUT /v1/mcp-servers/{server_id}
Replace an MCP server
Solo para usuarios con sesión iniciada (sin API key) · Rol: admin o superior
An `admin` or above. The body is the same as for creating and replaces the server. A header sent with no `value` keeps the value stored under that name; a header left out is removed. A new `url` clears the discovered tools and the allowlist: discover again. Written to the audit log as `mcp_server.update`. 401 when the token is missing, expired or invalid; 403 below `admin` or with an API key; 404 when the server is not in the caller's tenant; 409 when the name is taken; 422 when a field is invalid; 503 when MCP servers are not available.
Parámetros
| Nombre | En | Tipo | Requerido | Descripción |
|---|---|---|---|---|
server_id | path | string (uuid) | sí |
Cuerpo de la solicitud
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
description | string | ||
headers | McpHeaderInput[] | ||
headers[].name | string | sí | |
headers[].value | string | null | ||
name | string | sí | |
transport | string | (streamable_http) | |
url | string | sí |
Respuestas
200Successful Response · McpServerResponseNombre Tipo Requerido Descripción created_atstring (date-time)sí created_bystringsí descriptionstringsí discovered_atstring (date-time) | nullsí headersMcpHeaderResponse[]sí headers[].namestringsí headers[].value_maskstringsí idstring (uuid)sí namestringsí slugstringsí snapshot_hashstring | nullsí toolsMcpToolResponse[]sí tools[].allowedbooleansí tools[].descriptionstringsí tools[].input_schemaobjectsí tools[].namestringsí tools[].requires_confirmationbooleansí transportstringsí (streamable_http) updated_atstring (date-time)sí urlstringsí 401Missing, expired or invalid token. · ErrorResponse403Role below the one this needs. · ErrorResponse404No such MCP server in the caller's tenant. · ErrorResponse409Another MCP server has this name. · ErrorResponse503MCP servers are not available. · ErrorResponsedefaultDefault Response · ErrorResponse
DELETE /v1/mcp-servers/{server_id}
Delete an MCP server
Solo para usuarios con sesión iniciada (sin API key) · Rol: admin o superior
An `admin` or above. Assistants that attach its tools can no longer be published until they drop them; published versions keep their frozen schemas but their calls to it fail. Written to the audit log as `mcp_server.delete`. 401 when the token is missing, expired or invalid; 403 below `admin` or with an API key; 404 when the server is not in the caller's tenant; 503 when MCP servers are not available.
Parámetros
| Nombre | En | Tipo | Requerido | Descripción |
|---|---|---|---|---|
server_id | path | string (uuid) | sí |
Respuestas
204Successful Response401Missing, expired or invalid token. · ErrorResponse403Role below the one this needs. · ErrorResponse404No such MCP server in the caller's tenant. · ErrorResponse503MCP servers are not available. · ErrorResponsedefaultDefault Response · ErrorResponse
PUT /v1/mcp-servers/{server_id}/allowlist
Choose which tools of an MCP server assistants may use
Solo para usuarios con sesión iniciada (sin API key) · Rol: admin o superior
An `admin` or above. `tools` replaces the allowlist: each `name` must be a tool of the last discover (up to 50). `requires_confirmation` is a flag kept for the tool (metadata for now: a voice call has no one to ask). Written to the audit log as `mcp_server.allowlist`. 401 when the token is missing, expired or invalid; 403 below `admin` or with an API key; 404 when the server is not in the caller's tenant; 422 when a name is not a discovered tool; 503 when MCP servers are not available.
Parámetros
| Nombre | En | Tipo | Requerido | Descripción |
|---|---|---|---|---|
server_id | path | string (uuid) | sí |
Cuerpo de la solicitud
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
tools | AllowedToolInput[] | sí | |
tools[].name | string | sí | |
tools[].requires_confirmation | boolean |
Respuestas
200Successful Response · McpServerResponseNombre Tipo Requerido Descripción created_atstring (date-time)sí created_bystringsí descriptionstringsí discovered_atstring (date-time) | nullsí headersMcpHeaderResponse[]sí headers[].namestringsí headers[].value_maskstringsí idstring (uuid)sí namestringsí slugstringsí snapshot_hashstring | nullsí toolsMcpToolResponse[]sí tools[].allowedbooleansí tools[].descriptionstringsí tools[].input_schemaobjectsí tools[].namestringsí tools[].requires_confirmationbooleansí transportstringsí (streamable_http) updated_atstring (date-time)sí urlstringsí 401Missing, expired or invalid token. · ErrorResponse403Role below the one this needs. · ErrorResponse404No such MCP server in the caller's tenant. · ErrorResponse503MCP servers are not available. · ErrorResponsedefaultDefault Response · ErrorResponse
POST /v1/mcp-servers/{server_id}/discover
List the tools of an MCP server
Solo para usuarios con sesión iniciada (sin API key) · Rol: admin o superior
An `admin` or above. The control plane connects to the server (https, public addresses only, no redirects, 10 seconds, 1 MiB of answer), lists its tools and keeps the snapshot (name, description and input schema). `added`, `changed` and `removed` name the differences from the previous snapshot; a `changed` tool is no longer allowed and an admin has to approve it again. Tools whose name or schema cannot be offered to a model are counted in `skipped`. Written to the audit log as `mcp_server.discover`. 401 when the token is missing, expired or invalid; 403 below `admin` or with an API key; 404 when the server is not in the caller's tenant; 502 (`mcp_unreachable`) when the server cannot be reached or does not speak MCP; 503 when MCP servers are not available.
Parámetros
| Nombre | En | Tipo | Requerido | Descripción |
|---|---|---|---|---|
server_id | path | string (uuid) | sí |
Respuestas
200Successful Response · McpDiscoveryResponseNombre Tipo Requerido Descripción addedstring[]sí changedstring[]sí removedstring[]sí serverMcpServerResponsesí server.created_atstring (date-time)sí server.created_bystringsí server.descriptionstringsí server.discovered_atstring (date-time) | nullsí server.headersMcpHeaderResponse[]sí server.headers[].namestringsí server.headers[].value_maskstringsí server.idstring (uuid)sí server.namestringsí server.slugstringsí server.snapshot_hashstring | nullsí server.toolsMcpToolResponse[]sí server.tools[].allowedbooleansí server.tools[].descriptionstringsí server.tools[].input_schemaobjectsí server.tools[].namestringsí server.tools[].requires_confirmationbooleansí server.transportstringsí (streamable_http) server.updated_atstring (date-time)sí server.urlstringsí skippedintegersí 401Missing, expired or invalid token. · ErrorResponse403Role below the one this needs. · ErrorResponse404No such MCP server in the caller's tenant. · ErrorResponse502The MCP server could not be used. · ErrorResponse503MCP servers are not available. · ErrorResponsedefaultDefault Response · ErrorResponse