MCP OAuth (DCR)
MCP OAuth is the simplest option for end-user-facing MCP clients. The client discovers Jinko’s authorization server, registers itself, and runs OAuth 2.1 with PKCE in the user’s browser.Supported clients
- Claude Desktop or Claude Web: Open Settings, then Connectors, then Add custom connector. Enter
https://mcp.builders.gojinko.com/mcpand leave the OAuth fields blank. - Claude Code: Run
claude mcp add --transport http jinko https://mcp.builders.gojinko.com/mcp. - ChatGPT: Add the connector in the MCP settings on desktop or web.
- Cursor: Open Settings, then MCP Servers, and add the endpoint URL.
What happens under the hood
1
Discovery
The client reads
https://mcp.builders.gojinko.com/.well-known/oauth-authorization-server to find the authorization server at auth.gojinko.com.2
Dynamic Client Registration
The client registers itself and receives a client ID and secret. No user action is required.
3
Authorization with PKCE
The client opens
auth.gojinko.com in a browser. The user signs in or creates an account, then Jinko redirects the client with an authorization code.4
Token exchange
The client exchanges the code for access and refresh tokens, then stores them using its normal credential storage.
5
Account auto-provision
On first use, Jinko reads the JWT
sub claim and creates the user without a waitlist. Their organization starts in sandbox; live data opens once Jinko approves it. See Live access.CLI and SDK authentication
The CLI accepts API keys, including interactive key entry withjinko auth login:
OAuth on the REST API
The REST API requires a tenant API key in eitherX-API-Key: jnk_t_... or Authorization: Bearer jnk_t_.... The gateway rejects OAuth access tokens with 401 AUTH_REQUIRED. See API keys to create a key for your environment.
Which auth should I use?
Use an API key when no user-facing sign-in is needed.
Common failures
See Errors & troubleshooting for HTTP-level debugging.
