Skip to Content
MCP servers

Approve MCP tool drift

Permissionmcp-servers:updateRetriesIdempotency-Key requiredAuthentication
POST
/mcp-servers/{id}/approve-drift

Atomically replaces approved tool hashes with the most recently observed set. It never clears pins to create an unreviewed trust-on-first-use window. Introspect successfully before calling this operation.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Idempotency-Key*string

Required. Reuse the same key to retry this write safely. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Response Body

Drift approved, or an explicit no_drift no-op.

application/json
  1. response
id*string
Formatuuid
status*string
Value in"no_drift""drift_approved"
pinned_tool_hashes*

Map of remote MCP tool name to SHA-256 of the sanitized description and input schema.

Example Request
curl -X POST 'https://api.kejue.co/v1/mcp-servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve-drift' \  -H 'Idempotency-Key: string'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "status": "no_drift",  "pinned_tool_hashes": {    "property1": "string",    "property2": "string"  }}