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.
- Open Customize → Connectors and choose Add connector.
- Enter the HTTPS server URL and set Authentication to Inspect OIDC.
- 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:
-
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/jwksOIDC discovery is available at the issuer's
/.well-known/openid-configurationpath, for examplehttps://app.inspect.com/api/oidc/.well-known/openid-configuration. -
issequals the issuer from the verification details, for examplehttps://app.inspect.com/api/oidc. Use the supplied value rather than deriving it from the URL you use to open Inspect. -
audequals 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_idtoo 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. -
expis 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
| Claim | Meaning |
|---|---|
sub | org:<organization-id>:user:<user-id>, with both IDs URL-encoded. Identifies the session owner, or the user making a request outside a session. |
email | The subject user's email address in Inspect. |
org | The organization ID. |
act | { "email": ... }: the person responsible for the request, when Inspect can determine one. Omitted otherwise. |
sid | The session whose transcript led to the request. Calls from native subagents identify their host session. Omitted for requests outside a session. |
aid, arid | Automation ID and automation run ID, when the session belongs to an automation run. |
connector_id | The connector that sent the request. |
ver | Claims format version, currently 1. |
iat, exp, jti | Issue 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
emailfor display or account lookup, not as your permanent identity key. Tokens carry noemail_verifiedclaim. - Treat
actas 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 onsuband recordactalongside it. - Check
verbefore relying on the claims format. - A signed token can be presented more than once before it expires. Reject reused
jtivalues if your server requires replay prevention.
For the broader trust model, see connector security.
Troubleshooting
The feature must be enabled for your organization, and configuring it requires connector-management permission.
Use an organization connection, not personal credentials.
The request target must share the configured server URL's origin. Redirects cannot move an authenticated request to another origin.
Compare against the exact audience in verification details. A URL path is not part of the audience.
Refresh the JWKS and select the key named by the token's kid.
The JWKS endpoint is unavailable. Retry rather than accepting an unverified token.