Inspect

Inspect OIDC connectors

An Inspect OIDC connector sends a short-lived token, signed by Inspect, with every request to your MCP server. Your server verifies the signature and claims instead of trusting a shared secret. It can identify the Inspect user and associate calls with sessions or automation runs.

Inspect OIDC must be enabled for your organization. If it is unavailable, Inspect OIDC is absent from the authentication options; a custom JSON definition cannot bypass that restriction.

Add the connector

You need the Edit connectors role or Admin. See users and roles.

  1. Open Customize → Connectors and choose Add connector.
  2. Enter the HTTPS server URL and set Authentication to Inspect OIDC.
  3. Add the connector, then use View token verification details to get the issuer, audience, and JWKS URL for your server.

Inspect OIDC connectors require organization credentials. They have one shared connection with no secret to enter, but each request's token identifies the Inspect user responsible for that call.

In custom MCP JSON, set "auth": "inspect_oidc". It cannot be combined with OAuth or secret-header placeholders.

What Inspect sends

Every request carries Authorization: Bearer <token>. Tokens are RS256-signed JWTs that expire after five minutes. Inspect sends them only to the origin of the configured server URL and does not follow redirects with a token attached.

The connector must remain enabled and connected. Inspect checks those conditions and feature availability before minting a request token. Normal connector access and privacy rules still apply.

Verify the token

Accept a request only when all of these hold:

  1. The signature uses RS256 and validates against a key from Inspect's JWKS. Use the JWKS URL from the connector's verification details, for example:

    https://app.inspect.com/api/oidc/jwks

    OIDC discovery is available at the issuer's /.well-known/openid-configuration path, for example https://app.inspect.com/api/oidc/.well-known/openid-configuration.

  2. iss equals the issuer from the verification details, for example https://app.inspect.com/api/oidc. Use the supplied value rather than deriving it from the URL you use to open Inspect.

  3. aud equals the audience from the verification details:

    inspect-connector:<organization-id>:<your MCP server origin>

    Inspect URL-encodes the organization ID in this value. The audience includes the server's scheme, hostname, and port when present, but not its path. Connectors for the same organization and origin share an audience, so check connector_id too if your server needs to distinguish them.

    The organization component prevents another organization's tokens from matching. Sandbox workload identities cannot use the reserved inspect-connector: audience prefix.

  4. exp is in the future. Configure only the clock skew your deployment needs.

Most JWT libraries check the signature, iss, aud, and exp when you configure the issuer, audience, and JWKS URL. Inspect publishes discovery and JWKS responses with a five-minute public cache lifetime. Configure your verifier to refresh keys when it encounters an unfamiliar kid.

What the claims mean

ClaimMeaning
suborg:<organization-id>:user:<user-id>, with both IDs URL-encoded. Identifies the session owner, or the user making a request outside a session.
emailThe subject user's email address in Inspect.
orgThe organization ID.
act{ "email": ... }: the person responsible for the request, when Inspect can determine one. Omitted otherwise.
sidThe session whose transcript led to the request. Calls from native subagents identify their host session. Omitted for requests outside a session.
aid, aridAutomation ID and automation run ID, when the session belongs to an automation run.
connector_idThe connector that sent the request.
verClaims format version, currently 1.
iat, exp, jtiIssue time, expiry, and a unique token ID.

What to trust

  • Identify the Inspect user by sub. It scopes the user ID to the organization.
  • Use email for display or account lookup, not as your permanent identity key. Tokens carry no email_verified claim.
  • Treat act as audit context. For an agent call, it can identify the person whose prompt led to the call. Automated prompts can attribute the call to the automation's owner. Authorize on sub and record act alongside it.
  • Check ver before relying on the claims format.
  • A signed token can be presented more than once before it expires. Reject reused jti values if your server requires replay prevention.

For the broader trust model, see connector security.

Troubleshooting