Skip to main content

MCP Studio

MCP Studio is the console to put MCP servers in front of your assistants β€” Claude, ChatGPT, Cursor, VS Code, Le Chat, and every MCP client β€” and to run them like any other API of your gateway. In a workspace, you:

  • build a server from what you already have: proxy an MCP server you run, assemble several of them into one, turn an OpenAPI spec or a route of the gateway into tools, write tools as forms or in JavaScript, or mix all of these β€” and give it prompts your users pick and resources their clients read;
  • give your tools an interface with MCP Apps: a card, a table, a chart, a form, shown right in the conversation, written and previewed in the studio;
  • secure it with API keys, OAuth2 through your own identity provider (Keycloak, Auth0, Entra ID…), or open it to everyone, tool by tool, with the Threat Studio on its route;
  • test it tool by tool in a playground, or in a chat with a model that uses its tools;
  • watch it: activity, tools, clients and end users, upstreams, the audit trail of every call β€” sealed, and anchored with a timestamp authority and a locked bucket to prove it untouched β€”, uptime of what it relies on, alerts on Slack, Teams or Discord, and a printable report;
  • publish it in ChatGPT, with every check of the app directory done on the server as it is, its submission sheet ready to import, and new versions reviewed while the published one keeps serving.

The overview of an MCP Studio workspace: its servers and sources, the calls, the tools, the clients

Like AI Studio, MCP Studio stores nothing of its own: a workspace is made of regular Otoroshi entities (a team, MCP virtual servers and connectors, tool functions, routes, API keys, auth modules, alerts) that the studio creates and updates through the admin API. Whatever you do in the studio is visible in the Otoroshi backoffice, and the other way around.

Experimental

MCP Studio is experimental: its screens and behavior may change in future releases.

Prerequisites​

  • The LLM extension installed in Otoroshi (see installation).
  • An active User Analytics (PostgreSQL) data exporter for the dashboards, the audit trail, the uptime and the alerts. Without it, servers, keys, apps, the playground and the chat keep working, and the pages that read the activity stay empty (see built-in dashboards).
  • The Threat Studio (optional): when the WAF extension is installed, a server can be covered by it from its security tab.
  • An LLM provider of the extension, for the test chat.
  • A timestamp authority and an S3 bucket (optional), to anchor the seals of the audit trail with third parties (see a sealed audit trail).

Opening MCP Studio​

MCP Studio is served at /extensions/cloud-apim/mcp-studio, for instance https://otoroshi.oto.tools/extensions/cloud-apim/mcp-studio, with your backoffice session. You can also open it from its tile on the backoffice home page, or by searching "MCP Studio" in the backoffice search bar. What you see and change follows your rights in Otoroshi: a workspace you can only read is shown read-only.

Workspaces​

A workspace gathers the servers of a team and everything they use: sources, functions, apps, API keys, identity providers, alerts. It is an Otoroshi team of its own, and every entity it creates carries its location and metadata.mcp_studio_workspace, which is how the rights, the dashboards and the alerts stay within it.

Sources​

A source is what your tools come from:

  • an MCP server you already run, reached over Streamable HTTP (both revisions of the protocol), SSE or WebSocket, with the headers it needs (vault references accepted);
  • an OpenAPI spec, each operation becoming a tool.

Probe a source before saving it: the studio lists its tools. Each source is then checked every minute (see uptime).

Forward who the call is for. When an assistant says who a call is for β€” ChatGPT names its end user (anonymized), its conversation and the request β€” the server behind receives it as if the client called it directly: as headers (x-openai-subject, x-openai-session, x-request-id) and in the _meta of the tool calls. Your own MCP server keeps its audit trail whole, behind the gateway.

Functions​

Functions are tools you write yourself, each on its own page:

  • HTTP call: a URL with ${argument} placeholders, headers, a body, and what to keep of the json response, so the model reads the part that matters;
  • route of the gateway: called through Otoroshi, its plugins, quotas and analytics applying;
  • JavaScript, written in a full code editor and run in a sandbox;
  • workflow, an Otoroshi workflow taking the arguments as its input, picked among the workflows you can read.

Describe the parameters as rows, write what the model should read to pick the tool, and say its effects: read only, destructive, open world, idempotent. Hosts read them before calling a tool (Claude and ChatGPT ask the user first for a tool that changes things), and the ChatGPT app directory requires them. Declare an output schema for a tool answering structured content, and pick the app its result shows in. Try it calls the function for real, saved or not.

