Update an MCP-client server registration
PATCH /admin/ai/mcp-clients/{id}
Partial update — only the supplied fields mutate. Use this
to flip enabled, change the URL after the server moves,
rotate auth secrets, etc.
auth_secret_ref is write-only: supply it to rotate the
stored secret, omit it (or send an empty string) to keep the
current one. Saving an unrelated field cannot wipe it, and
the response never echoes it back.
Requires mcp.client.admin.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”Partial-update payload for PATCH /admin/ai/mcp-clients/{id}. Omitted fields keep their existing value. Health-check fields are owned by the per-server poller and not editable here.
object
Write-only. Provide to set or rotate the stored auth
secret; omit (or send an empty string) to keep the
current value. Never returned on any read — responses
carry auth_secret_set instead (#711).
Responses
Section titled “ Responses ”Updated
One registered MCP server. Each registration becomes one
ai.Provider in the router; the operator-chosen name is
the audit-dashboard identifier and the dispatcher slot key.
object
True when an auth secret is currently stored for this
server. The secret itself is NEVER returned — despite the
_ref name on the write side it holds the live bearer
token / header value, and a stored credential has no
read-back workflow, so no capability reads it back
(#711). Set it via POST / PATCH auth_secret_ref.
Authentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completedResource not found
object
Human-readable error summary
Example
the request could not be completed