Add an MCP server, sync it, build a gateway, and connect a client.
This path takes one upstream MCP server to one gateway and one client. The same steps apply to an OpenAPI server, which has no sync step.
Before you start
An upstream MCP endpoint over HTTP or SSE, an OpenAPI document, or an MCP Provider. MCP Providers are preconfigured connections such as Slack, Linear, Notion, or GitHub, so you do not need to host an HTTP server yourself. See the full provider list.
The credentials that endpoint needs, if any.
The client you will connect: Claude Code, Cursor, Codex, VS Code, Claude Desktop, or another MCP-compatible client.
A workspace role that can create MCP Servers and MCP Gateways, such as Admin, or an API key with write access to both.
Walkthrough
AI Studio
API & SDK
CLI
1
Add an MCP Server
OpenAI Gateway > MCP Portal > MCP Servers.
SelectAdd an MCP server.
Choose an MCP Provider, an MCP URL, or OpenAPI.
Set the Key, Connection, and Authentication.
Save the server.
Create page with OpenAPI, MCP URL, and MCP Provider options.
2
Sync the server
MCP URL from the console: syncs when you save.
Per-user OAuth: syncs after the account is connected.
API-created: run an explicit sync.
OpenAPI: no sync; the tools exist at create.
Wait for the server to show Synced and a tool count in the MCP Servers list. Synced means Orq.ai finished discovering its tools; Failed means the connection or credentials need fixing.
Set runtime limits (optional): request and tool timeouts, request and response size caps, max tools, and per-token or per-gateway rates. See Runtime limits.
Choose how the gateway presents tools:
: a compact surface for a large tool catalogue.
: one client tool per upstream tool, with its annotations.
Create the gateway; the key becomes the public URL.
server_links replaces every link, so send the full set. enabled: true makes the link serve tools.
5
Connect a client
Use the gateway public_url as the client URL. See Connect clients for the client configuration.
The same flow with the orq CLI, using the Orq.ai MCP Provider with your ORQ_API_KEY. Install the CLI, then replace the placeholder IDs with the values the commands print.
List the gateway’s tools from the client. In Code mode, search returns the exposed tools and execute runs them. In Direct, the client lists each upstream tool.Open the gateway’s Traces tab and confirm the call appears. If the client lists no tools, check that the server is linked, the tools are exposed, and the token carries mcp:tools. See Troubleshooting.
MCP Servers
Authentication, OpenAPI, sync, health, and server lifecycle.
MCP Gateways
Tool exposure, Code mode, access, and limits.
Connect clients
Client setup, OAuth, client credentials, and API keys.
Troubleshooting
Fix a client that connects but lists no tools.
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/quickstart","slug":"/ai-gateway/mcp-portal/quickstart","pageMetadata":{"title":"Quickstart","sidebarTitle":"Quickstart","description":"Add an MCP server, sync it, build a gateway, and connect a client.","href":"/ai-gateway/mcp-portal/quickstart"},"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: \"Add an MCP server, sync it, build a gateway, and connect a client.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,CodeGroup,Frame,Heading,Icon,OptimizedImage,Step,Steps,Tab,Tabs,Tooltip}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tooltip)_missingMdxReference(`Tooltip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This path takes one upstream MCP server to one gateway and one client. The same steps apply to an OpenAPI server, which has no sync step.`}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before you start`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An upstream MCP endpoint over HTTP or SSE, an OpenAPI document, or an `,_jsx(_components.strong,{children:`MCP Provider`}),`. MCP Providers are preconfigured connections such as Slack, Linear, Notion, or GitHub, so you do not need to host an HTTP server yourself. See the `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-servers#from-an-mcp-provider-or-an-mcp-url`,children:`full provider list`}),`.`]}),`\n`,_jsx(_components.li,{children:`The credentials that endpoint needs, if any.`}),`\n`,_jsx(_components.li,{children:`The client you will connect: Claude Code, Cursor, Codex, VS Code, Claude Desktop, or another MCP-compatible client.`}),`\n`,_jsxs(_components.li,{children:[`A workspace role that can create MCP Servers and MCP Gateways, such as `,_jsx(_components.strong,{children:`Admin`}),`, or an API key with write access to both.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`walkthrough`,children:`Walkthrough`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=17e8d1565afe89385f0983463910df66`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=083a5c75081762fed03eaceaf7ff7e75 280w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=60adebc53af10ac7ae257a179d319233 560w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=ec20ee31425cebd422fd0212cf4af00c 840w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=28838406457d3f8f4c31db43f7e9b543 1100w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=9b64f09bf6e6c3d2cf02c387a505c0f8 1650w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=a4ce6025435132bb0381b738b94c3e8e 2500w`,id:`ai-studio`,children:_jsxs(Steps,{children:[_jsxs(Step,{title:`Add an MCP Server`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Open`}),` `,_jsx(_components.strong,{children:`AI Gateway > MCP Portal > MCP Servers`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Select`}),` `,_jsx(`kbd`,{className:`key`,children:`Add an MCP server`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Choose`}),` an `,_jsx(_components.strong,{children:`MCP Provider`}),`, an MCP URL, or OpenAPI.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Set`}),` the `,_jsx(_components.strong,{children:`Key`}),`, `,_jsx(_components.strong,{children:`Connection`}),`, and `,_jsx(_components.strong,{children:`Authentication`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Save`}),` the server.`]}),`\n`]}),_jsx(Frame,{caption:`Create page with OpenAPI, MCP URL, and MCP Provider options.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/sfKTr29e0I7JbeYB/images/mcp-server-catalog-418.png?fit=max\u0026auto=format\u0026n=sfKTr29e0I7JbeYB\u0026q=85\u0026s=10fc9d83b7b6291101442c5538b8a12b`,alt:`Create server page with OpenAPI and MCP URL cards and a catalog of MCP Providers.`,loading:`lazy`,\"data-og-width\":`2400`,width:`2400`,\"data-og-height\":`1511`,height:`1511`,\"data-path\":`images/mcp-server-catalog-418.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/sfKTr29e0I7JbeYB/images/mcp-server-catalog-418.png?w=280\u0026fit=max\u0026auto=format\u0026n=sfKTr29e0I7JbeYB\u0026q=85\u0026s=5f8f89b243e51b59af94c28ce592ee6d 280w, https://mintcdn.com/orqai/sfKTr29e0I7JbeYB/images/mcp-server-catalog-418.png?w=560\u0026fit=max\u0026auto=format\u0026n=sfKTr29e0I7JbeYB\u0026q=85\u0026s=48f857bad9e08f2473231bc0b6feb013 560w, https://mintcdn.com/orqai/sfKTr29e0I7JbeYB/images/mcp-server-catalog-418.png?w=840\u0026fit=max\u0026auto=format\u0026n=sfKTr29e0I7JbeYB\u0026q=85\u0026s=e42b55c717fd7ea8e9ef4d51159135aa 840w, https://mintcdn.com/orqai/sfKTr29e0I7JbeYB/images/mcp-server-catalog-418.png?w=1100\u0026fit=max\u0026auto=format\u0026n=sfKTr29e0I7JbeYB\u0026q=85\u0026s=e2be0a5f721a521a1d2ec50af49dcae2 1100w, https://mintcdn.com/orqai/sfKTr29e0I7JbeYB/images/mcp-server-catalog-418.png?w=1650\u0026fit=max\u0026auto=format\u0026n=sfKTr29e0I7JbeYB\u0026q=85\u0026s=059ac780cc0dac66b4264abc9dd4471d 1650w, https://mintcdn.com/orqai/sfKTr29e0I7JbeYB/images/mcp-server-catalog-418.png?w=2500\u0026fit=max\u0026auto=format\u0026n=sfKTr29e0I7JbeYB\u0026q=85\u0026s=fa4a85d2d5d30ecddf59430f459e71e7 2500w`})})]}),_jsxs(Step,{title:`Sync the server`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`MCP URL from the console`}),`: syncs when you save.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Per-user OAuth`}),`: syncs after the account is connected.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API-created`}),`: run an explicit sync.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`OpenAPI`}),`: no sync; the tools exist at create.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Wait`}),` for the server to show `,_jsx(_components.strong,{children:`Synced`}),` and a tool count in the `,_jsx(_components.strong,{children:`MCP Servers`}),` list. `,_jsx(_components.strong,{children:`Synced`}),` means Orq.ai finished discovering its tools; `,_jsx(_components.strong,{children:`Failed`}),` means the connection or credentials need fixing.`]}),`\n`]}),_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-servers#sync-and-tools`,children:`Sync and tools`}),`.`]})]}),_jsxs(Step,{title:`Build an MCP Gateway`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Open`}),` `,_jsx(_components.strong,{children:`MCP Gateways`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Select`}),` `,_jsx(`kbd`,{className:`key`,children:`MCP Gateway`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Set`}),` the `,_jsx(_components.strong,{children:`Key`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Set runtime limits`}),` (optional): request and tool timeouts, request and response size caps, max tools, and per-token or per-gateway rates. See `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-gateways/security#runtime-limits`,children:`Runtime limits`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Choose`}),` how the gateway presents tools:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(Tooltip,{tip:`Exposes search, describe, and execute instead of every upstream tool.`,children:_jsx(_components.strong,{children:`Code mode`})}),`: a compact surface for a large tool catalogue.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(Tooltip,{tip:`Exposes each upstream tool individually.`,children:_jsx(_components.strong,{children:`Direct`})}),`: one client tool per upstream tool, with its annotations.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Create`}),` the gateway; the key becomes the public URL.`]}),`\n`]}),_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-gateways`,children:`MCP Gateways`}),`.`]}),_jsx(Frame,{caption:`Create MCP Gateway form`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/efuWqdURPf05zilL/images/create-mcp-gateway-form.png?fit=max\u0026auto=format\u0026n=efuWqdURPf05zilL\u0026q=85\u0026s=82708358b259c21a8bbc8ac26acfe824`,alt:`Create MCP Gateway form with Key, tool exposure mode, tool naming, runtime limits, and guardrails.`,loading:`lazy`,\"data-og-width\":`1947`,width:`1947`,\"data-og-height\":`1140`,height:`1140`,\"data-path\":`images/create-mcp-gateway-form.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/efuWqdURPf05zilL/images/create-mcp-gateway-form.png?w=280\u0026fit=max\u0026auto=format\u0026n=efuWqdURPf05zilL\u0026q=85\u0026s=25dd1acf378e771a3f758ae8cbead293 280w, https://mintcdn.com/orqai/efuWqdURPf05zilL/images/create-mcp-gateway-form.png?w=560\u0026fit=max\u0026auto=format\u0026n=efuWqdURPf05zilL\u0026q=85\u0026s=14a1aa51cb573d5f95c9415962946273 560w, https://mintcdn.com/orqai/efuWqdURPf05zilL/images/create-mcp-gateway-form.png?w=840\u0026fit=max\u0026auto=format\u0026n=efuWqdURPf05zilL\u0026q=85\u0026s=7b307feec0cb8463e30bf20799b581c9 840w, https://mintcdn.com/orqai/efuWqdURPf05zilL/images/create-mcp-gateway-form.png?w=1100\u0026fit=max\u0026auto=format\u0026n=efuWqdURPf05zilL\u0026q=85\u0026s=1c3f4009949dc7305301dc03a990d8f5 1100w, https://mintcdn.com/orqai/efuWqdURPf05zilL/images/create-mcp-gateway-form.png?w=1650\u0026fit=max\u0026auto=format\u0026n=efuWqdURPf05zilL\u0026q=85\u0026s=c882a85a4de4191858f2e9afe69696da 1650w, https://mintcdn.com/orqai/efuWqdURPf05zilL/images/create-mcp-gateway-form.png?w=2500\u0026fit=max\u0026auto=format\u0026n=efuWqdURPf05zilL\u0026q=85\u0026s=0b26d7fdc309dae492ad85df3a14e641 2500w`})})]}),_jsxs(Step,{title:`Link the server and expose tools`,children:[_jsxs(_components.p,{children:[`On the gateway’s `,_jsx(_components.strong,{children:`Toolset`}),` tab:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Select `,_jsx(`kbd`,{className:`key`,children:`+ Add server`}),` and choose the synced server.`]}),`\n`,_jsxs(_components.li,{children:[`Use the `,_jsx(Icon,{icon:`eye`}),` toggle on the server row to expose or hide every visible tool, or expand the server and toggle individual tools.`]}),`\n`,_jsx(_components.li,{children:`Resources and prompts have their own exposure toggles.`}),`\n`]}),_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-gateways#scope-tools`,children:`Tool exposure`}),`.`]}),_jsx(Frame,{caption:`Toolset tab after linking a server`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/4rHc7pk98wwKW0RE/images/mcp-gateway-toolset-tab-418.png?fit=max\u0026auto=format\u0026n=4rHc7pk98wwKW0RE\u0026q=85\u0026s=be14db3150724335ceecfb023c063da8`,alt:`MCP Gateway Toolset tab with a linked server and its exposed tools.`,loading:`lazy`,\"data-og-width\":`1947`,width:`1947`,\"data-og-height\":`540`,height:`540`,\"data-path\":`images/mcp-gateway-toolset-tab-418.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/4rHc7pk98wwKW0RE/images/mcp-gateway-toolset-tab-418.png?w=280\u0026fit=max\u0026auto=format\u0026n=4rHc7pk98wwKW0RE\u0026q=85\u0026s=7db95866e43de8c310a7990e6f5a6d9f 280w, https://mintcdn.com/orqai/4rHc7pk98wwKW0RE/images/mcp-gateway-toolset-tab-418.png?w=560\u0026fit=max\u0026auto=format\u0026n=4rHc7pk98wwKW0RE\u0026q=85\u0026s=c51ab6d48e55aeaf3a8aed5363b4407d 560w, https://mintcdn.com/orqai/4rHc7pk98wwKW0RE/images/mcp-gateway-toolset-tab-418.png?w=840\u0026fit=max\u0026auto=format\u0026n=4rHc7pk98wwKW0RE\u0026q=85\u0026s=bb4030af68cc4a0567a3bebd113d8385 840w, https://mintcdn.com/orqai/4rHc7pk98wwKW0RE/images/mcp-gateway-toolset-tab-418.png?w=1100\u0026fit=max\u0026auto=format\u0026n=4rHc7pk98wwKW0RE\u0026q=85\u0026s=033a3cdce3121a6a1ac00279df78de2c 1100w, https://mintcdn.com/orqai/4rHc7pk98wwKW0RE/images/mcp-gateway-toolset-tab-418.png?w=1650\u0026fit=max\u0026auto=format\u0026n=4rHc7pk98wwKW0RE\u0026q=85\u0026s=076612f9998b2d0565df997066dbfe63 1650w, https://mintcdn.com/orqai/4rHc7pk98wwKW0RE/images/mcp-gateway-toolset-tab-418.png?w=2500\u0026fit=max\u0026auto=format\u0026n=4rHc7pk98wwKW0RE\u0026q=85\u0026s=043df415d9df3a821b5cd4d884dddd0b 2500w`})})]}),_jsxs(Step,{title:`Connect a client`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Copy the command from the gateway’s `,_jsx(_components.strong,{children:`Connect`}),` section, or register the gateway URL in the client.`]}),`\n`,_jsx(_components.li,{children:`Run the command; the client opens the browser for OAuth on first use.`}),`\n`,_jsx(_components.li,{children:`For a headless client that cannot open a browser, use an API key instead.`}),`\n`]}),_jsx(CodeGroup,{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:`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:[`See `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-gateways/connect-clients`,children:`Connect clients`}),`.`]})]})]})}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk`,children:[_jsxs(_components.p,{children:[`The examples use the `,_jsx(_components.strong,{children:`Orq.ai`}),` MCP Provider with your `,_jsx(_components.code,{children:`ORQ_API_KEY`}),`.`]}),_jsxs(Steps,{children:[_jsxs(Step,{title:`Add an MCP Server`,children:[_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,wrap:`true`,numberOfLines:`13`,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:`13`,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/mcp-servers`}),_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:` -H`}),_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:`\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_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:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"key\": \"orq\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"display_name\": \"Orq MCP\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"connection\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"type\": \"MCP_CONNECTION_TYPE_HTTP\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"url\": \"https://my.orq.ai/v2/mcp\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"auth\": { \"type\": \"MCP_AUTH_TYPE_STATIC_HEADERS\", \"static_headers\": [{ \"key\": \"Authorization\", \"value\": \"Bearer \u003cORQ_API_KEY>\" }] },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"default_tool_exposure\": { \"mode\": \"MCP_TOOL_EXPOSURE_MODE_ALL\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,wrap:`true`,numberOfLines:`12`,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:`12`,children:[_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:` server`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.mcpServers.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`create`}),_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:` key: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"orq\"`}),_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:` displayName: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Orq 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:` connection: {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_CONNECTION_TYPE_HTTP\"`}),_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:` url: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"https://my.orq.ai/v2/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.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` auth: { type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_AUTH_TYPE_STATIC_HEADERS\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, staticHeaders: [{ key: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, value: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Bearer \u003cORQ_API_KEY>\"`}),_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:` defaultToolExposure: { mode: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_TOOL_EXPOSURE_MODE_ALL\"`}),_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:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(server.mcpServer?.id);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,wrap:`true`,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:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`server `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.mcp_servers.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"orq\"`}),_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:` display_name`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Orq MCP\"`}),_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:` connection`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_CONNECTION_TYPE_HTTP\"`}),_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:` \"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/v2/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.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:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_AUTH_TYPE_STATIC_HEADERS\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"static_headers\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: [{`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"key\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Bearer \u003cORQ_API_KEY>\"`}),_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:` default_tool_exposure`}),_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:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"mode\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_TOOL_EXPOSURE_MODE_ALL\"`}),_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:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(server.mcp_server.id)`})]}),`\n`]})})})]}),_jsxs(_components.p,{children:[`Use the same `,_jsx(_components.code,{children:`ORQ_API_KEY`}),` in the server `,_jsx(_components.code,{children:`Authorization`}),` header. The response carries the server `,_jsx(_components.code,{children:`id`}),`.`]})]}),_jsxs(Step,{title:`Sync the server`,children:[_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,wrap:`true`,numberOfLines:`4`,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:`4`,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/mcp-servers/\u003cserver-id>:sync\"`}),_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:` -H`}),_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:`\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_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:` '{}'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,wrap:`true`,numberOfLines:`1`,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:`1`,children:[_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.mcpServers.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`sync`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ id: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\u003cserver-id>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,wrap:`true`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`client.mcp_servers.sync(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`id`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\u003cserver-id>\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)`})]}),`\n`]})})})]}),_jsxs(_components.p,{children:[`Wait for `,_jsx(_components.code,{children:`sync_state.status`}),` to read `,_jsx(_components.code,{children:`SYNC_STATUS_SYNCED`}),`.`]})]}),_jsxs(Step,{title:`Build an MCP Gateway`,children:[_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,wrap:`true`,numberOfLines:`9`,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:`9`,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/mcp-gateways`}),_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:` -H`}),_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:`\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_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:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"key\": \"workspace-tools\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"display_name\": \"Orq MCP tools\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"mode\": \"MCP_GATEWAY_MODE_CODE\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"tool_naming\": \"MCP_TOOL_NAMING_PREFIX_WITH_SERVER_KEY\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,wrap:`true`,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:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` gateway`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.mcpGateways.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`create`}),_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:` key: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"workspace-tools\"`}),_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:` displayName: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Orq MCP tools\"`}),_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:` mode: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_GATEWAY_MODE_CODE\"`}),_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:` toolNaming: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_TOOL_NAMING_PREFIX_WITH_SERVER_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:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(gateway.mcpGateway?.publicUrl);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,wrap:`true`,numberOfLines:`8`,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:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`gateway `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.mcp_gateways.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"workspace-tools\"`}),_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:` display_name`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Orq MCP tools\"`}),_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:` mode`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_GATEWAY_MODE_CODE\"`}),_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:` tool_naming`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_TOOL_NAMING_PREFIX_WITH_SERVER_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:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(gateway.mcp_gateway.public_url)`})]}),`\n`]})})})]}),_jsxs(_components.p,{children:[`The response carries the gateway `,_jsx(_components.code,{children:`id`}),` and `,_jsx(_components.code,{children:`public_url`}),`.`]})]}),_jsxs(Step,{title:`Link the server and expose tools`,children:[_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,wrap:`true`,numberOfLines:`13`,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:`13`,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:` PATCH`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/mcp-gateways/`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-i`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`d`}),_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:` -H`}),_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:`\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_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:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"server_links\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"mcp_server_id\": \"\u003cserver-id>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"alias\": \"orq\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"enabled\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"tool_exposure\": { \"mode\": \"MCP_TOOL_EXPOSURE_MODE_ALL\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,wrap:`true`,numberOfLines:`13`,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:`13`,children:[_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.mcpGateways.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`update`}),_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:` id: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\u003cgateway-id>\"`}),_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:` updateMcpGatewayRequest: {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` serverLinks: [`})}),`\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:` mcpServerId: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\u003cserver-id>\"`}),_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:` alias: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"orq\"`}),_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:` enabled: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`true`}),_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:` toolExposure: { mode: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_TOOL_EXPOSURE_MODE_ALL\"`}),_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.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,wrap:`true`,numberOfLines:`11`,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:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`client.mcp_gateways.update(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` id`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\u003cgateway-id>\"`}),_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:` server_links`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},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:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"mcp_server_id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\u003cserver-id>\"`}),_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:` \"alias\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"orq\"`}),_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:` \"enabled\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`True`}),_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:` \"tool_exposure\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"mode\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_TOOL_EXPOSURE_MODE_ALL\"`}),_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:[_jsx(_components.code,{children:`server_links`}),` replaces every link, so send the full set. `,_jsx(_components.code,{children:`enabled: true`}),` makes the link serve tools.`]})]}),_jsx(Step,{title:`Connect a client`,children:_jsxs(_components.p,{children:[`Use the gateway `,_jsx(_components.code,{children:`public_url`}),` as the client URL. See `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-gateways/connect-clients`,children:`Connect clients`}),` for the client configuration.`]})})]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli`,children:[_jsxs(_components.p,{children:[`The same flow with the `,_jsx(_components.code,{children:`orq`}),` CLI, using the `,_jsx(_components.strong,{children:`Orq.ai`}),` MCP Provider with your `,_jsx(_components.code,{children:`ORQ_API_KEY`}),`. `,_jsx(_components.a,{href:`/reference/cli#installation`,children:`Install the CLI`}),`, then replace the placeholder IDs with the values the commands print.`]}),_jsxs(Steps,{children:[_jsxs(Step,{title:`Add an MCP Server`,children:[_jsxs(_components.p,{children:[`Create the `,_jsx(_components.strong,{children:`Orq.ai`}),` MCP Provider with your API key:`]}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`6`,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:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` mcp-servers`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` create`}),_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:` --key`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` orq`}),_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:` --display-name`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Orq MCP\"`}),_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:` --connection`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"type\":\"MCP_CONNECTION_TYPE_HTTP\",\"url\":\"https://my.orq.ai/v2/mcp\"}'`}),_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:` --auth`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"type\":\"MCP_AUTH_TYPE_STATIC_HEADERS\",\"static_headers\":[{\"key\":\"Authorization\",\"value\":\"Bearer \u003cORQ_API_KEY>\"}]}'`}),_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:` --default-tool-exposure`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"mode\":\"MCP_TOOL_EXPOSURE_MODE_ALL\"}'`})]}),`\n`]})})})}),_jsxs(_components.p,{children:[`Use the same `,_jsx(_components.code,{children:`ORQ_API_KEY`}),` in the server `,_jsx(_components.code,{children:`Authorization`}),` header. The command prints the server ID.`]})]}),_jsxs(Step,{title:`Sync the server`,children:[_jsxs(_components.p,{children:[`Run the first sync and wait for `,_jsx(_components.code,{children:`SYNC_STATUS_SYNCED`}),`:`]}),_jsx(CodeGroup,{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:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` mcp-servers`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` sync`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`server-i`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`d`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`})]}),`\n`]})})})})]}),_jsxs(Step,{title:`Build an MCP Gateway`,children:[_jsx(_components.p,{children:`Create a Code mode gateway. The command prints the gateway ID and public URL:`}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:``,wrap:`true`,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:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` mcp-gateways`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` create`}),_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:` --key`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` workspace-tools`}),_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:` --display-name`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Orq MCP tools\"`}),_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:` --mode`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` MCP_GATEWAY_MODE_CODE`}),_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:` --tool-naming`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` MCP_TOOL_NAMING_PREFIX_WITH_SERVER_KEY`})]}),`\n`]})})})})]}),_jsxs(Step,{title:`Link the server and expose tools`,children:[_jsxs(_components.p,{children:[`Link the synced server. `,_jsx(_components.code,{children:`--server-links`}),` replaces every link, so send the full set:`]}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` mcp-gateways`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`gateway-i`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`d`}),_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:` --server-links`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '[{\"mcp_server_id\":\"\u003cserver-id>\",\"alias\":\"orq\",\"enabled\":true,\"tool_exposure\":{\"mode\":\"MCP_TOOL_EXPOSURE_MODE_ALL\"}}]'`})]}),`\n`]})})})})]}),_jsxs(Step,{title:`Connect a client`,children:[_jsx(_components.p,{children:`Register the gateway URL in the client:`}),_jsx(CodeGroup,{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:`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/workspace-tools`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --name`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` workspace-tools`})]}),`\n`]})})})})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`verify`,children:`Verify`}),`\n`,_jsxs(_components.p,{children:[`List the gateway’s tools from the client. In Code mode, `,_jsx(_components.code,{children:`search`}),` returns the exposed tools and `,_jsx(_components.code,{children:`execute`}),` runs them. In Direct, the client lists each upstream tool.`]}),`\n`,_jsxs(_components.p,{children:[`Open the gateway’s `,_jsx(_components.strong,{children:`Traces`}),` tab and confirm the call appears. If the client lists no tools, check that the server is linked, the tools are exposed, and the token carries `,_jsx(_components.code,{children:`mcp:tools`}),`. See `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/troubleshooting`,children:`Troubleshooting`}),`.`]}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`MCP Servers`,icon:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=f98bb335a8c57cf64cf3c4950c6519aa`,href:`/ai-gateway/mcp-portal/mcp-servers`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=97f20907084482d95c5224aafb05f014 280w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=f1993d34cd165fcee49a604804596e5d 560w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=5645df80dad280b104ae6003ef4392ee 840w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=e59ab4a97605b358110506b678e2a8aa 1100w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=da5608341846e9eb2e8f11712197a9f5 1650w, https://mintcdn.com/orqai/5ObN7v3L_iHKQp68/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5ObN7v3L_iHKQp68\u0026q=85\u0026s=561e757e7984cdffbfcb624a19f04799 2500w`,children:_jsx(_components.p,{children:`Authentication, OpenAPI, sync, health, and server lifecycle.`})}),_jsx(Card,{title:`MCP Gateways`,icon:`network-wired`,href:`/ai-gateway/mcp-portal/mcp-gateways`,children:_jsx(_components.p,{children:`Tool exposure, Code mode, access, and limits.`})}),_jsx(Card,{title:`Connect clients`,icon:`plug`,href:`/ai-gateway/mcp-portal/mcp-gateways/connect-clients`,children:_jsx(_components.p,{children:`Client setup, OAuth, client credentials, and API keys.`})}),_jsx(Card,{title:`Troubleshooting`,icon:`wrench`,href:`/ai-gateway/mcp-portal/troubleshooting`,children:_jsx(_components.p,{children:`Fix a client that connects but lists no tools.`})})]})]})}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":"Quickstart","sidebarTitle":"Quickstart","description":"Add an MCP server, sync it, build a gateway, and connect a client.","href":"/ai-gateway/mcp-portal/quickstart"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Before you start","slug":"before-you-start","depth":2,"children":[]},{"title":"Walkthrough","slug":"walkthrough","depth":2,"children":[]},{"title":"Verify","slug":"verify","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":"Quickstart - Orq.ai Documentation","contextualStarterQuestions":[{"_id":"6b0e9ea649e015cdc2c71b37","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"Do I need to host a server?","status":"active","generatedBy":"contextual","path":"ai-gateway/mcp-portal/quickstart","createdAt":"2026-12-01T10:17:10.767Z","updatedAt":"2026-12-01T10:17:10.767Z","__v":0},{"_id":"6b0e9ea649e015cdc2c71b35","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"How do I add an MCP server?","status":"active","generatedBy":"contextual","path":"ai-gateway/mcp-portal/quickstart","createdAt":"2026-12-01T10:17:10.767Z","updatedAt":"2026-12-01T10:17:10.767Z","__v":0},{"_id":"6b0e9ea649e015cdc2c71b36","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"What clients can I connect?","status":"active","generatedBy":"contextual","path":"ai-gateway/mcp-portal/quickstart","createdAt":"2026-12-01T10:17:10.767Z","updatedAt":"2026-12-01T10:17:10.767Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T10:17:05.690Z","originalFileLocation":"ai-gateway/mcp-portal/quickstart.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=\"Add an MCP server, sync it, build a gateway, and connect a client.\">\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=\"Quickstart - Orq.ai Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add an MCP server, sync it, build a gateway, and connect a client.\">\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/quickstart\">\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=Quickstart\u0026amp;description=Add+an+MCP+server%2C+sync+it%2C+build+a+gateway%2C+and+connect+a+client.\u0026amp;theme=baeb3d00f9423288f17dfafb\u0026amp;signature=a88a037a43fad5b75c1562b432fcc289cef2d6ac88217325c8e0e8d5b6b81e05\">\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=\"Quickstart - Orq.ai Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add an MCP server, sync it, build a gateway, and connect a client.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://orqai.mintlify.site/_mintlify/api/og/v2?division=MCP+Portal\u0026amp;title=Quickstart\u0026amp;description=Add+an+MCP+server%2C+sync+it%2C+build+a+gateway%2C+and+connect+a+client.\u0026amp;theme=baeb3d00f9423288f17dfafb\u0026amp;signature=a88a037a43fad5b75c1562b432fcc289cef2d6ac88217325c8e0e8d5b6b81e05\">\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/quickstart\">\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/quickstart.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/quickstart#webpage\",\"url\":\"https://docs.orq.ai/ai-gateway/mcp-portal/quickstart\",\"name\":\"Quickstart\",\"description\":\"Add an MCP server, sync it, build a gateway, and connect a client.\",\"dateModified\":\"2026-12-01T10:17:05.690Z\",\"isPartOf\":{\"@id\":\"https://docs.orq.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.orq.ai/ai-gateway/mcp-portal/quickstart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.orq.ai/ai-gateway/mcp-portal/quickstart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"MCP Portal\",\"item\":\"https://docs.orq.ai/ai-gateway/mcp-portal/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quickstart\",\"item\":\"https://docs.orq.ai/ai-gateway/mcp-portal/quickstart\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.orq.ai/ai-gateway/mcp-portal/quickstart#article\",\"headline\":\"Quickstart\",\"name\":\"Quickstart\",\"description\":\"Add an MCP server, sync it, build a gateway, and connect a client.\",\"url\":\"https://docs.orq.ai/ai-gateway/mcp-portal/quickstart\",\"mainEntityOfPage\":{\"@id\":\"https://docs.orq.ai/ai-gateway/mcp-portal/quickstart#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/quickstart.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","description":"Connect upstream MCP servers, bundle them behind MCP Gateways, and connect clients.","href":"/ai-gateway/mcp-portal/overview"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/ai-gateway/mcp-portal/quickstart"},{"title":"MCP Servers","sidebarTitle":"MCP Servers","description":"Create an MCP Server from an MCP Provider, an MCP URL, or OpenAPI, and choose its authentication.","href":"/ai-gateway/mcp-portal/mcp-servers"},{"title":"MCP Gateways","sidebarTitle":"MCP Gateways","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","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":"Quickstart - 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"]}