Introspect MCP server tools
Connects from Kejue Voice using the stored authentication configuration, performs MCP initialize and paginated tools/list, sanitizes tool descriptions, computes stable hashes, and records the observed state. The first successful introspection establishes pins; later drift remains blocked until approved. Upstream bodies and credentials are never copied into errors.
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.
Idempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255Sanitized tool inventory and drift comparison.
application/json- response
id*stringuuidslug*stringtools*array<>items <= 500removed_tools*array<>items <= 500has_drift*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.
last_introspected_at*stringdate-timelast_introspection_error*|Always null after a successful introspection.
curl -X POST 'https://api.kejue.co/v1/mcp-servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/introspect' \ -H 'Idempotency-Key: string'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "tools": [ { "name": "string", "description": "string", "input_schema": {}, "hash": "string", "allowed": true, "pinned_hash": "string", "drift_status": "new", "blocked_by_hash": true } ], "removed_tools": [ "string" ], "has_drift": true, "pinned_tool_hashes": { "property1": "string", "property2": "string" }, "observed_tool_hashes": { "property1": "string", "property2": "string" }, "last_introspected_at": "2019-08-24T14:15:22Z", "last_introspection_error": "string"}