Skip to main content
PATCH
Rename an MCP server or change its credentials

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string

Any unique string (e.g. a UUID). Retrying with the same key within 24 hours replays the first response instead of repeating the change.

Path Parameters

serverId
string
required

Body

application/json
name
string
required
Maximum string length: 255
authType
enum<string>
required

OAUTH servers must be authorized in the dashboard.

Available options:
NONE,
BEARER,
HEADER,
OAUTH
authToken
string

For BEARER. Write-only; never returned.

authHeaders
object

For HEADER. Write-only; never returned.

Response

id
string
required
name
string
required
url
string
required
authType
enum<string>
required
Available options:
NONE,
BEARER,
HEADER,
OAUTH
hasAuth
boolean
required

Credentials are stored (never returned).

status
enum<string>
required
Available options:
PENDING,
PENDING_AUTH,
CONNECTED,
ERROR
statusError
string | null
required
isEnabled
boolean
required
lastSyncedAt
string<date-time> | null
required
tools
object[]
required
authorizationUrl
string

For OAUTH servers: open in a browser to authorize.