Register MCP clients with a gateway and choose how they authenticate.
Any MCP-compatible client can reach the MCP Gateway, most often a coding agent such as Claude Code, Cursor, or Codex. See Coding Agents for the full list.The connection works once three things are in place:
An MCP Gateway exists. Its Overview tab carries a Connect section with the gateway key and the endpoint, https://my.orq.ai/v3/mcp/<gateway-key>.
At least one MCP Server is linked to it, with the tools, resources and prompts the client needs exposed.
The client is registered with that endpoint, either by the npx add-mcp command from the Connect section or by adding the endpoint to the client’s own configuration.
npx add-mcp writes the URL into the clients it detects, and the sign-in itself belongs to the client: Claude Code signs in from /mcp, Codex needs codex mcp login before it authenticates, and Claude Desktop has to be added through Settings → Connectors, which the command cannot write.
The examples below use https://my.orq.ai as the default host. For self-hosted or on-premise deployments, replace this with the base URL configured for your deployment. The API’s public_url field returns the full connect endpoint (which may be relative when no public base URL is configured).
Authentication methods
OAuth
Default. Browser sign-in for interactive clients.
Client credentials
Short-lived tokens with no user present. For services and automations.
Enterprise-managed authorization
The identity provider issues an ID-JAG, with no consent screen.
API key
A bearer token in the client configuration. For headless clients.
Gateway-only SSO
Entra ID or Okta without a workspace seat. Enterprise plan.
When calling an enterprise-managed server, use gateway OAuth or a user-owned API key whose owner has signed in through SSO. Service-account keys and federation-minted keys cannot supply the required user identity. Sign in again after an admin enables Cross App Access, or when a call returns ENTERPRISE_AUTH_REAUTH_REQUIRED.
OAuth
OAuth is the default. The client signs in through the browser and receives a token scoped to this MCP Gateway and to the person who signed in, so no workspace API key is stored in the client configuration.
This flow authenticates MCP clients to the MCP Gateway. The credentials the gateway uses to reach each upstream MCP Server are configured on the server itself. See MCP Servers.
1
Set up the client
The Connect section on the Overview tab shows the gateway key and this command. Copy it from there, or run it with <gateway-key> replaced:
Run codex mcp login <gateway-key> to complete the browser approval.
Add the MCP Gateway with the MCP: Add Server command, select HTTP (HTTP or Server-Sent Events), and enter https://my.orq.ai/v3/mcp/<gateway-key> as the server URL. VS Code writes a .vscode/mcp.json:
VS Code registers through a client metadata document, so no client ID or secret is provisioned. It opens the browser for approval on first connect.
Open Settings → Connectors, then Add connector → Add custom connector. Name it after the gateway and set the server URL to https://my.orq.ai/v3/mcp/<gateway-key>.Leave the request headers empty and choose Sign in now with Register automatically, so the connector authenticates through OAuth. The setup mirrors Claude Desktop, with the gateway URL in place of the Orq MCP server URL.In a Team or Enterprise organization, an owner or administrator adds the connector once, and members enable it from + → Connectors.
2
Approve access
On first use the client opens the browser. The approval page names the client and the MCP Gateway it is requesting access to. Click Approve to issue the token, or Deny to reject the request.
Approval page for an MCP client requesting access to a gateway
Manage authorized clientsEvery authorized client appears on the Clients tab with the client name, when it authenticated, and who created it. Choose Revoke access from a client’s menu to stop the client refreshing its token; the access token it already holds stays valid until it expires, up to 30 minutes.The accounts behind those sign-ins are listed per workspace under Connections, where an admin can disconnect one.
Revoking a client and disconnecting a Connection are console-only steps.
Clients tab on an MCP Gateway listing authorized MCP clients
How sign-in worksThe MCP Gateway implements the MCP authorization specification on top of OAuth 2.0:
Discovery: an unauthenticated request to the gateway returns 401 with a WWW-Authenticate header pointing at the gateway’s metadata documents. The protected-resource document at /.well-known/oauth-protected-resource/v3/mcp/<gateway-key> names the authorization server; the authorization-server document at /.well-known/oauth-authorization-server/v2/auth/mcp, which serves every gateway, lists its endpoints.
Dynamic client registration: the client registers at the authorization server’s registration endpoint, so no client ID or secret needs provisioning in advance.
Authorization code with PKCE: sign-in uses the authorization code flow with Proof Key for Code Exchange (PKCE) and the S256 challenge method, which binds the authorization code to the client that requested it.
The token carries the scopes the client requested, mcp:tools and mcp:resources by default, on this MCP Gateway only. Request mcp:prompts to reach the gateway’s prompts, since the default pair does not include it. A client registered with the refresh_token grant refreshes it without another sign-in until access is revoked, and a refresh token lasts 7 days; any other client signs in again when the token expires. Each refresh replaces the refresh token; presenting a replaced one more than 60 seconds later revokes the client’s access, and the person signs in again.Authorization server metadata/.well-known/oauth-authorization-server/v2/auth/mcp advertises:
<issuer>/jwks.json, the keys that sign client credentials and ID-JAG access tokens
Client credentials
A pre-registered client authenticates as itself and receives a 10-minute access token bound to one MCP Gateway, without a browser or a refresh token. The client is its own principal and has the same access settings as an API key: project and permissions.
1
Register the client
In Settings → API Keys → OAuth Clients, click + Client. Choose the Client credentials grant, the access (project and permissions), and how the client authenticates:
Client secret (Basic) or Client secret (POST): the secret is shown once after creation. Use Rotate secret to replace it.
Private key JWT: paste a JSON Web Key Set or a JWKS URL with the public keys. The client signs RFC 7523 assertions with RS256, PS256 or ES256.
Only workspace Admins can register, edit, or delete clients, and these actions are console-only. The client’s permissions must include MCP Gateway execution, which new clients have by default.Each client has a managed API key behind it, shown as Managed on the API Keys page; it cannot be used, edited or deleted there.Disabling or deleting the client revokes it. A gateway’s Clients tab lists the OAuth clients that can reach it.
The response carries access_token, token_type, expires_in and the granted scope. Send the token as Authorization: Bearer <access_token> and request a new one before it expires.
3
Authenticate with private_key_jwt
Sign a JWT assertion with the client’s registered key. The assertion carries iss and sub set to the client ID, aud set to the token endpoint, iat, an exp within five minutes, and a unique jti; the header names the registered key in kid. Sign with RS256, PS256, or ES256.
A client can also register through a client metadata document instead of out-of-band registration. Set client_id to an HTTPS URL with a path; the URL must return a JSON document with the same client_id, a client_name, authorization_code in grant_types, redirect_uris, and token_endpoint_auth_method set to none or private_key_jwt. A private_key_jwt document carries exactly one of jwks or jwks_uri, and the document cannot contain client_secret.With the TypeScript MCP SDK, the providers run discovery and the token request:
Client secret
Private key JWT
Python
import { Client } from '@modelcontextprotocol/sdk/client/index.js';import { ClientCredentialsProvider } from '@modelcontextprotocol/sdk/client/auth-extensions.js';import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';const authProvider = new ClientCredentialsProvider({ clientId: process.env.ORQ_MCP_CLIENT_ID!, clientSecret: process.env.ORQ_MCP_CLIENT_SECRET!, expectedIssuer: 'https://my.orq.ai/v2/auth/mcp',});const transport = new StreamableHTTPClientTransport( new URL('https://my.orq.ai/v3/mcp/<gateway-key>'), { authProvider },);const client = new Client({ name: 'nightly-sync', version: '1.0.0' });await client.connect(transport);
import { PrivateKeyJwtProvider } from '@modelcontextprotocol/sdk/client/auth-extensions.js';const authProvider = new PrivateKeyJwtProvider({ clientId: process.env.ORQ_MCP_CLIENT_ID!, privateKey: process.env.ORQ_MCP_CLIENT_PRIVATE_KEY!, algorithm: 'RS256', expectedIssuer: 'https://my.orq.ai/v2/auth/mcp',});
Pass authProvider to StreamableHTTPClientTransport as in the client secret example.
Send access_token as a bearer token from any MCP client.
Choose client credentials over an API key when the credential must stay short-lived, use a private key instead of a shared secret, or have its access managed with the client rather than with a long-lived key.
Enterprise-managed authorization
Available with the Enterprise Plan. The company identity provider decides which users may use which MCP clients. A client signed in through SSO asks the identity provider for an Identity Assertion JWT Authorization Grant (ID-JAG) and exchanges it at Orq.ai for a gateway token, so the user never sees the approval page.
In Settings → Auth, open the SSO connection and turn on Accept ID-JAGs from this identity provider under ID-JAG trust. List the Allowed clients: pre-registered client IDs or Client ID Metadata Document URLs. Scopes optionally limit what they may request. OIDC connections trust the SSO issuer only; SAML connections need the Issuer URL the identity provider puts in its ID-JAGs.
3
Configure the identity provider
Register the MCP client at the identity provider and allow token exchange for Orq.ai. The ID-JAG must use:
aud: the authorization server issuer, https://my.orq.ai/v2/auth/mcp.
resource: the gateway URL, https://my.orq.ai/v3/mcp/<gateway-key>, or omit it and send resource in the token request.
The 15-minute token acts as the linked user, with that user’s roles and project access. Only a pre-registered client or a client registered through a metadata document, with full access, can reach the Orq MCP Server at /v2/mcp. The sample authenticates a pre-registered client with a secret; a metadata-document client sends its client_id and, with private_key_jwt, a client_assertion, and has no client secret. There is no refresh token: request a new ID-JAG when it expires.
Account linkingOrq.ai links the ID-JAG sub to an account the first time it sees it, and reuses that link afterwards. On first use the ID-JAG must carry email_verified: true and an email in one of the SSO connection’s allowed domains that matches an account already in the workspace. Orq.ai never creates accounts or memberships from an ID-JAG; a request with no matching member is rejected with invalid_grant. Changing the connection’s issuer clears its links.Each ID-JAG is accepted once, must live 10 minutes or less, and is checked against the identity provider’s published keys.
Claude connectors
Claude Enterprise Managed Auth lets members of a Claude organization use an MCP Gateway as a connector without an approval page. Claude signs the ID-JAG under an issuer URL that belongs to that organization, so no SSO connection is needed.
1
Verify the email domain
Verify the members’ email domain in the workspace security settings. Orq.ai only matches addresses on a verified domain.
2
Copy the issuer URL
In Claude, open the connector’s Managed authorization setup, choose Claude-issued as the identity source, and copy the Issuer URL. It looks like https://identity.anthropic.com/issuers/<issuer-id>.
3
Register the issuer
In Settings > Security > Workload federation, open the Connect menu and choose Register issuer, then select Claude as the provider. Paste the Issuer URL exactly as Claude shows it, trailing slash included, and keep Allow ID-JAG sign-in to MCP gateways on.Allowed client IDs starts with Claude’s Client ID Metadata Document URL, https://claude.ai/oauth/mcp-oauth-client-metadata. Add the ID of a pre-registered client when the connector uses one; it needs the JWT bearer grant. Dynamic Client Registration clients cannot redeem ID-JAGs.
4
Set the tenant ID
Copy Tenant ID for Claude from the issuer into the Tenant ID field of Claude’s managed authorization setup. An ID-JAG that carries it is accepted only by this workspace.
5
Run the connection test
Add the gateway URL, https://my.orq.ai/v3/mcp/<gateway-key>, as a connector in Claude and click Run test under Connection status.
Workspaces of the same organization can register the same issuer, and the tenant ID picks the workspace. Without a tenant ID, the gateway in the token request picks it, and a gateway key that exists in more than one of those workspaces is refused. A workspace in another organization cannot register an issuer that is already in use.Orq.ai matches the whole email against the workspace’s members on every request, ignoring case, and rejects any address that is not on a verified domain. It does not use sub, and it never creates accounts or memberships.
A Claude-issued ID-JAG proves that the user belongs to the Claude organization. It does not prove that they signed in through SSO or used multi-factor authentication.
Tokens last 15 minutes with no refresh token, and Claude requests a new ID-JAG when one expires. A user removed from the Claude organization keeps access until the current token expires.
API key
Pass an API key as a bearer token instead of signing in. Use a user key for a person, so access ends with their membership, or a service-account key for a deployment that must outlive the person who set it up. Set ORQ_API_KEY, then register the MCP Gateway:
VS Code prompts for the API key on first connect and stores it in the OS secret store.
Sessions
Each MCP request stands on its own. There is no gateway session for a client to initialize, keep alive, resume after a reconnect, or clean up.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Orq.ai Documentation","description":"Documentation for Orq.ai, the EU-built control plane for enterprise AI: govern every LLM and MCP call with the AI Gateway, and ship backlog work with the Software Factory.","colors":{"primary":"#df5325","light":"#f27c3c","dark":"#df5325"},"logo":{"light":"https://mintcdn.com/orqai/OG_14djpK9Yasgfk/images/Orq_ai_Symbol_Dark.svg?fit=max\u0026auto=format\u0026n=OG_14djpK9Yasgfk\u0026q=85\u0026s=d01651850182afdbc6309808b688d470","dark":"https://mintcdn.com/orqai/BYq_L5I_ZDBWL_Pf/images/Orq_ai_Symbol_Light.svg?fit=max\u0026auto=format\u0026n=BYq_L5I_ZDBWL_Pf\u0026q=85\u0026s=3e372f93174202f20c31d2c045af92b9","href":"/ai-gateway/get-started/introduction"},"favicon":"https://mintcdn.com/orqai/rmwcfFw4PPljHRCz/favicon.svg?fit=max\u0026auto=format\u0026n=rmwcfFw4PPljHRCz\u0026q=85\u0026s=1827beca4e1fb46e074d8bda067f3fb1","api":{"openapi":"openapi.json","examples":{"languages":["curl","typescript","python"]}},"background":{"color":{"light":"#f7f6f5","dark":"#1f1e1d"}},"navbar":{"links":[],"primary":{"type":"button","label":"Get Started","href":"https://my.orq.ai/auth/signup"}},"footer":{"socials":{"github":"https://github.com/orq-ai","x":"https://x.com/orq_ai","linkedin":"https://www.linkedin.com/company/orqai","website":"https://orq.ai"}},"seo":{"metatags":{"author":"Orq.ai","og:type":"website","og:site_name":"Orq.ai Documentation","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@orq_ai","twitter:creator":"@orq_ai","viewport":"width=device-width, initial-scale=1.0","robots":"index, follow","language":"English"},"organization":{"id":"https://docs.orq.ai/#organization","name":"Orq.ai","legalName":"Orq.AI Holding B.V.","url":"https://orq.ai","logo":"https://docs.orq.ai/images/Orq_ai_Symbol_Dark.svg","sameAs":["https://github.com/orq-ai","https://x.com/orq_ai","https://www.linkedin.com/company/orqai/"]},"indexing":"all"},"fonts":{"heading":{"family":"ES Klarheit Kurrent Semibold","weight":600,"source":"https://framerusercontent.com/assets/HiovZWjG27S5NQhE8dyeECDMc.woff2","format":"woff2"},"body":{"family":"Inter","weight":400,"source":"fonts/inter-latin-400-normal.woff2","format":"woff2"}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":true},"contextual":{"options":["copy","download-spec","chatgpt","claude","view"],"display":"header"},"interaction":{"drilldown":true},"markdown":{"instructions":"Orq.ai is the control plane for model and MCP traffic: one key reaches the workspace's enabled models, MCP servers, and resources. The setup depends on where the agent runs.\nHosted assistant (ChatGPT, claude.ai, a hosted sandbox): install nothing. Tell the human to add https://my.orq.ai/v2/mcp as a remote MCP connector and finish the Orq.ai sign-in. With OAuth, send no Authorization header; otherwise send an API key as a bearer token.\nLocal coding agent (Claude Code, Codex, Cursor, OpenCode): run `curl -fsSL https://cli.orq.ai/install.sh | sh`. It installs the CLI and runs `orq setup`, which signs in, writes a project-scoped key to `~/.orq/env`, and wires the detected agents through the AI Gateway. It can also add the Orq MCP server and Orq Skills, the workflows for agents, evaluations, and traces: https://docs.orq.ai/ai-studio/integrations/code-assistants/orq-skills.md. Cursor receives the Orq MCP server and Orq Skills only; its model calls are not routed through the AI Gateway. Verify with `orq status`.\nHeadless or CI: read `ORQ_API_KEY` from the environment; a human creates the key at https://docs.orq.ai/ai-studio/organization/api-keys.md.\nSend model traffic to https://my.orq.ai/v3/router with `Authorization: Bearer $ORQ_API_KEY`; the Anthropic SDK uses https://my.orq.ai/v3/anthropic. New integrations go on `/v3/router`: `/v2/router` stays published for backward compatibility, and `orq.prompt` works only on `/v2/router/chat/completions`.\nTo enable a model for the workspace, ask a human to enable it in the Model Garden, or call `POST /v2/workspace-models` with a Management Key that has `workspace-model` write; API keys are rejected with `403`. Use the model's exact `provider/model` id. A call fails while the workspace has neither credits nor a provider key.\nOn `/chat/completions`, a reasoning model rejects `tools` with a `reasoning_effort` other than `none`; `/responses` keeps reasoning.\nOn a failure, branch on `error.code` and follow `error.doc_url`; a budget rejection answers 429."},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"orqai","hasAudioNarration":false,"actualSubdomain":"orqai","customDomains":["docs.orq.ai"],"gitSource":{"type":"github","owner":"orq-ai","repo":"orquesta-web","deployBranch":"main","contentDirectory":"documentation/mintlify","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0e9e8abc31c65f38b7a95e","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API Reference","count":503},{"language":"default","tag":"Platform APIs","count":316},{"language":"default","tag":"Integrations","count":93},{"language":"default","tag":"Management APIs","count":93},{"language":"default","tag":"Orq SDK","count":86},{"language":"default","tag":"SDK Reference","count":83},{"language":"default","tag":"AI Gateway","count":71},{"language":"default","tag":"Cookbooks","count":34},{"language":"default","tag":"Administration","count":33},{"language":"default","tag":"Model Providers","count":31}],"searchSettings":{"maxResults":15}},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"deflection":{"enabled":true,"email":"support@orq.ai","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":".nav-anchor img{border-radius:50%}.ig-root{scroll-margin-top:6rem}.ig-search{width:100%;padding:10px 14px 10px 38px;border-radius:8px;border:1px solid rgba(0, 0, 0, 0.15);font-size:14px;outline:none;margin-bottom:20px;background:transparent;box-sizing:border-box;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0Z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:12px center}.dark .ig-search{border-color:rgba(255, 255, 255, 0.15)}.ig-search:focus{border-color:#df5325}.ig-tabs{display:flex;border-bottom:1px solid rgba(0, 0, 0, 0.1);margin-bottom:20px;gap:0}.dark .ig-tabs{border-bottom-color:rgba(255, 255, 255, 0.1)}.ig-tab{padding:8px 16px;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;font-size:14px;font-weight:500;color:#888;white-space:nowrap}.ig-tab:hover{color:#df5325}.dark .ig-tab:hover{color:#f27c3c}.ig-tab-active{border-bottom-color:#df5325!important;color:#df5325!important}.dark .ig-tab-active{border-bottom-color:#f27c3c!important;color:#f27c3c!important}.ig-grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:6px}@media (max-width: 768px){.ig-grid{grid-template-columns:repeat(3, 1fr)}}@media (max-width: 480px){.ig-grid{grid-template-columns:repeat(2, 1fr)}}.ig-card{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid rgba(0, 0, 0, 0.1);border-radius:6px;text-decoration:none!important;color:inherit!important;font-size:14px;font-weight:500;transition:background 0.12s, border-color 0.12s}.ig-card:hover{background:rgba(223, 83, 37, 0.05);border-color:rgba(223, 83, 37, 0.25)}.dark .ig-card{border-color:rgba(255, 255, 255, 0.1)}.dark .ig-card:hover{background:rgba(242, 124, 60, 0.1);border-color:rgba(242, 124, 60, 0.3)}.ig-card-icon{width:20px;height:20px;object-fit:contain;flex-shrink:0}.ig-tab-count{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;padding:0 5px;min-width:18px;height:18px;border-radius:9px;font-size:11px;font-weight:600;background:rgba(0, 0, 0, 0.08);color:inherit}.dark .ig-tab-count{background:rgba(255, 255, 255, 0.12)}.ig-tab-active .ig-tab-count{background:rgba(223, 83, 37, 0.15)}.dark .ig-tab-active .ig-tab-count{background:rgba(242, 124, 60, 0.25)}.ig-empty{text-align:center;padding:48px 24px;color:#999;font-size:14px;grid-column:1 / -1}kbd.key,kbd.key *{color:#fff!important}kbd.key{background:#242424;border-radius:5px;padding:2px 8px;font-size:0.85em;display:inline-flex;align-items:center;gap:6px;border:1px solid #3a3a3a;font-family:inherit;white-space:nowrap}#sidebar-content .flex-1:has(>svg.flex-shrink-0){flex:none!important}#sidebar-content{width:16rem!important;min-width:16rem!important}@media (min-width: 1024px){.lg\\:pl-56{padding-left:16rem!important}}.topbar-right-container nav[aria-label=\"Main\"] .navbar-link a,.topbar-right-container nav[aria-label=\"Main\"] .navbar-link a:hover{background-color:transparent!important}@media (min-width: 1024px){.topbar-right-container nav[aria-label=\"Main\"] ul{gap:1rem!important}.topbar-right-container nav[aria-label=\"Main\"] .navbar-link a{padding-left:0!important;padding-right:0!important}#page-title{font-size:2rem!important;line-height:1.2!important}}.nav-tabs-item:has(a[href^=\"/reference\"]){display:none!important}#navbar .nav-tabs-item[href=\"/ai-studio/integrations/overview\"]{position:relative}#navbar .nav-tabs-item[href=\"/ai-studio/integrations/overview\"]::before{content:'';position:absolute;top:50%;left:-12px;transform:translateY(-50%);height:55%;width:1px;background:rgba(0, 0, 0, 0.15)}.dark #navbar .nav-tabs-item[href=\"/ai-studio/integrations/overview\"]::before{background:rgba(255, 255, 255, 0.15)}@media (min-width: 1280px){#content-container{padding-left:3rem!important;padding-right:2rem!important}#content-side-layout{max-width:20rem!important}#content-area{width:calc(100% - 20rem)!important}}.md-export-list{display:none}@font-face{font-family:'Inter';src:url('/fonts/inter-latin-400-normal.woff2') format('woff2');font-style:normal;font-weight:400;font-display:optional}"}]}
{"page":{"pagePath":"ai-gateway/mcp-portal/mcp-gateways/connect-clients","slug":"/ai-gateway/mcp-portal/mcp-gateways/connect-clients","pageMetadata":{"title":"Connect clients","sidebarTitle":"Connect clients","description":"Register MCP clients with a gateway and choose how they authenticate.","href":"/ai-gateway/mcp-portal/mcp-gateways/connect-clients"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Register MCP clients with a gateway and choose how they authenticate.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Frame,Heading,Note,OptimizedImage,Step,Steps,Tab,Table,Tabs,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Any MCP-compatible client can reach the MCP Gateway, most often a coding agent such as `,_jsx(_components.a,{href:`/ai-studio/integrations/code-assistants/claude-code`,children:`Claude Code`}),`, `,_jsx(_components.a,{href:`/ai-studio/integrations/code-assistants/cursor`,children:`Cursor`}),`, or `,_jsx(_components.a,{href:`/ai-studio/integrations/code-assistants/codex`,children:`Codex`}),`. See `,_jsx(_components.a,{href:`/ai-studio/integrations/overview`,children:`Coding Agents`}),` for the full list.`]}),`\n`,_jsx(_components.p,{children:`The connection works once three things are in place:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`An `,_jsx(_components.strong,{children:`MCP Gateway`}),` exists. Its `,_jsx(_components.strong,{children:`Overview`}),` tab carries a `,_jsx(_components.strong,{children:`Connect`}),` section with the gateway key and the endpoint, `,_jsx(_components.code,{children:`https://my.orq.ai/v3/mcp/\u003cgateway-key>`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`At least one `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-servers`,children:_jsx(_components.strong,{children:`MCP Server`})}),` is linked to it, with the tools, resources and prompts the client needs exposed.`]}),`\n`,_jsxs(_components.li,{children:[`The client is registered with that endpoint, either by the `,_jsx(_components.code,{children:`npx add-mcp`}),` command from the `,_jsx(_components.strong,{children:`Connect`}),` section or by adding the endpoint to the client’s own configuration.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`npx add-mcp`}),` writes the URL into the clients it detects, and the sign-in itself belongs to the client: Claude Code signs in from `,_jsx(_components.code,{children:`/mcp`}),`, Codex needs `,_jsx(_components.code,{children:`codex mcp login`}),` before it authenticates, and Claude Desktop has to be added through `,_jsx(_components.strong,{children:`Settings → Connectors`}),`, which the command cannot write.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The examples below use `,_jsx(_components.code,{children:`https://my.orq.ai`}),` as the default host. For self-hosted or on-premise deployments, replace this with the base URL configured for your deployment. The API’s `,_jsx(_components.code,{children:`public_url`}),` field returns the full connect endpoint (which may be relative when no public base URL is configured).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication-methods`,children:`Authentication methods`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`OAuth`,icon:`right-to-bracket`,href:`#oauth`,children:_jsx(_components.p,{children:`Default. Browser sign-in for interactive clients.`})}),_jsx(Card,{title:`Client credentials`,icon:`key`,href:`#client-credentials`,children:_jsx(_components.p,{children:`Short-lived tokens with no user present. For services and automations.`})}),_jsx(Card,{title:`Enterprise-managed authorization`,icon:`building-shield`,href:`#enterprise-managed-authorization`,children:_jsx(_components.p,{children:`The identity provider issues an ID-JAG, with no consent screen.`})}),_jsx(Card,{title:`API key`,icon:`key`,href:`#api-key`,children:_jsx(_components.p,{children:`A bearer token in the client configuration. For headless clients.`})}),_jsx(Card,{title:`Gateway-only SSO`,icon:`user-shield`,href:`/ai-studio/organization/gateway-sso`,children:_jsx(_components.p,{children:`Entra ID or Okta without a workspace seat. Enterprise plan.`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`access-token-lifetimes`,children:`Access token lifetimes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Access token lifetime`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`#oauth`,children:`OAuth`})}),_jsx(_components.td,{children:`Up to 30 minutes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`#client-credentials`,children:`Client credentials`})}),_jsx(_components.td,{children:`10 minutes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`#enterprise-managed-authorization`,children:`Enterprise-managed authorization`})}),_jsx(_components.td,{children:`15 minutes`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`When calling an `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-servers#enterprise-managed-authorization`,children:`enterprise-managed server`}),`, use gateway OAuth or a user-owned API key whose owner has signed in through SSO. Service-account keys and federation-minted keys cannot supply the required user identity. Sign in again after an admin enables `,_jsx(_components.a,{href:`/ai-studio/organization/sso#cross-app-access`,children:`Cross App Access`}),`, or when a call returns `,_jsx(_components.code,{children:`ENTERPRISE_AUTH_REAUTH_REQUIRED`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`oauth`,children:`OAuth`}),`\n`,_jsx(_components.p,{children:`OAuth is the default. The client signs in through the browser and receives a token scoped to this MCP Gateway and to the person who signed in, so no workspace API key is stored in the client configuration.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`This flow authenticates MCP clients to the MCP Gateway. The credentials the gateway uses to reach each upstream `,_jsx(_components.strong,{children:`MCP Server`}),` are configured on the server itself. See `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-servers`,children:`MCP Servers`}),`.`]})}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Set up the client`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Connect`}),` section on the `,_jsx(_components.strong,{children:`Overview`}),` tab shows the gateway key and this command. Copy it from there, or run it with `,_jsx(_components.code,{children:`\u003cgateway-key>`}),` replaced:`]}),_jsx(Frame,{caption:`Connect section on the MCP Gateway Overview tab`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-connect-oauth.png?fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=b2b8ea41b21924f97f5140de748961e6`,alt:`Connect section showing the npx add-mcp command for the MCP Gateway URL and a copy button`,loading:`lazy`,\"data-og-width\":`1368`,width:`1368`,\"data-og-height\":`148`,height:`148`,\"data-path\":`images/mcp-connect-oauth.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-connect-oauth.png?w=280\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=6d6bb72bf8fec07d2cc6cc3d3efb61dc 280w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-connect-oauth.png?w=560\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=b0350fa96d660018ea681a69e69e9d7d 560w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-connect-oauth.png?w=840\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=89c3a2d3b67d8de0aded4845208ee327 840w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-connect-oauth.png?w=1100\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=e99f0ef8836691ff949b89254e6ac059 1100w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-connect-oauth.png?w=1650\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=57ab8767a095d946861857d6efefc6d7 1650w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-connect-oauth.png?w=2500\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=d24ad8f23a890d050a43ae7826591432 2500w`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`npx`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` add-mcp`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v3/mcp/`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --name`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Register the MCP Gateway directly in the client, replacing `,_jsx(_components.code,{children:`\u003cgateway-key>`}),` with the gateway key from the `,_jsx(_components.strong,{children:`Connect`}),` section:`]}),_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Claude Code`,icon:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=9c93c180bda1751966487024f7d86e62`,\"data-og-width\":`61`,width:`61`,\"data-og-height\":`43`,height:`43`,\"data-path\":`images/logos/claude-code.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=b1eba96e78fc117c67201ee326b307b4 280w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=8b73579743c454c885a511ed9ee53e71 560w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=00784eb02c732bd7a9fbc2fd8afd695f 840w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=037b3f58aa3826368aed55a88a02bd30 1100w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=57b89f9b7a9195c0d88ffc89d6e6533a 1650w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=3ec67bf119d4f17cb8d9c96ae6a06ab5 2500w`,id:`claude-code`,children:[_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`claude`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` mcp`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` add`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --transport`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` http`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v3/mcp/`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Claude Code opens the browser for approval on first use. Confirm with `,_jsx(_components.code,{children:`claude mcp list`}),`.`]})]}),_jsxs(Tab,{title:`Cursor`,icon:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=250e8f79ec060ba53dcdf1d06271eb2f`,\"data-og-width\":`24`,width:`24`,\"data-og-height\":`24`,height:`24`,\"data-path\":`images/logos/cursor.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=e35119b9bb20c895b930321145208eb8 280w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=11f87718d6e960c2c7a8c72019f300ce 560w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=be58ec741c3d929f2a735d24304af2c4 840w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=4b9965067c8232091a54dd8c8e7ae3c4 1100w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=d43e390b4c3f2641f53d98a453f9d6bd 1650w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=7817d6ba223025d5609755e20779df86 2500w`,id:`cursor`,children:[_jsxs(_components.p,{children:[`Add the MCP Gateway in `,_jsx(_components.strong,{children:`Cursor Settings → Tools \u0026 MCP → New MCP Server`}),` and paste:`]}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"mcpServers\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"\u003cgateway-key>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://my.orq.ai/v3/mcp/\u003cgateway-key>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:`Save the configuration and complete the browser approval when Cursor prompts for it.`})]}),_jsxs(Tab,{title:`Codex`,icon:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=97deb6c65f9c153912cf47db8cd08864`,\"data-og-width\":`256`,width:`256`,\"data-og-height\":`260`,height:`260`,\"data-path\":`images/logos/codex.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=d08741797198ec5fd5aa7cd80bf54838 280w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=88633b5d53b2a4f8d49a0359036b3a1b 560w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=3af33d9d429cda28bd2540593ee17f77 840w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=b180c3703aefdd8dfa22d55887b96b44 1100w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=b5805a7fa6028782900c8b75b3d30caa 1650w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=99ca2cc760722dc516c2f3a56b915f28 2500w`,id:`codex`,children:[_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`codex`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` mcp`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` add`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --url`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v3/mcp/`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Run `,_jsx(_components.code,{children:`codex mcp login \u003cgateway-key>`}),` to complete the browser approval.`]})]}),_jsxs(Tab,{title:`VS Code`,icon:`https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=3df2b711f182054091646c57f53a1ce8`,\"data-og-width\":`24`,width:`24`,\"data-og-height\":`24`,height:`24`,\"data-path\":`images/logos/vscode.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=280\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=9f99fe4790041a240a66feddcf2030f6 280w, https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=560\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=45ce8defaa3aa3772179cbf2d4b442ac 560w, https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=840\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=2c77410f0a2bee692fb163501b546dbb 840w, https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=7ba592ecd741ae98596346329b3afce8 1100w, https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=c25059f7152683fb38455d12185e242a 1650w, https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=5632ade12593731d43e1dfa2a945d195 2500w`,id:`vs-code`,children:[_jsxs(_components.p,{children:[`Add the MCP Gateway with the `,_jsx(_components.strong,{children:`MCP: Add Server`}),` command, select `,_jsx(_components.strong,{children:`HTTP (HTTP or Server-Sent Events)`}),`, and enter `,_jsx(_components.code,{children:`https://my.orq.ai/v3/mcp/\u003cgateway-key>`}),` as the server URL. VS Code writes a `,_jsx(_components.code,{children:`.vscode/mcp.json`}),`:`]}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"servers\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"\u003cgateway-key>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://my.orq.ai/v3/mcp/\u003cgateway-key>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"http\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:`VS Code registers through a client metadata document, so no client ID or secret is provisioned. It opens the browser for approval on first connect.`})]}),_jsxs(Tab,{title:`Claude Desktop`,icon:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-desktop.svg?fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=bd23d4a797113ee0a6aa72fb56801d67`,\"data-og-width\":`61`,width:`61`,\"data-og-height\":`43`,height:`43`,\"data-path\":`images/logos/claude-desktop.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-desktop.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=16d948cc3249b029f0944b36aae4cbe6 280w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-desktop.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=aaf10abe137f3ac3236446d7daff5444 560w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-desktop.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=6fbcbcb9616425d01ab7e1332502ab5a 840w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-desktop.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=741ccd45b79c17edfeb941465e722064 1100w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-desktop.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=479b5ba3bce3cdf1b53761ebf1c18b2a 1650w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-desktop.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=0b080a5fe792e61f5bb8150ffad9b0cc 2500w`,id:`claude-desktop`,children:[_jsxs(_components.p,{children:[`Open `,_jsx(_components.strong,{children:`Settings → Connectors`}),`, then `,_jsx(_components.strong,{children:`Add connector → Add custom connector`}),`. Name it after the gateway and set the server URL to `,_jsx(_components.code,{children:`https://my.orq.ai/v3/mcp/\u003cgateway-key>`}),`.`]}),_jsxs(_components.p,{children:[`Leave the request headers empty and choose `,_jsx(_components.strong,{children:`Sign in now`}),` with `,_jsx(_components.strong,{children:`Register automatically`}),`, so the connector authenticates through OAuth. The setup mirrors `,_jsx(_components.a,{href:`/ai-studio/integrations/chat-interfaces/claude-desktop#orq-mcp`,children:`Claude Desktop`}),`, with the gateway URL in place of the Orq MCP server URL.`]}),_jsxs(_components.p,{children:[`In a Team or Enterprise organization, an owner or administrator adds the connector once, and members enable it from `,_jsx(_components.strong,{children:`+ → Connectors`}),`.`]})]})]})]}),_jsxs(Step,{title:`Approve access`,children:[_jsxs(_components.p,{children:[`On first use the client opens the browser. The approval page names the client and the MCP Gateway it is requesting access to. Click `,_jsx(`kbd`,{className:`key`,children:`Approve`}),` to issue the token, or `,_jsx(`kbd`,{className:`key`,children:`Deny`}),` to reject the request.`]}),_jsx(Frame,{caption:`Approval page for an MCP client requesting access to a gateway`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-client-approval.png?fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=bf20a117c9b74feb4645c70cf865fa73`,alt:`Approval page showing an MCP client requesting access, with Details listing the agent, account, gateway, and redirect URL above the Deny and Approve buttons`,loading:`lazy`,\"data-og-width\":`566`,width:`566`,\"data-og-height\":`507`,height:`507`,\"data-path\":`images/mcp-client-approval.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-client-approval.png?w=280\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=09da770a7909e5c5cd60d6a37981a5a3 280w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-client-approval.png?w=560\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=fcf7e812cbfa74bc06186f60a884dbe4 560w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-client-approval.png?w=840\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=a771eb7e6872aad4b7109f44b527ddae 840w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-client-approval.png?w=1100\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=9f50196f7b7c02ae2afc1407b1f677df 1100w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-client-approval.png?w=1650\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=070e6c11442054d1898cb4953390b2c1 1650w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-client-approval.png?w=2500\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=1dcbb139f225d3b47eafe399a3114005 2500w`})})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Manage authorized clients`})}),`\n`,_jsxs(_components.p,{children:[`Every authorized client appears on the `,_jsx(_components.strong,{children:`Clients`}),` tab with the client name, when it authenticated, and who created it. Choose `,_jsx(_components.strong,{children:`Revoke access`}),` from a client’s menu to stop the client refreshing its token; the access token it already holds stays valid until it expires, up to 30 minutes.`]}),`\n`,_jsxs(_components.p,{children:[`The accounts behind those sign-ins are listed per workspace under `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-servers#per-user-oauth`,children:`Connections`}),`, where an admin can disconnect one.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Revoking a client and disconnecting a Connection are console-only steps.`})}),`\n`,_jsx(Frame,{caption:`Clients tab on an MCP Gateway listing authorized MCP clients`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-gateway-clients.png?fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=ce3084e70085fb3a9a7b50065dc76c08`,alt:`MCP Gateway Clients tab listing one authorized client with Client, Authenticated at, and Created by columns`,loading:`lazy`,\"data-og-width\":`1447`,width:`1447`,\"data-og-height\":`500`,height:`500`,\"data-path\":`images/mcp-gateway-clients.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-gateway-clients.png?w=280\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=04a768cec07b41adf60644c9f058ab17 280w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-gateway-clients.png?w=560\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=2f2a6dc89c958ee1e59a1b63e6aab2dc 560w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-gateway-clients.png?w=840\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=a0fe4116d86ffcc82956fea53166d642 840w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-gateway-clients.png?w=1100\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=8ece84cbbd80dd98925f71e91152ee6d 1100w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-gateway-clients.png?w=1650\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=83ae38caaa9ab65fae1e79e854dab868 1650w, https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-gateway-clients.png?w=2500\u0026fit=max\u0026auto=format\u0026n=17JRgiuim9pknmXk\u0026q=85\u0026s=d3490fb4bf4563dea9f217062effb944 2500w`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`How sign-in works`})}),`\n`,_jsx(_components.p,{children:`The MCP Gateway implements the MCP authorization specification on top of OAuth 2.0:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Discovery`}),`: an unauthenticated request to the gateway returns `,_jsx(_components.code,{children:`401`}),` with a `,_jsx(_components.code,{children:`WWW-Authenticate`}),` header pointing at the gateway’s metadata documents. The protected-resource document at `,_jsx(_components.code,{children:`/.well-known/oauth-protected-resource/v3/mcp/\u003cgateway-key>`}),` names the authorization server; the authorization-server document at `,_jsx(_components.code,{children:`/.well-known/oauth-authorization-server/v2/auth/mcp`}),`, which serves every gateway, lists its endpoints.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dynamic client registration`}),`: the client registers at the authorization server’s registration endpoint, so no client ID or secret needs provisioning in advance.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Authorization code with PKCE`}),`: sign-in uses the authorization code flow with Proof Key for Code Exchange (PKCE) and the `,_jsx(_components.code,{children:`S256`}),` challenge method, which binds the authorization code to the client that requested it.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The token carries the scopes the client requested, `,_jsx(_components.code,{children:`mcp:tools`}),` and `,_jsx(_components.code,{children:`mcp:resources`}),` by default, on this MCP Gateway only. Request `,_jsx(_components.code,{children:`mcp:prompts`}),` to reach the gateway’s prompts, since the default pair does not include it. A client registered with the `,_jsx(_components.code,{children:`refresh_token`}),` grant refreshes it without another sign-in until access is revoked, and a refresh token lasts 7 days; any other client signs in again when the token expires. Each refresh replaces the refresh token; presenting a replaced one more than 60 seconds later revokes the client’s access, and the person signs in again.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Authorization server metadata`})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`/.well-known/oauth-authorization-server/v2/auth/mcp`}),` advertises:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Values`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`grant_types_supported`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`authorization_code`}),`, `,_jsx(_components.code,{children:`refresh_token`}),`, `,_jsx(_components.code,{children:`client_credentials`}),`, `,_jsx(_components.code,{children:`urn:ietf:params:oauth:grant-type:jwt-bearer`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`token_endpoint_auth_methods_supported`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`client_secret_basic`}),`, `,_jsx(_components.code,{children:`client_secret_post`}),`, `,_jsx(_components.code,{children:`private_key_jwt`}),`, `,_jsx(_components.code,{children:`none`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`token_endpoint_auth_signing_alg_values_supported`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`RS256`}),`, `,_jsx(_components.code,{children:`PS256`}),`, `,_jsx(_components.code,{children:`ES256`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`client_id_metadata_document_supported`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`authorization_grant_profiles_supported`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`urn:ietf:params:oauth:grant-profile:id-jag`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`jwks_uri`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\u003cissuer>/jwks.json`}),`, the keys that sign client credentials and ID-JAG access tokens`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`client-credentials`,children:`Client credentials`}),`\n`,_jsx(_components.p,{children:`A pre-registered client authenticates as itself and receives a 10-minute access token bound to one MCP Gateway, without a browser or a refresh token. The client is its own principal and has the same access settings as an API key: project and permissions.`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Register the client`,children:[_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Settings → API Keys → OAuth Clients`}),`, click `,_jsx(_components.strong,{children:`+ Client`}),`. Choose the `,_jsx(_components.strong,{children:`Client credentials`}),` grant, the access (project and permissions), and how the client authenticates:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Client secret (Basic)`}),` or `,_jsx(_components.strong,{children:`Client secret (POST)`}),`: the secret is shown once after creation. Use `,_jsx(_components.strong,{children:`Rotate secret`}),` to replace it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Private key JWT`}),`: paste a JSON Web Key Set or a JWKS URL with the public keys. The client signs RFC 7523 assertions with `,_jsx(_components.code,{children:`RS256`}),`, `,_jsx(_components.code,{children:`PS256`}),` or `,_jsx(_components.code,{children:`ES256`}),`.`]}),`\n`]}),_jsx(_components.p,{children:`Only workspace Admins can register, edit, or delete clients, and these actions are console-only. The client’s permissions must include MCP Gateway execution, which new clients have by default.`}),_jsxs(_components.p,{children:[`Each client has a managed API key behind it, shown as `,_jsx(_components.strong,{children:`Managed`}),` on the `,_jsx(_components.strong,{children:`API Keys`}),` page; it cannot be used, edited or deleted there.`]}),_jsxs(_components.p,{children:[`Disabling or deleting the client revokes it. A gateway’s `,_jsx(_components.strong,{children:`Clients`}),` tab lists the OAuth clients that can reach it.`]})]}),_jsxs(Step,{title:`Request a token`,children:[_jsxs(_components.p,{children:[`Send the gateway URL as the RFC 8707 `,_jsx(_components.code,{children:`resource`}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/auth/mcp/token`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -u`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$CLIENT_ID`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$CLIENT_SECRET`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` grant_type=client_credentials`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` resource=https://my.orq.ai/v3/mcp/`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"scope=mcp:tools mcp:resources\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`The response carries `,_jsx(_components.code,{children:`access_token`}),`, `,_jsx(_components.code,{children:`token_type`}),`, `,_jsx(_components.code,{children:`expires_in`}),` and the granted `,_jsx(_components.code,{children:`scope`}),`. Send the token as `,_jsx(_components.code,{children:`Authorization: Bearer \u003caccess_token>`}),` and request a new one before it expires.`]})]}),_jsxs(Step,{title:`Authenticate with private_key_jwt`,children:[_jsxs(_components.p,{children:[`Sign a JWT assertion with the client’s registered key. The assertion carries `,_jsx(_components.code,{children:`iss`}),` and `,_jsx(_components.code,{children:`sub`}),` set to the client ID, `,_jsx(_components.code,{children:`aud`}),` set to the token endpoint, `,_jsx(_components.code,{children:`iat`}),`, an `,_jsx(_components.code,{children:`exp`}),` within five minutes, and a unique `,_jsx(_components.code,{children:`jti`}),`; the header names the registered key in `,_jsx(_components.code,{children:`kid`}),`. Sign with `,_jsx(_components.code,{children:`RS256`}),`, `,_jsx(_components.code,{children:`PS256`}),`, or `,_jsx(_components.code,{children:`ES256`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/auth/mcp/token`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` grant_type=client_credentials`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` client_id=\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$CLIENT_ID`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` client_assertion_type=\"urn:ietf:params:oauth:grant-type:jwt-bearer\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` client_assertion=\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$CLIENT_ASSERTION`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` resource=https://my.orq.ai/v3/mcp/`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"scope=mcp:tools mcp:resources\"`})]}),`\n`]})})})]})]}),`\n`,_jsxs(_components.p,{children:[`A client can also register through a client metadata document instead of out-of-band registration. Set `,_jsx(_components.code,{children:`client_id`}),` to an HTTPS URL with a path; the URL must return a JSON document with the same `,_jsx(_components.code,{children:`client_id`}),`, a `,_jsx(_components.code,{children:`client_name`}),`, `,_jsx(_components.code,{children:`authorization_code`}),` in `,_jsx(_components.code,{children:`grant_types`}),`, `,_jsx(_components.code,{children:`redirect_uris`}),`, and `,_jsx(_components.code,{children:`token_endpoint_auth_method`}),` set to `,_jsx(_components.code,{children:`none`}),` or `,_jsx(_components.code,{children:`private_key_jwt`}),`. A `,_jsx(_components.code,{children:`private_key_jwt`}),` document carries exactly one of `,_jsx(_components.code,{children:`jwks`}),` or `,_jsx(_components.code,{children:`jwks_uri`}),`, and the document cannot contain `,_jsx(_components.code,{children:`client_secret`}),`.`]}),`\n`,_jsx(_components.p,{children:`With the TypeScript MCP SDK, the providers run discovery and the token request:`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`Client secret`,id:`client-secret`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { Client } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@modelcontextprotocol/sdk/client/index.js'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { ClientCredentialsProvider } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@modelcontextprotocol/sdk/client/auth-extensions.js'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { StreamableHTTPClientTransport } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@modelcontextprotocol/sdk/client/streamableHttp.js'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` authProvider`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` ClientCredentialsProvider`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` clientId: process.env.`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`ORQ_MCP_CLIENT_ID`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`!`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` clientSecret: process.env.`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`ORQ_MCP_CLIENT_SECRET`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`!`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` expectedIssuer: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'https://my.orq.ai/v2/auth/mcp'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` transport`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` StreamableHTTPClientTransport`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` URL`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'https://my.orq.ai/v3/mcp/\u003cgateway-key>'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { authProvider },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` client`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Client`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ name: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'nightly-sync'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, version: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'1.0.0'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`connect`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(transport);`})]}),`\n`]})})})}),_jsxs(Tab,{title:`Private key JWT`,id:`private-key-jwt`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { PrivateKeyJwtProvider } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@modelcontextprotocol/sdk/client/auth-extensions.js'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` authProvider`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` PrivateKeyJwtProvider`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` clientId: process.env.`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`ORQ_MCP_CLIENT_ID`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`!`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` privateKey: process.env.`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`ORQ_MCP_CLIENT_PRIVATE_KEY`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`!`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` algorithm: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'RS256'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` expectedIssuer: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'https://my.orq.ai/v2/auth/mcp'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Pass `,_jsx(_components.code,{children:`authProvider`}),` to `,_jsx(_components.code,{children:`StreamableHTTPClientTransport`}),` as in the client secret example.`]})]}),_jsxs(Tab,{title:`Python`,id:`python`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` httpx`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`response `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` httpx.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"https://my.orq.ai/v2/auth/mcp/token\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` auth`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`CLIENT_ID`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`CLIENT_SECRET`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` data`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"grant_type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"client_credentials\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"resource\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://my.orq.ai/v3/mcp/\u003cgateway-key>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"scope\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"mcp:tools mcp:resources\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`access_token `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` response.json()[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"access_token\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`]`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`access_token`}),` as a bearer token from any MCP client.`]})]})]}),`\n`,_jsxs(_components.p,{children:[`Choose client credentials over an `,_jsx(_components.a,{href:`#api-key`,children:`API key`}),` when the credential must stay short-lived, use a private key instead of a shared secret, or have its access managed with the client rather than with a long-lived key.`]}),`\n`,_jsx(Heading,{level:`2`,id:`enterprise-managed-authorization`,children:`Enterprise-managed authorization`}),`\n`,_jsxs(_components.p,{children:[`Available with the `,_jsx(_components.a,{href:`https://orq.ai/solutions/enterprise`,children:`Enterprise Plan`}),`. The company identity provider decides which users may use which MCP clients. A client signed in through SSO asks the identity provider for an Identity Assertion JWT Authorization Grant (ID-JAG) and exchanges it at `,_jsx(_components.strong,{children:`Orq.ai`}),` for a gateway token, so the user never sees the approval page.`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Connect the identity provider`,children:_jsxs(_components.p,{children:[`Set up the SSO connection first: `,_jsx(_components.a,{href:`/ai-studio/organization/sso#connect-a-provider`,children:`Configure SSO`}),`.`]})}),_jsx(Step,{title:`Trust the identity provider`,children:_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Settings → Auth`}),`, open the SSO connection and turn on `,_jsx(_components.strong,{children:`Accept ID-JAGs from this identity provider`}),` under `,_jsx(_components.a,{href:`/ai-studio/organization/sso#id-jag-trust`,children:`ID-JAG trust`}),`. List the `,_jsx(_components.strong,{children:`Allowed clients`}),`: pre-registered client IDs or Client ID Metadata Document URLs. `,_jsx(_components.strong,{children:`Scopes`}),` optionally limit what they may request. OIDC connections trust the SSO issuer only; SAML connections need the `,_jsx(_components.strong,{children:`Issuer URL`}),` the identity provider puts in its ID-JAGs.`]})}),_jsxs(Step,{title:`Configure the identity provider`,children:[_jsxs(_components.p,{children:[`Register the MCP client at the identity provider and allow token exchange for `,_jsx(_components.strong,{children:`Orq.ai`}),`. The ID-JAG must use:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`aud`}),`: the authorization server issuer, `,_jsx(_components.code,{children:`https://my.orq.ai/v2/auth/mcp`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`resource`}),`: the gateway URL, `,_jsx(_components.code,{children:`https://my.orq.ai/v3/mcp/\u003cgateway-key>`}),`, or omit it and send `,_jsx(_components.code,{children:`resource`}),` in the token request.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`client_id`}),`: the client’s ID at `,_jsx(_components.strong,{children:`Orq.ai`}),`.`]}),`\n`]})]}),_jsxs(Step,{title:`Exchange the ID-JAG`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/auth/mcp/token`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -u`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$CLIENT_ID`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`:`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$CLIENT_SECRET`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` assertion=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ID_JAG `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` resource=https://my.orq.ai/v3/mcp/`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`The 15-minute token acts as the linked user, with that user’s roles and project access. Only a pre-registered client or a client registered through a metadata document, with full access, can reach the `,_jsx(_components.a,{href:`/ai-studio/integrations/code-assistants/orq-mcp`,children:`Orq MCP Server`}),` at `,_jsx(_components.code,{children:`/v2/mcp`}),`. The sample authenticates a pre-registered client with a secret; a metadata-document client sends its `,_jsx(_components.code,{children:`client_id`}),` and, with `,_jsx(_components.code,{children:`private_key_jwt`}),`, a `,_jsx(_components.code,{children:`client_assertion`}),`, and has no client secret. There is no refresh token: request a new ID-JAG when it expires.`]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Account linking`})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Orq.ai`}),` links the ID-JAG `,_jsx(_components.code,{children:`sub`}),` to an account the first time it sees it, and reuses that link afterwards. On first use the ID-JAG must carry `,_jsx(_components.code,{children:`email_verified: true`}),` and an `,_jsx(_components.code,{children:`email`}),` in one of the SSO connection’s allowed domains that matches an account already in the workspace. `,_jsx(_components.strong,{children:`Orq.ai`}),` never creates accounts or memberships from an ID-JAG; a request with no matching member is rejected with `,_jsx(_components.code,{children:`invalid_grant`}),`. Changing the connection’s issuer clears its links.`]}),`\n`,_jsx(_components.p,{children:`Each ID-JAG is accepted once, must live 10 minutes or less, and is checked against the identity provider’s published keys.`}),`\n`,_jsx(Heading,{level:`2`,id:`claude-connectors`,children:`Claude connectors`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://claude.com/docs/connectors/building/enterprise-managed-auth`,children:`Claude Enterprise Managed Auth`}),` lets members of a Claude organization use an MCP Gateway as a connector without an approval page. Claude signs the ID-JAG under an issuer URL that belongs to that organization, so no SSO connection is needed.`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Verify the email domain`,children:_jsxs(_components.p,{children:[`Verify the members’ email domain in the `,_jsx(_components.a,{href:`/ai-studio/organization/workspace-security#domains`,children:`workspace security settings`}),`. `,_jsx(_components.strong,{children:`Orq.ai`}),` only matches addresses on a verified domain.`]})}),_jsx(Step,{title:`Copy the issuer URL`,children:_jsxs(_components.p,{children:[`In Claude, open the connector’s `,_jsx(_components.strong,{children:`Managed authorization`}),` setup, choose `,_jsx(_components.strong,{children:`Claude-issued`}),` as the identity source, and copy the `,_jsx(_components.strong,{children:`Issuer URL`}),`. It looks like `,_jsx(_components.code,{children:`https://identity.anthropic.com/issuers/\u003cissuer-id>`}),`.`]})}),_jsxs(Step,{title:`Register the issuer`,children:[_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Settings`}),` > `,_jsx(_components.strong,{children:`Security`}),` > `,_jsx(_components.strong,{children:`Workload federation`}),`, open the `,_jsx(_components.strong,{children:`Connect`}),` menu and choose `,_jsx(_components.strong,{children:`Register issuer`}),`, then select `,_jsx(_components.strong,{children:`Claude`}),` as the provider. Paste the `,_jsx(_components.strong,{children:`Issuer URL`}),` exactly as Claude shows it, trailing slash included, and keep `,_jsx(_components.strong,{children:`Allow ID-JAG sign-in to MCP gateways`}),` on.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Allowed client IDs`}),` starts with Claude’s Client ID Metadata Document URL, `,_jsx(_components.code,{children:`https://claude.ai/oauth/mcp-oauth-client-metadata`}),`. Add the ID of a pre-registered client when the connector uses one; it needs the JWT bearer grant. Dynamic Client Registration clients cannot redeem ID-JAGs.`]})]}),_jsx(Step,{title:`Set the tenant ID`,children:_jsxs(_components.p,{children:[`Copy `,_jsx(_components.strong,{children:`Tenant ID for Claude`}),` from the issuer into the `,_jsx(_components.strong,{children:`Tenant ID`}),` field of Claude’s managed authorization setup. An ID-JAG that carries it is accepted only by this workspace.`]})}),_jsx(Step,{title:`Run the connection test`,children:_jsxs(_components.p,{children:[`Add the gateway URL, `,_jsx(_components.code,{children:`https://my.orq.ai/v3/mcp/\u003cgateway-key>`}),`, as a connector in Claude and click `,_jsx(_components.strong,{children:`Run test`}),` under `,_jsx(_components.strong,{children:`Connection status`}),`.`]})})]}),`\n`,_jsx(_components.p,{children:`Workspaces of the same organization can register the same issuer, and the tenant ID picks the workspace. Without a tenant ID, the gateway in the token request picks it, and a gateway key that exists in more than one of those workspaces is refused. A workspace in another organization cannot register an issuer that is already in use.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Orq.ai`}),` matches the whole `,_jsx(_components.code,{children:`email`}),` against the workspace’s members on every request, ignoring case, and rejects any address that is not on a verified domain. It does not use `,_jsx(_components.code,{children:`sub`}),`, and it never creates accounts or memberships.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`A Claude-issued ID-JAG proves that the user belongs to the Claude organization. It does not prove that they signed in through SSO or used multi-factor authentication.`})}),`\n`,_jsx(_components.p,{children:`Tokens last 15 minutes with no refresh token, and Claude requests a new ID-JAG when one expires. A user removed from the Claude organization keeps access until the current token expires.`}),`\n`,_jsx(Heading,{level:`2`,id:`api-key`,children:`API key`}),`\n`,_jsxs(_components.p,{children:[`Pass an `,_jsx(_components.a,{href:`/ai-gateway/configuration/api-keys`,children:`API key`}),` as a bearer token instead of signing in. Use a `,_jsx(_components.a,{href:`/ai-gateway/configuration/api-keys#user-keys`,children:`user key`}),` for a person, so access ends with their membership, or a service-account key for a deployment that must outlive the person who set it up. Set `,_jsx(_components.code,{children:`ORQ_API_KEY`}),`, then register the MCP Gateway:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`npx`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` add-mcp`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v3/mcp/`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --name`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --header`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Claude Code`,icon:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=9c93c180bda1751966487024f7d86e62`,\"data-og-width\":`61`,width:`61`,\"data-og-height\":`43`,height:`43`,\"data-path\":`images/logos/claude-code.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=b1eba96e78fc117c67201ee326b307b4 280w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=8b73579743c454c885a511ed9ee53e71 560w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=00784eb02c732bd7a9fbc2fd8afd695f 840w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=037b3f58aa3826368aed55a88a02bd30 1100w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=57b89f9b7a9195c0d88ffc89d6e6533a 1650w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/claude-code.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=3ec67bf119d4f17cb8d9c96ae6a06ab5 2500w`,id:`claude-code-2`,children:[_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`claude`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` mcp`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` add`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --transport`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` http`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v3/mcp/`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --header`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:' \"Authorization: Bearer ${'}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`}\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`ORQ_API_KEY`}),` before running the command. Confirm with `,_jsx(_components.code,{children:`claude mcp list`}),`.`]})]}),_jsxs(Tab,{title:`Cursor`,icon:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=250e8f79ec060ba53dcdf1d06271eb2f`,\"data-og-width\":`24`,width:`24`,\"data-og-height\":`24`,height:`24`,\"data-path\":`images/logos/cursor.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=e35119b9bb20c895b930321145208eb8 280w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=11f87718d6e960c2c7a8c72019f300ce 560w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=be58ec741c3d929f2a735d24304af2c4 840w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=4b9965067c8232091a54dd8c8e7ae3c4 1100w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=d43e390b4c3f2641f53d98a453f9d6bd 1650w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/cursor.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=7817d6ba223025d5609755e20779df86 2500w`,id:`cursor-2`,children:[_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"mcpServers\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"\u003cgateway-key>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://my.orq.ai/v3/mcp/\u003cgateway-key>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"headers\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Bearer YOUR_ORQ_API_KEY\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_ORQ_API_KEY`}),` with an API key. Save the configuration; the server connects and shows a green indicator.`]})]}),_jsxs(Tab,{title:`Codex`,icon:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=97deb6c65f9c153912cf47db8cd08864`,\"data-og-width\":`256`,width:`256`,\"data-og-height\":`260`,height:`260`,\"data-path\":`images/logos/codex.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=d08741797198ec5fd5aa7cd80bf54838 280w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=88633b5d53b2a4f8d49a0359036b3a1b 560w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=3af33d9d429cda28bd2540593ee17f77 840w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=b180c3703aefdd8dfa22d55887b96b44 1100w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=b5805a7fa6028782900c8b75b3d30caa 1650w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/codex.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=99ca2cc760722dc516c2f3a56b915f28 2500w`,id:`codex-2`,children:[_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`codex`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` mcp`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` add`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --url`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v3/mcp/`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-ke`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`y`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --bearer-token-env-var`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ORQ_API_KEY`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Export `,_jsx(_components.code,{children:`ORQ_API_KEY`}),` in the shell that launches Codex.`]})]}),_jsxs(Tab,{title:`VS Code`,icon:`https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=3df2b711f182054091646c57f53a1ce8`,\"data-og-width\":`24`,width:`24`,\"data-og-height\":`24`,height:`24`,\"data-path\":`images/logos/vscode.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=280\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=9f99fe4790041a240a66feddcf2030f6 280w, https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=560\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=45ce8defaa3aa3772179cbf2d4b442ac 560w, https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=840\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=2c77410f0a2bee692fb163501b546dbb 840w, https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=7ba592ecd741ae98596346329b3afce8 1100w, https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=c25059f7152683fb38455d12185e242a 1650w, https://mintcdn.com/orqai/oquNU-jylMLzjGXD/images/logos/vscode.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=oquNU-jylMLzjGXD\u0026q=85\u0026s=5632ade12593731d43e1dfa2a945d195 2500w`,id:`vs-code-2`,children:[_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"inputs\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"promptString\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"orq-api-key\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Orq.ai API Key\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"password\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"servers\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"\u003cgateway-key>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://my.orq.ai/v3/mcp/\u003cgateway-key>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"http\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"headers\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:'\"Bearer ${input:orq-api-key}\"'})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:`VS Code prompts for the API key on first connect and stores it in the OS secret store.`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`sessions`,children:`Sessions`}),`\n`,_jsx(_components.p,{children:`Each MCP request stands on its own. There is no gateway session for a client to initialize, keep alive, resume after a reconnect, or clean up.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Connect clients","sidebarTitle":"Connect clients","description":"Register MCP clients with a gateway and choose how they authenticate.","href":"/ai-gateway/mcp-portal/mcp-gateways/connect-clients"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication methods","slug":"authentication-methods","depth":2,"children":[{"title":"Access token lifetimes","slug":"access-token-lifetimes","depth":3,"children":[]}]},{"title":"OAuth","slug":"oauth","depth":2,"children":[]},{"title":"Client credentials","slug":"client-credentials","depth":2,"children":[]},{"title":"Enterprise-managed authorization","slug":"enterprise-managed-authorization","depth":2,"children":[]},{"title":"Claude connectors","slug":"claude-connectors","depth":2,"children":[]},{"title":"API key","slug":"api-key","depth":2,"children":[]},{"title":"Sessions","slug":"sessions","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/orqai/41867e13ebfaa3ff/gtm.js","/_mintlify/custom/orqai/1f1a49b99957b631/commonroom-signals.js"],"subdomain":"orqai","siteName":"Orq.ai Documentation","title":"Connect clients - Orq.ai Documentation","contextualStarterQuestions":[{"_id":"6b0e9ea749e015cdc2c71b53","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"How do I register an MCP client?","status":"active","generatedBy":"contextual","path":"ai-gateway/mcp-portal/mcp-gateways/connect-clients","createdAt":"2026-12-01T10:17:11.383Z","updatedAt":"2026-12-01T10:17:11.383Z","__v":0},{"_id":"6b0e9ea749e015cdc2c71b54","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"What auth methods are available?","status":"active","generatedBy":"contextual","path":"ai-gateway/mcp-portal/mcp-gateways/connect-clients","createdAt":"2026-12-01T10:17:11.383Z","updatedAt":"2026-12-01T10:17:11.383Z","__v":0},{"_id":"6b0e9ea749e015cdc2c71b55","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"How does npx add-mcp work?","status":"active","generatedBy":"contextual","path":"ai-gateway/mcp-portal/mcp-gateways/connect-clients","createdAt":"2026-12-01T10:17:11.383Z","updatedAt":"2026-12-01T10:17:11.383Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T10:17:05.690Z","originalFileLocation":"ai-gateway/mcp-portal/mcp-gateways/connect-clients.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Register MCP clients with a gateway and choose how they authenticate.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connect clients - Orq.ai Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Register MCP clients with a gateway and choose how they authenticate.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://orqai.mintlify.site/_mintlify/api/og/v2?division=MCP+Portal\u0026amp;title=Connect+clients\u0026amp;description=Register+MCP+clients+with+a+gateway+and+choose+how+they+authenticate.\u0026amp;theme=baeb3d00f9423288f17dfafb\u0026amp;signature=53019b39ea80bdb182a772c546a16add96ec1e14a17d5eb6e49fb40cfb62dda5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Connect clients - Orq.ai Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Register MCP clients with a gateway and choose how they authenticate.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://orqai.mintlify.site/_mintlify/api/og/v2?division=MCP+Portal\u0026amp;title=Connect+clients\u0026amp;description=Register+MCP+clients+with+a+gateway+and+choose+how+they+authenticate.\u0026amp;theme=baeb3d00f9423288f17dfafb\u0026amp;signature=53019b39ea80bdb182a772c546a16add96ec1e14a17d5eb6e49fb40cfb62dda5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#df5325\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"Orq.ai\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@orq_ai\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003cmeta data-mint-head name=\"language\" content=\"English\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ai-gateway/mcp-portal/mcp-gateways/connect-clients.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.orq.ai/#organization\",\"name\":\"Orq.ai\",\"legalName\":\"Orq.AI Holding B.V.\",\"url\":\"https://orq.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://docs.orq.ai/images/Orq_ai_Symbol_Dark.svg\"},\"sameAs\":[\"https://github.com/orq-ai\",\"https://x.com/orq_ai\",\"https://www.linkedin.com/company/orqai/\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.orq.ai#website\",\"name\":\"Orq.ai Documentation\",\"url\":\"https://docs.orq.ai\",\"publisher\":{\"@id\":\"https://docs.orq.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients#webpage\",\"url\":\"https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients\",\"name\":\"Connect clients\",\"description\":\"Register MCP clients with a gateway and choose how they authenticate.\",\"dateModified\":\"2026-12-01T10:17:05.690Z\",\"isPartOf\":{\"@id\":\"https://docs.orq.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"MCP Portal\",\"item\":\"https://docs.orq.ai/ai-gateway/mcp-portal/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connect clients\",\"item\":\"https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients#article\",\"headline\":\"Connect clients\",\"name\":\"Connect clients\",\"description\":\"Register MCP clients with a gateway and choose how they authenticate.\",\"url\":\"https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients\",\"mainEntityOfPage\":{\"@id\":\"https://docs.orq.ai/ai-gateway/mcp-portal/mcp-gateways/connect-clients#webpage\"},\"dateModified\":\"2026-12-01T10:17:05.690Z\",\"publisher\":{\"@id\":\"https://docs.orq.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.orq.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Orq.ai Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Orq.ai\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ai-gateway/mcp-portal/mcp-gateways/connect-clients.md","siteName":"Orq.ai Documentation","nav":{"global":null,"tabs":[{"tab":"AI Gateway","groups":[{"group":"Overview","icon":"compass","pages":[{"title":"AI Gateway","sidebarTitle":"Quick Start","href":"/ai-gateway/get-started/introduction"},{"title":"Migrate from OpenAI, Anthropic, OpenRouter, LiteLLM","sidebarTitle":"Migrate","href":"/ai-gateway/get-started/migrate"},{"title":"API Keys and Management Keys","sidebarTitle":"API Keys \u0026 Management Keys","href":"/ai-gateway/configuration/api-keys"},{"title":"Budgets","sidebarTitle":"Budgets","href":"/ai-gateway/budgets"},{"title":"Models","sidebarTitle":"Manage Models","href":"/ai-gateway/using-the-router"},{"title":"Supported models in AI Gateway","sidebarTitle":"Supported Models","href":"/ai-gateway/supported-models"},{"title":"Model Arena: Compare AI Models Head-to-Head","sidebarTitle":"Model Arena","href":"/ai-gateway/model-arena"},{"title":"Request metadata","sidebarTitle":"Request Metadata","href":"/ai-gateway/request-metadata"}]},{"group":"APIs","icon":"code","pages":[{"title":"Responses API","sidebarTitle":"Responses API","href":"/ai-gateway/features/responses-api"},{"title":"OpenAI-compatible API","sidebarTitle":"OpenAI-Compatible API","href":"/ai-gateway/features/openai-compatible-api"},{"title":"Anthropic Messages API","sidebarTitle":"Anthropic Messages API","href":"/ai-gateway/features/anthropic-messages-api"},{"title":"Connect agents through the AI Gateway","sidebarTitle":"Agents Gateway","href":"/ai-gateway/features/agents-gateway"}]},{"group":"MCP Portal","icon":"plug","pages":[{"title":"MCP Portal","sidebarTitle":"Overview","href":"/ai-gateway/mcp-portal/overview"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/ai-gateway/mcp-portal/quickstart"},{"title":"MCP Servers","sidebarTitle":"MCP Servers","href":"/ai-gateway/mcp-portal/mcp-servers"},{"title":"MCP Gateways","sidebarTitle":"MCP Gateways","description":"Bundle multiple MCP servers behind a single MCP Gateway endpoint with one surface for tools, resources and prompts, aliases, and per-team access controls.","href":"/ai-gateway/mcp-portal/mcp-gateways"},{"title":"Connect clients","sidebarTitle":"Connect clients","href":"/ai-gateway/mcp-portal/mcp-gateways/connect-clients"},{"title":"Security","sidebarTitle":"Security","description":"Attach plugins and guardrails, set runtime limits, and monitor gateway traffic and changes.","href":"/ai-gateway/mcp-portal/mcp-gateways/security"},{"title":"Monitor","sidebarTitle":"Monitor","href":"/ai-gateway/mcp-portal/mcp-gateways/monitoring"},{"title":"Troubleshooting","sidebarTitle":"Troubleshooting","href":"/ai-gateway/mcp-portal/troubleshooting"},{"title":"Reference","sidebarTitle":"Reference","href":"/ai-gateway/mcp-portal/reference"}]},{"group":"Routing","icon":"route","pages":[{"title":"BYOK","sidebarTitle":"Bring Your Own Key (BYOK)","href":"/ai-gateway/providers-overview"},{"title":"Provider integrations","sidebarTitle":"Provider integrations","href":"/ai-gateway/features/provider-integrations"},{"title":"Smart Router","sidebarTitle":"Smart Router","href":"/ai-gateway/smart-router"},{"title":"Model Fusion","sidebarTitle":"Model Fusion","href":"/ai-gateway/model-fusion"},{"title":"Auto Models","sidebarTitle":"Auto Models","href":"/ai-gateway/auto-models"},{"title":"Session Affinity","sidebarTitle":"Session Affinity","href":"/ai-gateway/session-affinity"},{"title":"Fallbacks and retries in the AI Gateway","sidebarTitle":"Fallbacks \u0026 Retries","href":"/ai-gateway/features/retries"},{"title":"Load balancing across providers","sidebarTitle":"Load Balancing","href":"/ai-gateway/features/load-balancing"},{"title":"Routing Rules","sidebarTitle":"Routing Rules","href":"/ai-gateway/configuration/routing-rules"},{"title":"LLM response cache","sidebarTitle":"Cache","href":"/ai-gateway/features/cache"},{"title":"Request timeouts","sidebarTitle":"Timeouts","href":"/ai-gateway/features/timeouts"},{"title":"Rate limits and quotas","sidebarTitle":"Rate limits \u0026 quotas","href":"/ai-gateway/features/rate-limits"},{"title":"Service tiers","sidebarTitle":"Service Tiers","href":"/ai-gateway/features/service-tiers"},{"title":"Response Healing","sidebarTitle":"Response Healing","tag":"Beta","href":"/ai-gateway/features/plugins/response-healing"},{"title":"Managed Prompts in router requests","sidebarTitle":"Using Prompts","href":"/ai-gateway/features/using-prompts"},{"title":"Knowledge bases via AI Gateway","sidebarTitle":"Knowledge Bases","href":"/ai-gateway/features/knowledge-bases"}]},{"group":"Security \u0026 Privacy","icon":"shield-halved","pages":[{"title":"EU data residency and model routing","sidebarTitle":"EU Routing \u0026 Data Residency","href":"/enterprise/eu-regions-faq"},{"title":"Sovereign AI and zero data retention (ZDR)","sidebarTitle":"Sovereign AI \u0026 ZDR","href":"/enterprise/sovereign-ai"},{"title":"Guardrails","sidebarTitle":"Guardrails","href":"/ai-gateway/configuration/guardrails"},{"title":"Guardrail Rules","sidebarTitle":"Guardrail Rules","href":"/ai-gateway/configuration/guardrail-rules"},{"title":"External Guardrails","sidebarTitle":"External Guardrails","href":"/ai-gateway/configuration/external-guardrails"},{"title":"Mask sensitive content in traces","sidebarTitle":"Trace Data Masking","href":"/ai-gateway/features/security"},{"title":"PII Redaction","sidebarTitle":"PII Redaction","tag":"Beta","href":"/ai-gateway/features/plugins/pii-redaction"},{"title":"Trace Scrubbing","sidebarTitle":"Trace Scrubbing","href":"/ai-gateway/features/plugins/trace-scrubbing"},{"title":"Bring Your Own Model","sidebarTitle":"Bring Your Own Model","href":"/ai-gateway/private-models"}]},{"group":"Model Capabilities","icon":"bolt","pages":[{"title":"LLM response streaming","sidebarTitle":"Streaming","href":"/ai-gateway/features/streaming"},{"title":"Realtime and WebSocket sessions","sidebarTitle":"Realtime","href":"/ai-gateway/features/realtime"},{"title":"Structured outputs with JSON schema","sidebarTitle":"Structured Outputs","href":"/ai-gateway/features/structured-outputs"},{"title":"Image, PDF and audio generation","sidebarTitle":"Multimodal","href":"/ai-gateway/features/multimodal"},{"title":"OCR via AI Gateway","sidebarTitle":"OCR","href":"/ai-gateway/features/ocr"},{"title":"Sending files to models","sidebarTitle":"Files","href":"/ai-gateway/features/files"},{"title":"Batches","sidebarTitle":"Batches","href":"/ai-gateway/features/batches"},{"title":"Prompt caching","sidebarTitle":"Prompt Caching","href":"/ai-gateway/features/prompt-caching"},{"title":"Context compaction for long conversations","sidebarTitle":"Context Compaction","href":"/ai-gateway/features/context-compaction"},{"title":"Tool calling and function execution","sidebarTitle":"Tool Calling","href":"/ai-gateway/features/tool-calling"},{"title":"Background Responses","sidebarTitle":"Background Responses","href":"/ai-gateway/features/background-responses"},{"title":"Reasoning models","sidebarTitle":"Reasoning","href":"/ai-gateway/features/reasoning"},{"title":"Web search in Responses API","sidebarTitle":"Web Search","href":"/ai-gateway/features/web-search"},{"title":"Dynamic inputs for runtime configuration","sidebarTitle":"Inputs","href":"/ai-gateway/features/inputs"},{"title":"Embeddings","sidebarTitle":"Embeddings","href":"/ai-gateway/features/embeddings"},{"title":"Rerank and Moderations","sidebarTitle":"Rerank \u0026 Moderations","href":"/ai-gateway/features/rerank-and-moderations"},{"title":"Decisions","sidebarTitle":"Decisions","href":"/ai-gateway/features/decisions"},{"title":"Model FAQ","sidebarTitle":"Model FAQ","href":"/ai-gateway/model-faq"}]},{"group":"Server Tools","icon":"toolbox","pages":[{"title":"Server tools","sidebarTitle":"Overview","href":"/ai-gateway/features/server-tools"},{"title":"Web search server tool","sidebarTitle":"Web Search","href":"/ai-gateway/features/server-tools/web-search"},{"title":"Web fetch server tool","sidebarTitle":"Web Fetch","href":"/ai-gateway/features/server-tools/web-fetch"},{"title":"Datetime server tool","sidebarTitle":"Datetime","href":"/ai-gateway/features/server-tools/datetime"},{"title":"Image generation server tool","sidebarTitle":"Image Generation","href":"/ai-gateway/features/server-tools/image-generation"},{"title":"Code interpreter server tool","sidebarTitle":"Code Interpreter","href":"/ai-gateway/features/server-tools/code-interpreter"},{"title":"Shell server tool","sidebarTitle":"Shell","href":"/ai-gateway/features/server-tools/shell"},{"title":"Apply patch server tool","sidebarTitle":"Apply Patch","href":"/ai-gateway/features/server-tools/apply-patch"},{"title":"Knowledge-base server tools","sidebarTitle":"Knowledge Bases","href":"/ai-gateway/features/server-tools/knowledge-bases"},{"title":"Search models server tool","sidebarTitle":"Search Models","href":"/ai-gateway/features/server-tools/search-models"},{"title":"Tool search server tool","sidebarTitle":"Tool Search","href":"/ai-gateway/features/server-tools/tool-search"},{"title":"Subagent server tool","sidebarTitle":"Subagent","href":"/ai-gateway/features/server-tools/subagent"},{"title":"Advisor server tool","sidebarTitle":"Advisor","href":"/ai-gateway/features/server-tools/advisor"},{"title":"Fusion server tool","sidebarTitle":"Fusion","href":"/ai-gateway/features/server-tools/fusion"}]},{"group":"Common Scenarios","icon":"book-open","pages":[{"title":"Multi-tenant setup","sidebarTitle":"Multi-tenant setup","href":"/ai-gateway/multi-tenant-setup"}]}]},{"tab":"AI Observability","pages":[{"title":"AI Observability","href":"/ai-studio/observability/quickstart"}]},{"tab":"Managed agents","pages":[{"title":"Managed agents","href":"/ai-studio/ai-engineering/quickstart"}]},{"tab":"Administration","pages":[{"title":"Administration","href":"/ai-studio/organization/workspace-settings"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/ai-studio/integrations/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/reference/client-libraries"}]},{"tab":"Cookbooks","hidden":true,"pages":[{"title":"Cookbooks","href":"/ai-studio/cookbooks/cookbooks"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/release-4-19"}]}]},"basePath":"","title":"Connect clients - Orq.ai Documentation","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-NFVxKeb_.js","DynamicMarkdown-DOefW1_8.js","zoom-image-lightbox-DHIkV4p4.js","lightbox-handle-r17bVUz3.js"]}