> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent 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.
> Hosted 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.
> Local 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`.
> Headless 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.
> Send 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`.
> To 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.
> On `/chat/completions`, a reasoning model rejects `tools` with a `reasoning_effort` other than `none`; `/responses` keeps reasoning.
> On a failure, branch on `error.code` and follow `error.doc_url`; a budget rejection answers 429.

# Connect clients

> 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](https://docs.orq.ai/ai-studio/integrations/code-assistants/claude-code.md), [Cursor](https://docs.orq.ai/ai-studio/integrations/code-assistants/cursor.md), or [Codex](https://docs.orq.ai/ai-studio/integrations/code-assistants/codex.md). See [Coding Agents](https://docs.orq.ai/ai-studio/integrations/overview.md) for the full list.

The connection works once three things are in place:

1. 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>`.
2. At least one [**MCP Server**](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-servers.md) is linked to it, with the tools, resources and prompts the client needs exposed.
3. 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.

> [!NOTE]
>
> 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

> [card] [OAuth](#oauth)
>
> Default. Browser sign-in for interactive clients.

> [card] [Client credentials](#client-credentials)
>
> Short-lived tokens with no user present. For services and automations.

> [card] [Enterprise-managed authorization](#enterprise-managed-authorization)
>
> The identity provider issues an ID-JAG, with no consent screen.

> [card] [API key](#api-key)
>
> A bearer token in the client configuration. For headless clients.

> [card] [Gateway-only SSO](https://docs.orq.ai/ai-studio/organization/gateway-sso.md)
>
> Entra ID or Okta without a workspace seat. Enterprise plan.

### Access token lifetimes

| Method | Access token lifetime |
| - | - |
| [OAuth](#oauth) | Up to 30 minutes |
| [Client credentials](#client-credentials) | 10 minutes |
| [Enterprise-managed authorization](#enterprise-managed-authorization) | 15 minutes |

When calling an [enterprise-managed server](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-servers.md#enterprise-managed-authorization), 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](https://docs.orq.ai/ai-studio/organization/sso.md#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.

> [!NOTE]
>
> 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](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-servers.md).

**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:

![Connect section showing the npx add-mcp command for the MCP Gateway URL and a copy button](https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-connect-oauth.png?fit=max\&auto=format\&n=17JRgiuim9pknmXk\&q=85\&s=b2b8ea41b21924f97f5140de748961e6)

Connect section on the MCP Gateway Overview tab

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
npx add-mcp https://my.orq.ai/v3/mcp/<gateway-key> --name <gateway-key>
```

Register the MCP Gateway directly in the client, replacing `<gateway-key>` with the gateway key from the **Connect** section:

> [tab] Claude Code
>
> ```bash wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> claude mcp add --transport http <gateway-key> https://my.orq.ai/v3/mcp/<gateway-key>
> ```
>
> Claude Code opens the browser for approval on first use. Confirm with `claude mcp list`.

> [tab] Cursor
>
> Add the MCP Gateway in **Cursor Settings → Tools & MCP → New MCP Server** and paste:
>
> ```json wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> {
>   "mcpServers": {
>     "<gateway-key>": {
>       "url": "https://my.orq.ai/v3/mcp/<gateway-key>"
>     }
>   }
> }
> ```
>
> Save the configuration and complete the browser approval when Cursor prompts for it.

> [tab] Codex
>
> ```bash wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> codex mcp add <gateway-key> --url https://my.orq.ai/v3/mcp/<gateway-key>
> ```
>
> Run `codex mcp login <gateway-key>` to complete the browser approval.

> [tab] VS Code
>
> 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`:
>
> ```json wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> {
>   "servers": {
>     "<gateway-key>": {
>       "url": "https://my.orq.ai/v3/mcp/<gateway-key>",
>       "type": "http"
>     }
>   }
> }
> ```
>
> 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.

> [tab] Claude Desktop
>
> 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](https://docs.orq.ai/ai-studio/integrations/chat-interfaces/claude-desktop.md#orq-mcp), 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 <kbd>Approve</kbd> to issue the token, or <kbd>Deny</kbd> to reject the request.

![Approval page showing an MCP client requesting access, with Details listing the agent, account, gateway, and redirect URL above the Deny and Approve buttons](https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-client-approval.png?fit=max\&auto=format\&n=17JRgiuim9pknmXk\&q=85\&s=bf20a117c9b74feb4645c70cf865fa73)

Approval page for an MCP client requesting access to a gateway

**Manage authorized clients**

Every 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](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-servers.md#per-user-oauth), where an admin can disconnect one.

> [!NOTE]
>
> Revoking a client and disconnecting a Connection are console-only steps.

![MCP Gateway Clients tab listing one authorized client with Client, Authenticated at, and Created by columns](https://mintcdn.com/orqai/17JRgiuim9pknmXk/images/mcp-gateway-clients.png?fit=max\&auto=format\&n=17JRgiuim9pknmXk\&q=85\&s=ce3084e70085fb3a9a7b50065dc76c08)

Clients tab on an MCP Gateway listing authorized MCP clients

**How sign-in works**

The 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:

| Field | Values |
| - | - |
| `grant_types_supported` | `authorization_code`, `refresh_token`, `client_credentials`, `urn:ietf:params:oauth:grant-type:jwt-bearer` |
| `token_endpoint_auth_methods_supported` | `client_secret_basic`, `client_secret_post`, `private_key_jwt`, `none` |
| `token_endpoint_auth_signing_alg_values_supported` | `RS256`, `PS256`, `ES256` |
| `client_id_metadata_document_supported` | `true` |
| `authorization_grant_profiles_supported` | `urn:ietf:params:oauth:grant-profile:id-jag` |
| `jwks_uri` | `<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.

**2. Request a token**

Send the gateway URL as the RFC 8707 `resource`:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST https://my.orq.ai/v2/auth/mcp/token \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -d grant_type=client_credentials \
  -d resource=https://my.orq.ai/v3/mcp/<gateway-key> \
  -d "scope=mcp:tools mcp:resources"
```

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`.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST https://my.orq.ai/v2/auth/mcp/token \
  -d grant_type=client_credentials \
  -d client_id="$CLIENT_ID" \
  -d client_assertion_type="urn:ietf:params:oauth:grant-type:jwt-bearer" \
  -d client_assertion="$CLIENT_ASSERTION" \
  -d resource=https://my.orq.ai/v3/mcp/<gateway-key> \
  -d "scope=mcp:tools mcp:resources"
```

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:

> [tab] Client secret
>
> ```typescript theme={"theme":{"light":"github-light","dark":"github-dark"}}
> 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);
> ```

> [tab] Private key JWT
>
> ```typescript theme={"theme":{"light":"github-light","dark":"github-dark"}}
> 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.

