Set MCP configuration

View as Markdown
Adds or updates MCP server entries for the workspace. Existing servers not included in the payload are preserved unchanged. For each server entry in the payload, if `headers` is omitted or `null` and a server with the same `id` (or `mcp_url`) already exists, the stored header values are preserved. To explicitly clear all headers for a server, pass `headers: {}`. Returns the first saved server entry with its stable ID.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

workspace_idstringRequired

Request

This endpoint expects an object.
serverslist of objectsRequired
List of MCP server configurations

Response

MCP configuration set successfully
idstring
Stable config ID for linking actions to this server entry
mcp_urlstringformat: "uri"

The HTTPS URL of the MCP server (SSE endpoint)

has_headersboolean
Whether custom headers are stored in Vault
headers_keyslist of strings

Names of stored header keys (values redacted)

Errors

400
Bad Request Error