Skip to main content
Use OAuth to sign in to the dashboard or connect Jinko to a compatible MCP client. Use an API key for the CLI and SDK. CLI OAuth login is deprecated.

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

  1. Claude Desktop or Claude Web: Open Settings, then Connectors, then Add custom connector. Enter https://mcp.builders.gojinko.com/mcp and leave the OAuth fields blank.
  2. Claude Code: Run claude mcp add --transport http jinko https://mcp.builders.gojinko.com/mcp.
  3. ChatGPT: Add the connector in the MCP settings on desktop or web.
  4. 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.
The MCP server exchanges the login for a tenant key. The client refreshes its OAuth tokens automatically.

CLI and SDK authentication

The CLI accepts API keys, including interactive key entry with jinko auth login:
The SDK can use the tenant key saved by the CLI.

OAuth on the REST API

The REST API requires a tenant API key in either X-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.