A JavaScript function: its parameters, its code, and a call made from the page

Prompts​

Prompts are what your users would otherwise type again and again β€” plan a trip, review a booking β€” written once and offered by your servers: users pick them in their client (a slash command in Claude, a prompt in VS Code), give their arguments, and get the messages to start from.

  • Text: one message.
  • Messages: a conversation to start from β€” a system prompt, the request of the user, an answer of the assistant to build on. MCP has no system role: a system message reaches clients as a user message.

{{name}} or @{name} in the text is an argument the user gives. Try it shows what a client gets with the arguments you type, saved or not, and the page lists the servers offering the prompt and under which name. A prompt is the same entity as the prompts and prompt templates of the LLM extension, and the servers read it each time it is asked for: a prompt changed is changed on every server offering it.

A prompt made of messages, its arguments, and what a client gets with them

Servers​

A server is the endpoint your assistants connect to: an MCP virtual server and its own route, at https://<server>.<domain>/mcp (or https://<domain>/<server>/mcp, see setup).

The servers of a workspace: the published one, its next version in review, and a server assembled into it

Tools​

Pick the sources and the functions the server serves. For each source: a prefix so two sources never serve the same name, the tools it keeps, and names of their own. Sources fold, and the tools of a large one can be searched and selected at once. A tool that shows its result in an app is marked App, whether it comes from a source or from a function, and the copies of a function made for a new version of the server are marked with that version (v2). The instructions of the server are what clients give their model about using it.

The tools of a server: a source unfolded with its prefix, and the functions it serves

Prompts and resources​

Prompts: pick the prompts of the workspace the server offers, each under a name of its own (plan_trip), with the title and the description users see, and its arguments β€” found in the prompt, each with what the user reads and whether it is required. A prompt sent as one text is a user message, or an assistant message to build on. The prompts of its sources are offered too.

Resources: what the server gives clients to read besides its apps β€” a policy, a guide, a price list, a logo:

  • a text, written in the studio;
  • a file (1 MB at most);
  • an URL read each time a client reads the resource, with its headers and, when asked, the token the client called with; the hosts these URLs may reach can be listed.

