MCP Shipyard
Docs menu
Docs

OAuth scans: Sign in to scan tools

How Shipyard scans an OAuth-protected server after you sign in: what happens, what is stored, how it is encrypted, and how to revoke access.

Many OAuth servers list their tools only after sign-in. An anonymous scan can check the connection and OAuth setup but sees no tools. When that happens the report shows a panel, "Tools are behind sign-in", with a Sign in to scan tools button. It needs a Shipyard account.

What happens

  1. You press the button. Shipyard discovers the server's OAuth setup (protected resource metadata, then authorization server metadata).
  2. Shipyard picks a client identity: a client ID metadata document hosted at /oauth/client-metadata.json when the server supports it, otherwise dynamic client registration under the name "MCP Shipyard".
  3. You are sent to the server's own sign-in page. Shipyard never sees your password.
  4. The server redirects back to /oauth/callback. Shipyard checks the state value, exchanges the code with PKCE (S256) and the RFC 8707 resource parameter, and receives tokens.
  5. Shipyard runs the full scan with your session and saves it as a new report. The original report links to it.

If any step fails, an error page shows the same plain findings the scan uses, such as "token endpoint rejected a standard form-encoded request" or "authorization server rejected the redirect URI". Those findings are also useful for fixing your server. See MCP OAuth for Claude and ChatGPT.

Limits: 10 sign-in starts per team per hour. A sign-in link is valid for 10 minutes and works once, only for the account that started it.

What we store

  • Pending sign-in (state, PKCE verifier, endpoints): 10 minutes, deleted on use.
  • Session (access token, refresh token if issued, expiry, client identity, scope): one per team and server URL, so later scans of that server can reuse it. Expired access tokens are refreshed with the refresh token. If the server issues no refresh token, scans stop working when the access token expires and we report that as a finding.
  • The scan result. Tool names, descriptions and schemas from the signed-in session appear in the saved report. Reports are private to your team: only members of the team can open them. A report is public only if you turn on its share link, so think before sharing a report made with a sign-in. Findings and evidence never contain tokens or codes.

Everything above is encrypted with AES-GCM before it goes into the database. Tokens are never written to logs. Scans only list tools and read metadata. They do not call your tools.

Use an account with the fewest permissions that still lists your tools. A test account is better than a production user.

Manage and revoke

Open Settings, Connections (/settings/connections). It lists every stored sign-in of your team: server URL, scopes, when it was created, when it was last refreshed, and when the access token expires. Tokens are never shown.

  • Revoke. If the server's authorization server advertises a revocation endpoint (RFC 7009), Shipyard asks it to invalidate the refresh token and the access token, then deletes its own encrypted copy. If the server has no revocation endpoint, or does not confirm, we still delete our copy and tell you so on the page. To be sure in that case, remove "MCP Shipyard" from the account's connected apps at the server.
  • Re-authorize. Runs the sign-in again on the server's own page and replaces the stored session. Use it when the session expired and the server issued no refresh token, or to change the account.
  • At your authorization server. Removing "MCP Shipyard" from the connected apps ends access regardless of what we hold. It is always the most reliable method.

If the server's access tokens are short-lived, a revoked refresh token means any copy is useless within the token lifetime.

Use a stored sign-in from the API

Each stored sign-in has an id (ses_...). Pass it as oauthSessionId to POST /api/v1/scan with the same server URL and the scan runs with that session, refreshed if needed. Only your team's keys can use your team's sessions. See API.

Related: scan report explained, FAQ.