> [tab] Python
>
> ```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
> import httpx
>
> response = httpx.post(
>     "https://my.orq.ai/v2/auth/mcp/token",
>     auth=(CLIENT_ID, CLIENT_SECRET),
>     data={
>         "grant_type": "client_credentials",
>         "resource": "https://my.orq.ai/v3/mcp/<gateway-key>",
>         "scope": "mcp:tools mcp:resources",
>     },
> )
> access_token = response.json()["access_token"]
> ```
>
> Send `access_token` as a bearer token from any MCP client.

Choose client credentials over an [API key](#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](https://orq.ai/solutions/enterprise). 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.

**1. Connect the identity provider**

Set up the SSO connection first: [Configure SSO](https://docs.orq.ai/ai-studio/organization/sso.md#connect-a-provider).

**2. Trust the identity provider**

In **Settings → Auth**, open the SSO connection and turn on **Accept ID-JAGs from this identity provider** under [ID-JAG trust](https://docs.orq.ai/ai-studio/organization/sso.md#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.
* `client_id`: the client's ID at **Orq.ai**.

**4. Exchange the ID-JAG**

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X POST https://my.orq.ai/v2/auth/mcp/token \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -d grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer \
  -d assertion=$ID_JAG \
  -d resource=https://my.orq.ai/v3/mcp/<gateway-key>
```

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](https://docs.orq.ai/ai-studio/integrations/code-assistants/orq-mcp.md) 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 linking**

**Orq.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](https://claude.com/docs/connectors/building/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](https://docs.orq.ai/ai-studio/organization/workspace-security.md#domains). **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.

> [!WARNING]
>
> 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](https://docs.orq.ai/ai-gateway/configuration/api-keys.md) as a bearer token instead of signing in. Use a [user key](https://docs.orq.ai/ai-gateway/configuration/api-keys.md#user-keys) 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:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
npx add-mcp https://my.orq.ai/v3/mcp/<gateway-key> \
  --name <gateway-key> \
  --header "Authorization: Bearer $ORQ_API_KEY"
```

> [tab] Claude Code
>
> ```bash wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> claude mcp add --transport http <gateway-key> https://my.orq.ai/v3/mcp/<gateway-key> --header "Authorization: Bearer ${ORQ_API_KEY}"
> ```
>
> Set `ORQ_API_KEY` before running the command. Confirm with `claude mcp list`.

> [tab] Cursor
>
> ```json wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> {
>   "mcpServers": {
>     "<gateway-key>": {
>       "url": "https://my.orq.ai/v3/mcp/<gateway-key>",
>       "headers": {
>         "Authorization": "Bearer YOUR_ORQ_API_KEY"
>       }
>     }
>   }
> }
> ```
>
> Replace `YOUR_ORQ_API_KEY` with an API key. Save the configuration; the server connects and shows a green indicator.

> [tab] Codex
>
> ```bash wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> codex mcp add <gateway-key> --url https://my.orq.ai/v3/mcp/<gateway-key> --bearer-token-env-var ORQ_API_KEY
> ```
>
> Export `ORQ_API_KEY` in the shell that launches Codex.

> [tab] VS Code
>
> ```json wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> {
>   "inputs": [
>     {
>       "type": "promptString",
>       "id": "orq-api-key",
>       "description": "Orq.ai API Key",
>       "password": true
>     }
>   ],
>   "servers": {
>     "<gateway-key>": {
>       "url": "https://my.orq.ai/v3/mcp/<gateway-key>",
>       "type": "http",
>       "headers": {
>         "Authorization": "Bearer ${input:orq-api-key}"
>       }
>     }
>   }
> }
> ```
>
> 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.