Each has an URI (docs://travel/policy.md), a name, a title, a description and a MIME type. Both tabs show what a client sees once saved, the prompts and resources of the sources included.

The resources of a server: a text, a file and a document read from its URL

Authentication​

  • API keys: the clients call it with a key of the workspace given this server. A key can carry scopes (mcp_scopes).
  • OAuth2, the MCP standard: clients sign their users in with your identity provider and the server checks their tokens β€” signature, audience (RFC 8707), and the scopes each tool requires. Clients find the identity provider through the protected resource metadata of the server (RFC 9728).
  • Public: anyone can call it, for public data. IP lists, rate limits and the Threat Studio still apply.
  • Hybrid: on an OAuth2 server, pick the tools open to everyone. A client that has not signed in gets those; the others are for signed-in users. ChatGPT sees all of them and asks the user to link their account when a call needs it β€” a mixed app.

Security​

Scopes per tool, rate limits per tool and per client, IP allow and block lists, the zero-trust controls of the virtual server (pinning of tool definitions, scanning of descriptions, redaction), and the coverage by the Threat Studio.

Quotas cap the calls the server takes before anything else runs, per second, per day and per month:

  • all callers together, a ceiling the server never goes past, whoever calls it;
  • each caller, so one never takes everything: a caller is its IP address, or whatever an Otoroshi expression reads of the request. Assistants call from a few shared addresses, so count their users by what they send, as ChatGPT names its user in x-openai-subject;
  • HTTPS only: a call in plain http is redirected to https.

Bans, attacks, bots and IP reputation are the job of the Threat Studio: cover the workspace once, and open its own workspace in the Threat Studio from the security tab of a server or from the Security tab of the activity, for the incidents, the bans and the rules.

The quotas of a server, and its coverage by the Threat Studio

Addresses​

A server answers on its address in the studio domain, and on hosts of your own (mcp.example.com) added in its settings at any time: point their DNS at the gateway, the server answers on each with the same paths. An address belongs to one server, so moving it from a server to another one is how a new version takes over. With OAuth2, each address is its own protected resource: a client gets its tokens for the address it uses.

Connect​

The URLs of the server and ready-made configurations for Claude Code, Claude, Cursor, VS Code and the other clients, with the key of your choice when the server uses keys.

Identity providers​

Add the OAuth2 / OIDC server your users sign in with from its issuer (a Keycloak realm: https://keycloak.example.com/realms/<realm>) or from the URL of its configuration (…/.well-known/openid-configuration or …/.well-known/oauth-authorization-server). The studio reads it and tells you what MCP clients need of it: signed tokens, PKCE S256, dynamic client registration or client ID metadata documents, the issuer in the authorization response. It becomes an Otoroshi OAuth2 auth module, which the servers of the workspace pick in their security tab. The studio never runs the authorization server itself.

Apps​

An MCP App is the interface a tool shows its result in, inside the conversation of the hosts that support MCP Apps (Claude, ChatGPT, VS Code, Goose…). In the studio, an app is a few files β€” an html entry, its scripts and its styles β€” edited file by file in a full code editor (highlighting, completion, html, css, JavaScript and json) and previewed live, the way a host shows it:

The editor of an app: its files, and the app previewed with its sample call

  • start from a template: blank, card, table, chart, or actions calling other tools;
  • preview with the sample call of the app, or with a real call of a tool showing it; the preview runs the app in a sandbox of its own under the content security policy it declares (with its own storage and cookies, never the ones of the studio), answers its calls to the tools and resources of the server, and lists every message exchanged with it;
  • declare what it reaches: the APIs it calls, the hosts of its scripts, styles and fonts, the sites it frames, and its sandbox domain;
  • bind it to tools of the servers of the workspace, from the app or from a function.

The server serves the app as a ui:// resource (text/html;profile=mcp-app), its files put inline, and the tools bound to it point at it.

Every app gets the bridge with <script src="mcp-app-bridge.js"></script>: mcpApp.onToolInput, onToolResult, structured, callTool, readResource, sendMessage, updateModelContext, openLink, requestDisplayMode, and the theme of the host applied to the page. Apps written for the OpenAI Apps SDK (window.openai) run in every host as well.

For ChatGPT, an app also carries the keys of the OpenAI Apps SDK: its output template, its widget CSP (with the domains openExternal may open), its description for the model, its domain, and the status texts ChatGPT shows while the tool runs.

Test​

Playground​

From the Playground of the menu (a server picked at the top) or the tab of a server: what a client sees of the server β€” its tools, resources and prompts, and the names served twice β€” and calls of its tools for real, from a form built from their input schema or as raw json. Call as the studio, or as one of the API keys of the workspace with its scopes, rules and rate limits. The result shows its content, its structured content, whether the tool failed, the raw JSON-RPC answer, and the app of the tool when it has one. The last arguments of each tool are kept for the next call.

The playground: a tool of the server called for real, its result and its app

Chat​

A conversation with a model of the extension that uses the tools of a server, the studio being its MCP host:

  • pick the provider and the model: the models the provider lists that can chat, when it lets its callers choose, or any other you type; the last ones you picked come back with the next conversation;
  • the model gets the tools as a client sees them, and a system prompt made for testing a server (its instructions included, and the tools showing their result in an app called first, without asking), which you can change per conversation ({apps} puts that rule in a prompt of your own);
  • each tool call shows as a card β€” arguments, duration, result β€” and its app, when it has one, shows in the conversation: what the app says becomes a message, the tools it calls are run;
  • tool calls run automatically, or ask first (always, or for the tools that are not read only);
  • tool calls can carry what ChatGPT sends (an anonymized end user, the conversation, the locale), to test a server published in ChatGPT;
  • tokens, cost, time to the first token and latency under each answer, a debug drawer with every request and response;
  • delete a question or an answer (with the results of its tool calls) to replay a test from where it went wrong, edit and send a question again, or regenerate the last answer;
  • type / to use a prompt of the server, as a user would in their client: give its arguments, and its messages start the conversation, the last one ready to send;
  • conversations are kept, can be renamed, exported in Markdown or JSON, or not kept at all (temporary);
  • test profiles keep a way of testing for the whole workspace: a model and its settings, a system prompt, the API key the tools are called as, the tools offered and how their calls are approved. Pick one at the top of the chat, save the settings of a conversation as a new one or into the one it uses, and choose the profile new conversations start with β€” the reviewer of an app store, a customer on the website, a tester trying everything without being asked.

The completions go through the provider with its whole chain: guardrails, budgets, costs, audit, for you as the user.

The test chat: the model calls a tool of the server, its app shows in the conversation

The settings of a conversation and its test profile, used for the new conversations

Observe​

  • Overview: the servers and the sources at a glance, the alerts of the last hour, requests, tool calls, failures, latency and upstream calls, and what the period looked like.
  • Activity, in tabs that keep the server and the period you picked: Overview, Tools (calls, failures, latency percentiles per tool), Clients & users (MCP clients, users, API keys, and the conversations and end users ChatGPT names), Upstreams, Gateway (statuses, latency, overhead and traffic of every server together, or of one) and Security (Threat Studio, zero trust).
  • Raw events: in the Gateway tab, every request of the servers as the gateway recorded it β€” method, path, status, durations, client address β€” with the client addresses by request count, and in the Security tab, each decision of the Threat Studio (what fired, what it did, against whom) and the requests its WAF rules inspected. A row opens the event as it was stored; an address shows the requests it made.
  • Where calls come from: with the Threat Studio, the client addresses are located β€” country, network (the cloud an assistant calls from, a hosting provider, an ISP) β€” from its geolocation and network databases.
  • Audit trail: every call, one by one β€” server, method, tool, client, user, end user, conversation, IP, status, duration β€” filterable by tool, client, status, conversation and request, with the upstream calls made for it, its HTTP request as it reached the gateway (method, address, query, headers, the values holding a credential masked; keep the HTTP request, on for new servers), and its arguments and result when the server keeps them (capture payloads, in its settings). Both are in the events the seals hold.
  • Uptime: the sources are asked for their tools every minute; availability, latency and incidents.
  • Alerts: failure rate, failures, p95 latency, no traffic, failing probes, blocked calls, posted to Slack, Microsoft Teams, Discord or any webhook, checked every minute.
  • Report: a printable summary of the period.

The client addresses of the servers, located, and their requests one by one

The decisions of the Threat Studio on the requests of the servers, with the network of each source

A sealed audit trail​

Turn on Seal the audit trail in the danger zone (MCP Studio) and the audit trail can be proven untouched. Every minute or so, the gateway seals the calls of the trail that are a little older than now: each seal holds the Merkle root of its calls, their count, and the hash of the seal before it, so the seals form a chain, and it is signed with a key pair of Otoroshi (created for the seals, or the one you name), whose public key is published as a JWKS. With Seal the payloads too, the arguments and results kept for the calls are sealed the same way, in a chain of their own.

The audit trail says up to when it is sealed. Verify the period checks the seals of the period again β€” their signatures, their chain β€” and reads their calls and payloads again: a call changed (even one column, the tool or the status), an answer of a tool rewritten, a row removed, or added afterwards in a sealed period shows, with the seal it breaks.

The audit trail: calls and payloads sealed, anchored with a timestamp authority and a locked bucket, and the period verified intact

Anchored with third parties​

Seals prove the trail was not changed by someone without the key. To prove it to anyone β€” an auditor, a court, a customer β€” even against someone holding the key and the database, turn on Anchor the seals. Every hour (or what you set), the gateway writes, for each organization, an anchor holding the last seal of each chain β€” whose hash holds every seal before it β€” chained and signed like the seals, then:

  • has it stamped by a timestamp authority (RFC 3161): a third party signs that this hash existed at that time. Any public or qualified authority works (FreeTSA, DigiCert, Sectigo, a qualified eIDAS provider…), with the headers it wants (an API key) and the certificates you trust it for;
  • copies it to a bucket (S3, or any server speaking its API) under <prefix>/<organization>/anchors/<number>.json, with the public keys (keys.json). With object lock in compliance mode, no one β€” the gateway included β€” can remove or rewrite a copy before its retention ends, and a copy is never written twice.

Each step is optional, and an anchor waits for its timestamp while the authority can not be reached. The audit trail then says up to when it is anchored, and Verify the period also checks the anchors that hold the period: their timestamps (over the right hash, signed by a trusted authority) and their copies, read back from the bucket.

Someone…Found by
changes, removes or adds a call or a payloadits seal: Merkle root, count
changes or removes a sealits hash, its signature, the chain
holds the key, and seals the trail again from scratchthe anchors: they hold the seals of before
holds the key, and anchors againthe timestamps (over other hashes) and the copies of the bucket
removes the last anchorsthe bucket holds anchors the database does not

Proof for an auditor​

Proof downloads the seals of the period, their rows, the anchors that hold them, the public keys and the certificates of the timestamp authority. An auditor checks it away from the gateway, with node and openssl only, against the copies of the bucket and the root certificate of the authority they trust:

aws s3 sync s3://<bucket>/<prefix> ./copies
node scripts/mcp-audit-verify.mjs audit-proof.json --keys ./copies/keys.json --copies ./copies --tsa-ca tsa-root.pem

The script recomputes every Merkle root from the rows, every hash, checks every signature and chain, has openssl verify every timestamp (openssl ts -verify), and compares every anchor to its copy.

Publish in ChatGPT​

The Publish tab of a server checks what OpenAI checks when the server is submitted to the ChatGPT app directory, on the server as it is: a public HTTPS endpoint, its authentication (OAuth 2.1 with PKCE and client registration, or public, or mixed), the audience of its tokens, the verification of its domain, one tool per operation, the effects, descriptions, names and output schemas of the tools, the domains and policies of its apps. Each check says what to change.

The checks of the ChatGPT app directory, run on the server as it is

From the same tab:

  • ChatGPT compatibility: each tool says how it is authenticated (securitySchemes), and a call missing a scope answers the OAuth challenge that makes ChatGPT ask the user to link their account;
  • domain verification: paste the token the OpenAI dashboard gives, the server answers it at /.well-known/openai-apps-challenge;
  • for the OpenAI dashboard: the URL, the authentication, the client registration mode, the issuer, the scopes and the redirect URIs to allow, ready to copy, and what else the submission asks for.

The submission sheet​

Fill in once what the submission form asks for, next to the server it describes, checked against the limits of OpenAI as you type:

  • the listing: a name and a subtitle of 30 characters at most, a description of 4000, a category of the directory, the developer name;
  • the links: website, support, privacy policy and terms of service, all in https;
  • the review: a video of the app in use, the release notes, the demo account the reviewers sign in with (its password only goes in the OpenAI dashboard), instructions, and what embedded pages do when an app frames other sites;
  • why each tool reads only or writes, reaches the open world or not, destroys or not, started from the effects the tool already declares;
  • 5 prompts that should use the app β€” the scenario, the prompt, the tools it should call, the expected result β€” and 3 that should not, each one opened in the test chat in one click, to run it the way the reviewers will.

Download the import file and import it in the OpenAI dashboard: the sheet in its chatgpt-app-submission.v1.json format, the listing, the tools with their effects and justifications, and the test cases.

The submission sheet: the listing, its links, checked against the limits of OpenAI

Versions and switch​

OpenAI keeps a published app on its URL, and keeps serving the published version while it reviews the next one. MCP Studio gives each version a server of its own, and moves the address when the time comes:

  • prepare the next version: a copy of the live server β€” its functions and apps copied, its sources shared or copied β€” on an address of its own (<server>-review), with the same keys and the same domain token. Change it freely, the store keeps calling the live one; submit it for review on its own address;
  • see what changes: new tools (OpenAI holds them until it approves them), removed tools, and tools whose description, schemas, effects or app changed;
  • switch when the review is done, now or at a date and time: the next version takes the addresses of the live one without a gap, its alerts follow, and the version it replaces stays on a versioned address (<server>-v1) for the time you choose, to roll back in one click;
  • then the old version is retired: its server, its route, and the copies made for it that nothing uses any more. A switch that would not pass the checks of the app directory waits for you.

Every step is kept in the history of the publication, and the list of servers shows which one is in the store, in review or previous.

The versions of a published server: the live one, the next one in review, what changes, and the switch

Test the prompts of your submission in the chat first: it calls the tools the way ChatGPT does.

Setup​

MCP Studio is configured in the danger zone of Otoroshi, under the MCP Studio section:

  • MCP Studio enabled: whether the console is served;
  • Environment: a label (production, staging…) shown in the studio and before the alerts it posts;
  • Servers domain and Servers exposure: a subdomain per server (<server>.<domain>/mcp, needed to publish in ChatGPT) or a path (<domain>/<server>/mcp);
  • Public scheme and Public port: how the URLs of the servers are written;
  • Default quotas of the API keys it creates;
  • Seal the audit trail, Key pair of the seals, Seal every and Seal the payloads too: the seals of the audit trail (a user analytics exporter must be running);
  • Anchor the seals and Anchor every: the anchors of the seals;
  • Timestamp authority, its trusted certificates (ids of certificates of Otoroshi, or PEM) and its headers: where the anchors are stamped;
  • Copies bucket, endpoint, region, access and secret keys (vault references work), prefix, path style access, object lock and retention: where the anchors are copied.