Skip to content

Public documentation

Product version
1.3.0
Docs revision
r0
State
Current · released
Deployment
not-deployed
Source
platform-docs-v1.3.0 · 6ba04cd58b52

Documented release is not yet live

Concepts

Authentication

v1.3.0platform-docs-v1.3.06ba04cd

Mercury uses standard OAuth 2.1 to sign a client in to the single Mercury MCP endpoint. You do not paste a key into a configuration file: the client performs the sign-in for you and holds the resulting credentials. This page explains what happens, what you are asked to approve, and how access ends.

How a client signs in

When a client first connects to the endpoint without credentials, the server answers that sign-in is required and points to a public description of how to obtain it. A capable MCP client follows that pointer on its own, so all you normally provide is the server address. The client then runs the OAuth authorization code flow with PKCE: it opens the Mercury sign-in page in your browser, you sign in and approve the connection, and the client exchanges the result for an access token. The token is issued for the Mercury endpoint specifically, and the endpoint rejects a token that was issued for anything else.

Because the browser step is part of the standard flow, any MCP client that supports OAuth can connect. Nothing in the flow depends on a particular client or vendor.

What you approve

The client requests two scopes. openid identifies you, and offline_access lets the client renew its access without asking you to sign in again every time the short-lived access token expires. Before the client receives anything, you see a consent screen that names the application asking for access. Approving creates a grant for that application on your account; denying it creates nothing and the client is told the request was refused.

The scopes establish who you are. They do not decide which Mercury services you can call. That is governed by entitlement, described in Access and entitlements, and it is checked on every request, per service.

Staying signed in

Access tokens are deliberately short-lived, on the order of minutes. The client renews them in the background with its refresh token, so a long session does not interrupt you. If renewal fails the client will ask you to sign in again.

Revoking a client

Each application you have approved is listed in your Mercury account, where you can revoke it. A revoked client can no longer renew its access, effective immediately. An access token that the client already holds keeps working until it expires, which is a matter of minutes, and after that the client has to start the authorization flow again and you are asked to approve it again. Revoking a client does not touch your Mercury account session, your other applications, or your entitlements.

Migrating from API keys

If you joined the beta before OAuth and connect with an API key, or you installed Mercury as several separate servers, switch to the single endpoint and sign in with OAuth. The single endpoint does not accept API keys, and a key that used to work on a per-service address does not grant access here. Remove the old servers from your client, add the endpoint above, and complete the sign-in; your existing entitlements carry over unchanged.