Skip to main content
PATCH
TypeScript SDK

Authorizations

Authorization
string
header
required

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

Path Parameters

mcpConnectionId
string<uuid>
required

Body

application/json
type
string
required

Connection type must remain remote; transport type cannot be changed by update.

Allowed value: "remote"
name
string

Display name for the MCP connection.

Required string length: 1 - 200
serverUrl
string<uri>

HTTP or HTTPS MCP server endpoint. Changing it requires an explicit authType, clears old credentials, and requires authorization to reconnect.

authType
enum<string>

Authentication method: OAuth user authorization (oauth), Client Credentials (M2M) using client_credentials, or static request headers (static_headers).

Available options:
oauth,
client_credentials,
static_headers
clientId
string

OAuth client ID when replacing authentication. Requires authType; required for client_credentials or pre_registered OAuth.

Required string length: 1 - 4096
clientSecret
string

Write-only client secret when replacing authentication. Requires authType; required for client_credentials.

Required string length: 1 - 65536
headers
object | null

Requires authType. Merges by key only when keeping static_headers authentication and the same server URL; otherwise replaces stored headers. Null values remove keys; static_headers requires at least one header. Values are write-only.

oauthRegistration
enum<string>

Register an OAuth client automatically or use pre-registered clientId and optional clientSecret.

Available options:
automatic,
pre_registered
scope
string

OAuth scopes when replacing authentication. Requires authType.

Required string length: 1 - 4096

Response

Update an MCP connection

connectedAt
string<date-time> | null
required
id
string<uuid>
required
name
string
required
serverUrl
string | null
required
type
enum<string>
required
Available options:
remote,
stdio
visibility
enum<string>
required

shared makes the connection available to the organization; personal restricts it to its owner.

Available options:
shared,
personal
args
string[] | null
required

Command-line arguments for the stdio server. Stored here, not executed by this API.

Maximum array length: 100
Maximum string length: 8192
authType
enum<string> | null
required

Authentication method: OAuth user authorization (oauth), Client Credentials (M2M) using client_credentials, or static request headers (static_headers).

Available options:
oauth,
client_credentials,
static_headers,
null
command
string | null
required
createdAt
string<date-time>
required
envKeys
string[]
required
headerKeys
string[]
required
updatedAt
string<date-time>
required