The connector handles the OAuth flow (discovery, client registration, and
token exchange) automatically. All you need to do is paste your organization
API key on the consent screen.
How to connect
1
Add the MCP connector
In the connector settings, enter the Chainshift MCP server URL.
2
Start authentication
The connector detects that authentication is required and opens the Chainshift approval screen in your browser. Discovery and client registration happen automatically.
3
Paste your API key
Paste your organization API key (
cs_live_…) into the approval screen and click Approve.4
Done
The connector receives an access token and uses it automatically for subsequent requests. You can keep using it without re-authenticating.
Technical specifications
Most connectors perform the flow below automatically. Refer to this section only if you are implementing an OAuth client yourself.Discovery endpoints
Discovery endpoints
GET /.well-known/oauth-protected-resource: Protected Resource Metadata (RFC 9728)GET /.well-known/oauth-authorization-server: Authorization Server Metadata (RFC 8414)
/mcp returns 401 with a WWW-Authenticate: Bearer resource_metadata="…" header, which tells the connector to start discovery.Authentication flow
Authentication flow
- Dynamic client registration:
POST /oauth/register(RFC 7591) → issues aclient_id - Authorization request:
GET /oauth/authorize(with a PKCEcode_challenge) → renders the approval screen - Authorization code issuance: the user pastes an API key and approves → a one-time
codeis returned to theredirect_uri - Token exchange:
POST /oauth/token(grant_type=authorization_code,code_verifier) → issues access and refresh tokens
Tokens and scopes
Tokens and scopes
To refresh a token, call
POST /oauth/token (grant_type=refresh_token, refresh_token, client_id). Refresh tokens are bound to the client_id they were issued to.