Skip to content
Guides menu
Guides/Shop MCP OAuth details

Shop MCP OAuth details

Implement OAuth discovery, scopes, refresh, and revocation for a shop MCP client.

Preview: opening soon. Shop MCP connections are unavailable until Outdoor Grid enables the server.

The protected resource is https://mcp.outdoorgrid.ai/shop/mcp. Discover its authorization server from https://mcp.outdoorgrid.ai/.well-known/oauth-protected-resource/shop/mcp. The authorization server is https://api.outdoorgrid.ai/oauth, with metadata at https://api.outdoorgrid.ai/.well-known/oauth-authorization-server/oauth. Its own metadata URL, https://api.outdoorgrid.ai/oauth/.well-known/oauth-authorization-server, serves the same document.

Use OAuth 2.1 authorization code with PKCE S256. The metadata advertises the authorize and token endpoints, the revocation endpoint, and the signing keys. It advertises dynamic client registration when that feature is enabled in the deployment. Send the MCP resource as the resource parameter. A token is for this MCP resource, not for the REST API.

Production accepts only the configured ChatGPT and Claude OAuth callbacks. QA also accepts loopback callbacks for MCP Inspector. Cursor and Codex use API keys when those keys open; their OAuth callbacks are not in the current allowlist.

ScopeMeaning
shop:readRequired to list and call read tools.
offline_accessRequests a refresh token for a continuing connection.

The default consent requests both. A client can request only shop:read, but must sign in again after its access token expires. Consent chooses one person and one shop for this connection. A separate shop needs a separate consent. The selected person's current permissions still decide each tool answer; OAuth consent does not widen them.

Access tokens last 15 minutes. A refresh token slides for 30 days with a 90 day absolute limit. Every refresh rotates the token; reuse outside the short duplicate window revokes the family and grant. Authorization codes last 60 seconds. The consent request lasts 10 minutes. A revoked connection, removed shop access, or an AI switch turned off stops future calls. Revoke a connection in Outdoor Grid's AI connections settings; clients can also use the advertised OAuth revocation endpoint for their refresh token.

QA has a separate resource, https://mcp-qa.outdoorgrid.ai/shop/mcp, and authorization server https://api-qa.outdoorgrid.ai/oauth. QA credentials do not work against production. For tool names and arguments, use the generated MCP reference.