/mcp, as the
MCP authorization spec
describes. The user signs in to IntroLink itself (with Google, as in the app);
IntroLink never hands an assistant a Google token.
Discovery
A request to/mcp without a token gets:
Clients
Every client is public: PKCE with S256 and no secret.- Client ID metadata documents (preferred, and what Claude and ChatGPT use
when a server supports them): the
client_idis an https URL serving the client’s metadata. IntroLink fetches it (https only, a named host, a path, no redirects, at most 20 KB, 5 seconds), checks that itsclient_idis its own URL and that the requestedredirect_uriis listed, and caches it for a day. - Dynamic registration (RFC 7591) at
POST /oauth/register, for clients without a document. It takes one to tenredirect_uris, andgrant_typesmust includeauthorization_code. The answer is aclient_id(c_…) and no secret.
localhost,
127.0.0.1 or [::1]), or a native app’s own scheme (cursor://…), with no
fragment. It must match a registered one exactly, except that a loopback
redirect may use any port (RFC 8252).
The flow
GET /oauth/authorizewithresponse_type=code,client_id,redirect_uri,code_challenge,code_challenge_method=S256,stateandresource=https://app.introlink.ai/mcp(optional; any other resource is refused withinvalid_target). A bad client or redirect is shown to the user and nothing is sent back; any other mistake returns?error=….- Signed out, the user signs in to IntroLink and comes back.
- The consent screen names the assistant, the host it is identified by and
the host the user returns to. Allow posts to
/oauth/approve. An assistant that already has a live grant for this user keeps it. - The client gets
?code=ilc_…&state=…&iss=https://app.introlink.ai(RFC 9207). An error redirect carriesisstoo. POST /oauth/token(form-encoded) withgrant_type=authorization_code,code,redirect_uri,client_id,code_verifier.
- To refresh,
POST /oauth/tokenwithgrant_type=refresh_token,refresh_tokenandclient_id. The answer is a new pair, in the same shape.
Only SHA-256 hashes of codes and tokens are stored.
Revoking
- The user: Settings → Assistants (MCP) → Disconnect. Every token under that assistant’s grant stops at its next request.
- The client:
POST /oauth/revoke(RFC 7009) withtoken=…, an access or a refresh token. It revokes the whole grant, every token under it. An unknown token is not an error.
401 with error="invalid_token" in the
challenge, and the client starts the sign-in again.
Transport
Streamable HTTP, stateless:POST /mcp with one JSON-RPC message (or a
batch), answered as application/json; notifications get 202. There is no
server-to-client stream (GET is 405) and no session id. Protocol versions
2025-11-25, 2025-06-18 and 2025-03-26.