Register an MCP server
Registers a public HTTPS Streamable HTTP MCP endpoint. Credentials are referenced by stable secret names and are never stored inline. Tool discovery is an explicit follow-up introspection operation using MCP 2025-11-25 with negotiated 2025-06-18 compatibility.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
Idempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255application/json- body
auth_mode=none forbids every credential field; bearer requires auth_secret_ref; oauth2 uses a pre-registered client-credentials grant, requires both OAuth credential refs, and forbids auth_secret_ref. Every OAuth token request includes an RFC 8707 resource indicator. Empty optional strings normalize to null.
slug*stringImmutable public identifier.
^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$2 <= length <= 48name*string1 <= length <= 200description?|length <= 2000url*stringPublic HTTPS Streamable HTTP MCP endpoint. Userinfo, fragments, private DNS/IP targets, and redirects to unsafe targets are rejected.
^https://urilength <= 4096auth_mode?string"none""none""bearer""oauth2"auth_secret_ref?|^[A-Za-z_][A-Za-z0-9_]{1,63}$tool_allowlist?array<>Empty means all successfully discovered tools are allowed, subject to hash enforcement.
items <= 500[]timeout_ms?integer500 <= value <= 6000010000enforce_hashes?booleantrueoauth_token_url?|Public HTTPS token endpoint. Null enables MCP 2025-11-25 endpoint-specific/root protected-resource discovery followed by RFC 8414 or OpenID Connect discovery.
^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?|Space-separated OAuth scope tokens; at most 100 unique printable ASCII tokens.
length <= 2000oauth_audience?|RFC 8707 resource indicator sent in every token request. When null, the discovered canonical resource or configured MCP URL is used automatically.
^https://urilength <= 4096MCP server registered. The complete safe configuration is returned.
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 POST 'https://api.kejue.co/v1/mcp-servers' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "slug": "string", "name": "string", "url": "http://example.com"}'{ "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"}