Update an MCP server
mcp-servers:updateAuthenticationApplies a partial update to the resulting configuration. Changing connection or authentication fields clears observed introspection state but preserves approved pins, so unreviewed tools remain blocked. Changing auth_mode automatically clears fields belonging to the previous mode.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
Partial replacement fields. The complete resulting configuration must satisfy the same auth and safety invariants as creation. Slug is not patchable.
1 <= propertiesname?string1 <= length <= 200description?|length <= 2000url?string^https://urilength <= 4096auth_mode?MCPAuthMode"none""bearer""oauth2"auth_secret_ref?|^[A-Za-z_][A-Za-z0-9_]{1,63}$tool_allowlist?array<>items <= 500timeout_ms?integer500 <= value <= 60000enforce_hashes?booleanoauth_token_url?|^https://urilength <= 4096oauth_client_id_ref?|^[A-Za-z_][A-Za-z0-9_]{1,63}$oauth_client_secret_ref?|^[A-Za-z_][A-Za-z0-9_]{1,63}$oauth_scope?|length <= 2000oauth_audience?|Null restores automatic RFC 8707 resource derivation.
^https://urilength <= 4096Updated configuration, or the unchanged configuration for a semantic no-op.
application/json- response
id*stringuuidslug*stringname*stringdescription*string|nullurl*stringuriauth_mode*MCPAuthMode"none""bearer""oauth2"auth_secret_ref*string|nulltool_allowlist*array<>items <= 500timeout_ms*integerenforce_hashes*booleanpinned_tool_hashes*Map of remote MCP tool name to SHA-256 of the sanitized description and input schema.
observed_tool_hashes*Map of remote MCP tool name to SHA-256 of the sanitized description and input schema.
approved_tools*array<>items <= 500observed_tools*array<>items <= 500attachment_status*MCPAttachmentStatusMachine-readable readiness of this registration for agent attachment.
"not_introspected""hash_enforcement_disabled""approved_catalog_invalid""ready_with_drift""ready""archived"oauth_token_url*|urioauth_client_id_ref*string|nulloauth_client_secret_ref*string|nulloauth_scope*string|nulloauth_audience*|Explicit resource override, or null when the runtime derives it from discovery/the MCP URL.
urilast_introspected_at*|date-timelast_introspection_error*|Sanitized machine reason for the last failed introspection; never contains an upstream body or secret.
archived_at*|date-timecreated_at*stringdate-timeupdated_at*stringdate-timecurl -X PATCH 'https://api.kejue.co/v1/mcp-servers/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "name": "string", "description": "string", "url": "http://example.com", "auth_mode": "none", "auth_secret_ref": "string", "tool_allowlist": [ "string" ], "timeout_ms": 0, "enforce_hashes": true, "pinned_tool_hashes": { "property1": "string", "property2": "string" }, "observed_tool_hashes": { "property1": "string", "property2": "string" }, "approved_tools": [ { "name": "string", "description": "string", "input_schema": {}, "hash": "string" } ], "observed_tools": [ { "name": "string", "description": "string", "input_schema": {}, "hash": "string" } ], "attachment_status": "not_introspected", "oauth_token_url": "http://example.com", "oauth_client_id_ref": "string", "oauth_client_secret_ref": "string", "oauth_scope": "string", "oauth_audience": "http://example.com", "last_introspected_at": "2019-08-24T14:15:22Z", "last_introspection_error": "string", "archived_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}