Herald
OpenapiOauth

MCP dynamic client registration — gated pass-through form (DEC-mcp-server-007). Advertised from the AS metadata as `registration_endpoint` because mainstream MCP clients refuse to connect without one; after the gate (rate limit + RFC 7591 shape + loopback redirect validation) it returns the realm's preset public `herald-mcp` client and persists NOTHING — the abuse surface therefore equals the preset-client status quo (the real security boundaries stay in authorize's loopback whitelist, mandatory PKCE, and the tool-layer RBAC/scope gates).

POST
/api/oauth/{realmId}/mcp/register

Path Parameters

realmId*string

Realm ID

Request Body

RFC 7591 registration request. Only client_name (1-100 chars) and redirect_uris (non-empty, every entry an http loopback /callback URL) are validated; other fields are accepted and ignored. Returns the preset public MCP client — no client_secret, no registration state.

application/json
  1. body

RFC 7591 registration request. Only client_name and redirect_uris carry meaning here; every other field (and any unknown field) is accepted and ignored — real MCP clients send heterogeneous metadata sets.

client_name?string|null
redirect_uris?array<string>|null

Response Body

Client information for the preset Herald MCP public client

application/json
  1. response

RFC 7591 client information response for the preset public MCP client. No client_secret (PKCE-only public client), no registration_client_uri and no client_id_expires_at — the endpoint is a stateless read equivalent: every gated-in caller receives the same preset identity.

client_id*string
client_name*string
grant_types*array<string>
redirect_uris*array<string>
response_types*array<string>
scope*string
token_endpoint_auth_method*string
Example Request
curl -X POST 'https://example.com/api/oauth/string/mcp/register' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "client_id": "string",
  "client_name": "string",
  "grant_types": [
    "string"
  ],
  "redirect_uris": [
    "string"
  ],
  "response_types": [
    "string"
  ],
  "scope": "string",
  "token_endpoint_auth_method": "string"
}