Skip to main content
PATCH
Update an MCP server

Authorizations

X-API-Key
string
header
required

[Production] API key for production authentication

Path Parameters

id
string
required

The unique identifier for the MCP server.

Body

application/json

The fields to update.

authConnectionReferenceId
string

The referenceId of the Cognigy connection that holds the credentials. It must be a valid UUID. It's required if authType is oAuth2 or customHeader. The API clears it if authType is none. If you omit the field, the value doesn't change.

authType
enum<string>

The authentication method for the MCP server: none, oAuth2, or customHeader. With none, the platform sends only the static headers. With oAuth2, it gets a client-credentials token from the connection and sends it as a bearer token. With customHeader, it sends one header whose name and value come from the connection. If you omit the field, the value doesn't change.

Available options:
none,
oAuth2,
customHeader
headers
object

The static HTTP headers that the platform sends with every request to the MCP server, as key-value pairs. If authType is oAuth2, the headers can't contain an Authorization entry. A new value replaces the whole map.

name
string

The name of the MCP server. It must be 1 to 200 bytes long and can't contain any of these characters: \ / : * ? " < > | ¥. Whitespace around the name is trimmed. If you omit the field, the value doesn't change.

timeoutSeconds
integer

The timeout for requests to the MCP server, in seconds, from 1 to 30. If you omit the field, the value doesn't change.

url
string

The URL of the remote MCP server. It must be an absolute http or https URL with a host, and at most 2048 bytes long. If you omit the field, the value doesn't change.

Response

Returns the updated MCP server.

authConnectionReferenceId
string

The referenceId of the Cognigy connection that holds the credentials. It's absent if authType is none.

authType
string

The authentication method for the MCP server: none, oAuth2, or customHeader.

Example:

"none"

createdAt
integer

The time when the MCP server was created, as a Unix timestamp in seconds.

createdBy
string

The unique identifier for the user who created the MCP server.

Example:

"507f1f77bcf86cd799439011"

headers
object

The static HTTP headers that the platform sends with every request to the MCP server, as key-value pairs. If authType is oAuth2, the headers can't contain an Authorization entry.

id
string

The unique identifier for the MCP server.

Example:

"507f1f77bcf86cd799439011"

lastChangedAt
integer

The time when the MCP server was last changed, as a Unix timestamp in seconds.

lastChangedBy
string

The unique identifier for the user who last changed the MCP server.

Example:

"507f1f77bcf86cd799439011"

name
string

The name of the MCP server.

organisationId
string

The unique identifier for the organization that the MCP server belongs to.

Example:

"507f1f77bcf86cd799439011"

projectId
string

The unique identifier for the project that the MCP server belongs to.

Example:

"507f1f77bcf86cd799439011"

referenceId
string

The unique identifier that tools use to reference the MCP server. It's a UUID and never changes.

Example:

"550e8400-e29b-41d4-a716-446655440000"

timeoutSeconds
integer

The timeout for requests to the MCP server, in seconds.

Example:

12

url
string

The URL of the remote MCP server.