Download OpenAPI specification:
Lets MCP clients such as WorkBuddy, Claude Code and Cursor sign a user in with only an MCP URL (Context Loader's): the client reads the protected-resource metadata (RFC 9728) and the authorization-server metadata (RFC 8414), registers itself (RFC 7591) and opens Hydra's authorize endpoint in the browser. Hydra's own dynamic registration stays disabled; bkn-safe admits only public clients that must sign a user in (authorization_code + PKCE, refresh allowed, no client_credentials) with loopback callbacks, and creates them through Hydra's admin API.
Users list and disconnect the clients they connected; administrators list and remove any self-registered client. First-party clients (Studio, CLI) are never listed or touched.
The discovery and registration routes exist only when
config.oauth.dynamicRegistration.enabled is true.
{- "scopes_supported": [
- "openid",
- "offline"
], - "bearer_methods_supported": [
- "string"
], - "resource_name": "string"
}Path-suffixed form (RFC 9728 §3.1). Only MCP paths are answered:
Context Loader's (api/agent-retrieval/v1/mcp…, resource_name
"OpenBKN Context Loader"); resource echoes the origin the caller used.
| resourcePath required | string Example: api/agent-retrieval/v1/mcp/ |
{- "scopes_supported": [
- "openid",
- "offline"
], - "bearer_methods_supported": [
- "string"
], - "resource_name": "string"
}Unauthenticated by design: a client registers before anyone has signed
in. Requests are rate-limited per client IP. Whatever grant types the
client asks for, the created client gets authorization_code and
refresh_token and the scope openid offline offline_access.
| redirect_uris required | Array of strings <uri> non-empty [ items <uri > ] Loopback callbacks ( |
| client_name | string <= 64 characters |
| grant_types | Array of strings Items Enum: "authorization_code" "refresh_token" |
| response_types | Array of strings Items Value: "code" |
| token_endpoint_auth_method | string Value: "none" |
{- "client_name": "WorkBuddy Connector",
- "grant_types": [
- "authorization_code"
], - "response_types": [
- "code"
], - "token_endpoint_auth_method": "none"
}{- "client_id": "string",
- "client_id_issued_at": 0,
- "client_name": "string",
- "redirect_uris": [
- "string"
], - "grant_types": [
- "string"
], - "response_types": [
- "string"
], - "token_endpoint_auth_method": "none",
- "scope": "string"
}Revokes the caller's grant; the client's access and refresh tokens stop working.
| clientId required | string |
{- "error_code": "string",
- "description": "string",
- "error_details": null,
- "metadata": { }
}Every grant to the client and every token issued to it stop working.
| clientId required | string |
{- "error_code": "string",
- "description": "string",
- "error_details": null,
- "metadata": { }
}