Skip to main content
PUT
Update an MCP server

Authorizations

Authorization
string
header
required

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

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

server_id
string<uuid>
required

The registered MCP server's id.

Body

application/json
description
string
Maximum string length: 2048
url
string

A public http(s) URL for http and sse servers.

Minimum string length: 1
env
object

Replaces every env entry. The secret-marker rule of registration applies.

env_patch
object

Changes only the env keys it names. The secret-marker rule of registration applies.

allowed_tools
string[] | null

The tools agents may call; null allows every tool.

enabled
boolean
permission_tier
enum<string>
Available options:
read_only,
read_write
adapter_key
string | null

A curated adapter key from the catalog; null clears it.

cluster_allow_list
string[] | null

Cluster ids to limit the server to; null allows every cluster.

Response

The updated server

id
string<uuid>
required
organisation_id
string<uuid>
required
name
string
required
description
string
required
transport
enum<string>
required
Available options:
stdio,
http,
sse
url
string
required
env_keys
string[]
required

The env key names, sorted. Values are never returned.

allowed_tools
string[] | null
required

The tools agents may call, or null for every tool the server offers.

enabled
boolean
required
permission_tier
enum<string>
required
Available options:
read_only,
read_write
adapter_key
string | null
required

The curated adapter the server was registered from, or null.

cluster_allow_list
string[] | null
required

The cluster ids the server is limited to, or null for every cluster.

created_by_user_id
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
last_connected_at
string<date-time> | null
required

When Ankra last connected to the server.

last_error
string | null
required

The error from the last failed connection, or null.