Skip to main content
Version: Studio 2.2.32

MCP server

For Studio users with the URL of a Model Context Protocol (MCP) server that speaks streamable HTTP. Agents call the server's tools directly, as their own tools; Studio signs in to the server for them, and the server's credentials never reach the agent's code.

Before you start: the URL must be the http or https endpoint that answers (https for client credentials, AWS IAM and the each-person methods), on a public host or, on a private deployment, inside the deployment's internal service ranges (Data Bridge). Studio supports streamable HTTP only and does not follow redirects.

Create a connector​

  1. In Data Bridge, click Create connector, choose MCP Server as the Connection type, and fill Name, Description and Connector Guide, for example "Attribution and realised volatility tools for the equity desks."
  2. Under Connection settings ("The MCP server endpoint (streamable HTTP). Agents call its tools directly; its credentials stay in AWS Secrets Manager and never reach the sandbox."), enter the MCP Server URL, for example https://mcp.example.com/mcp.
  3. Under Authentication Configuration, choose the Sign-in method and fill its fields (Sign-in methods). For Custom headers or Query parameters, fill the credential rows under Credentials and validation.
  1. Click Test connection. Studio signs in, opens a session and lists the server's tools. A pass reads Passed "Connected to server; n tools found."; a failure shows Failed with a sentence that says what went wrong (Test connection results).
  2. After a pass, Tools lists the server's tools: choose the access each one has (Choose the tools agents may use).
  3. Optionally click Discover tools and improve guide. Studio streams a guide naming each tool and when to use it; edit it, then click Use this guide or Discard. This step is not required, but once you run it you must use or discard the guide before saving.
  1. Click Create connector. When the test passed, Studio tests the saved connector too, so its page shows Last verified.
  2. Add the connector to an agent from its Agent Map (Agents: configure and activate).

Sign-in methods​

Sign-in methodUse it whenWhat you fill in
No authenticationThe server needs no credentialNothing
Custom headersThe server takes a key or token in a request headerRows of Credential key, an optional header name and Value, up to 12. Tick Each person adds their own key to have each person enter their own values (personal keys)
Query parametersThe server takes a key in the URLRows of Query parameter name and Value, with the same tick box
Sign in with client credentialsThe server accepts OAuth 2.0 access tokens from your identity provider, such as Microsoft Entra IDToken URL, Scope, Audience (optional), Client authentication, Client ID, Client secret
AWS IAMThe server takes AWS Signature Version 4, such as an Amazon Bedrock AgentCore Gateway with AWS IAM inbound authorisationRegion, Signing service, Which role signs, and for Assume a role a Role ARN
Sign in with OAuth (each person)The server signs each person in with OAuthSet up once; each person connects their own account (MCP: each person signs in)
Sign in with Microsoft (each person)The server must receive each person's own Microsoft Entra ID tokenDirectory (tenant) ID, Application (client) ID, Client secret, Scope (MCP: each person signs in)

Client credentials, AWS IAM and both each-person methods need an https server URL.

Sign in with client credentials​

"Studio gets a token from your identity provider with this client ID and secret, keeps it until shortly before it expires, and sends it to the server. The secret is stored in AWS Secrets Manager." Studio sends the token as Authorization: Bearer, and fetches a new one when the old one expires or the server rejects it, with no action from you.

  • Token URL: your provider's token endpoint, which must be https, for example https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token.
  • Scope: for Entra ID, the API's Application ID URI followed by /.default, for example api://<application-id>/.default. A copied Application ID URI already starts with api://.
  • Audience (optional): "Microsoft Entra ID takes the audience from the Scope, so this can stay blank. On an Amazon Bedrock AgentCore Gateway, accept Entra tokens by allowed audience or allowed scopes, not allowed clients: Entra tokens carry azp, not the client_id claim that allowed clients checks."
  • Client authentication: Send in the request body (the default) or Send as HTTP Basic, whichever your provider expects.
  • Client ID and Client secret: required on Create connector. On Update both start blank: "Blank keeps the stored client ID" and "Blank keeps the stored secret". A new client ID needs its own secret, so typing one marks Client secret required; switching to client credentials from another sign-in method needs both.

AWS IAM​

"Studio signs each request with AWS Signature Version 4, for example to an Amazon Bedrock AgentCore Gateway. No secret is pasted."

  • Region: for a gateway URL of the form <id>.gateway.bedrock-agentcore.<region>.amazonaws.com, leave it blank and the form shows "Read from the server URL: region". For any other host, enter it.
  • Signing service: leave it blank for bedrock-agentcore.
  • Which role signs: Use this Studio’s role, or Assume a role with the Role ARN of a role in your account (arn:aws:iam::<account id>:role/<name>).
  • Click Show Role setup (for Assume a role, after entering the ARN). It shows each value to paste into AWS, with Copy on the single values:
Which role signsRole setup shows
Use this Studio’s roleThis Studio’s role, Signing service, Region and an Example resource policy for the gateway: "Allow the role below to invoke your gateway, for example with the resource policy shown, then test the connection."
Assume a roleExternal ID (unique to this connector; required by the trust policy), Signing service, Region, the Trust policy (the role’s trust relationship) and an Example permission policy for the role: "Add the trust policy to the role, give the role permission to invoke the gateway, then test the connection."

The External ID is created by Studio and cannot be edited; once Role setup has issued one, the form keeps it. Role setup is also on the connector's page.

Test connection results​

Test connection on the form and on the connector's page run the same check: sign in, open a session and list the tools, within 20 seconds. Studio reads every page of the tool list the server returns, up to 100 pages, so a server with many tools, such as an AgentCore Gateway with several targets, shows all of them. A failure shows one plain sentence in the Failed box, and a hint where one helps:

What happenedWhat you see
The server refused the credentials"The server rejected the credentials (401). Check the client ID and secret, the scope, or the header values."
The server refused this identity"The server accepted the credentials but refused access (403). Ask the server's owner to allow this identity."
The token endpoint refused the client"The token endpoint rejected the client ID or secret (error)."
The token endpoint returned no token"The token endpoint did not return an access token (HTTP status)."
Studio could not assume the role"Studio could not assume the role role ARN (403). Check that its trust policy allows this Studio and requires the External ID shown in Role setup."
No External ID yet"This connector has no External ID yet. Open Role setup to create one."
The server's certificate is not trusted"The certificate for host is not issued by a trusted authority. If it comes from your own CA, an administrator can add it under Trusted certificate authorities on the deployment's Overview in Organisations."
The trusted certificate authority expired"The certificate authority this Studio trusts for host has expired."
The host cannot be reached"Could not reach host. Check the address, and that the server can be reached from this Studio's network."
No answer in time"The server did not answer within n seconds."
The server redirected"The server answered with a redirect. Studio does not follow redirects; enter the final address."
The address is not an MCP endpoint"The server answered but is not an MCP server at this address (HTTP status). Check the path, for example /mcp."
The server failed"The server failed (HTTP status). Try again later."
A downloaded copy has no credential here"This connector needs a credential before agents can use it. Open it in Data Bridge and add one." with "Add a credential to this connector, then test again."
The server's tool list does not end"The server's list of tools did not end within 100 pages, so Studio stopped reading it. Ask the server's owner to check the list, or to offer fewer tools at this address." Studio stops rather than read without end or keep a partial list.
You have not connected your account"Connect your account to use this tool."
Your organisation's policy refuses it"Blocked by your organisation's policy." and the reason (Connector policy, credentials and activity)

A 403 from an AgentCore Gateway that takes Entra ID tokens can mean the gateway checks allowed clients; set allowed audiences instead (Sign in with client credentials). "The server answered but is not an MCP server at this address (HTTP status)." comes only from Test connection and the start of a session, where it means the path is wrong. Once a session is open, an AgentCore Gateway that refuses a call with HTTP 400, 404 or 500 reaches the agent as the tool's own refusal, with the gateway's message (Notes). An address refused by the network rules names the host, the address and the reason (Data Bridge).

On the connector's page, Connection shows "Sign-in:" with the method, then Last verified or Never verified. A failed test there also shows Last test failed with its time and reason until the next pass.

Choose the tools agents may use​

After a passing test, Tools lists every tool the server offers ("Choose one access level for each tool. Blocked tools cannot be used by agents. Approval required means a person must approve each use. Always asks: asks even when a chat or Flow uses Don’t ask."):

AccessMeaning
BlockedAgents cannot use the tool.
Allowed without approvalThe tool runs when an agent calls it.
Approval requiredEach call waits for a person to allow it.
Always asksEach call waits for a person to allow it, even when a chat or a Flow is set to Don't ask. Hovering the Always asks column heading reads "Asks even when a chat or Flow uses Don’t ask". Available from Studio 2.2.16.

Only the connector's owner can set a tool to Always asks, and choosing another access level for the tool ends it. Nothing else allows it: an approval rule, Don't ask or a Flow's When nobody answers setting cannot, and neither Allow similar in this run nor Always allow in this Flow is offered on it (Approval modes and rules).

Every tool starts allowed. A tool that marks itself read-only starts Allowed without approval; every other tool starts Approval required. A tool shows Can change data when the server marks it destructive, and Not marked read-only when it does not mark it read-only. Search tools filters a long list.

On the connector's page, the Tools section shows the same table with "n of m tools enabled". Refresh tools reads the server's whole tool list again: tools you already set keep your choices, new tools get the defaults, and tools the server no longer offers are listed under No longer on the server. Save tool settings saves a new version ("Will save as new version N", then "Saved as vN."). Agents pinned to an older version keep its tools until they move, except that blocking a tool or requiring approval for it applies at once.

In chat and Flows​

The agent calls the connector's tools as its own tools. Each call appears as a tool call card titled "connector · tool".

A call to a tool that needs approval waits: the card reads "tool: waiting for your approval", and the ask "Allow tool on connector?" appears in chat, in Lens and in the Inbox. Allow runs this one call, with exactly these arguments. Deny refuses it and sends your note to the agent; the card then reads Denied, as it does when nobody decides in time: a call nobody decides on within 30 minutes is not run. Stop the run ends the run (Files, previews and approvals).

A large text result is saved for the agent. A result longer than 30,000 characters (Tool result size kept in view) is saved in full as a JSON file, laid out one field per line, in the chat's or run's Saved results (the tool-results folder). The agent receives the first 4,000 characters of the result as a preview (Preview of a saved result), with the file's path and the line "Nothing was cut from the file". It reads the rest with its read tools or hands the file to its coder (Large results and long work). Results saved by earlier releases under _tool_output/mcp/ stay readable, and nothing new is written there.

Files a tool returns are never counted or carried as text: they are saved to Folio (Files a tool returns).

Files a tool returns​

When a tool returns a file, for example a research PDF from a broker research portal, Studio saves it to Folio as a real file with where it came from, and tells the agent and you.

  • Where it goes. Into the chat's or run's folder, under From connectors › the connector's name, named after the report: "Broker Research returned a PDF: Q3 initiation report.pdf, 14 pages, saved to Files." A File added card appears in the chat, and in Folio the From connectors filter finds it.
  • What the agent gets. For a PDF, its text (the first 1,500 characters in the result, the rest through a .txt copy beside the file) and the PDF itself for its analysis. A spreadsheet, Word or PowerPoint file is loaded in its analysis. A small image (PNG, JPEG, GIF or WEBP) is also shown to the model when it is a Claude or Nova model. The agent never receives the raw file data.
  • What you see. The file's viewer reads "Source: Broker Research · get_report · 19 Nov 2026, 06:14 UTC", and File details lists the connector, tool, time and who asked for it (Files, previews and approvals). In Lens, the call reads Saved, Saved as a new version, Already saved or Refused, with what was returned and what was saved.
  • Kinds saved. PDFs, PNG, JPEG, GIF and WEBP images, Excel, Word and PowerPoint files, CSV, text, JSON and Markdown. A CSV, JSON, Markdown or text resource is saved as a file and its text still reaches the agent. Any other kind is refused: "Broker Research returned a file type Studio does not save (application/x-msdownload). Ask the server's owner for a PDF, image, spreadsheet or text file." An HTML page, SVG or script sent as a resource is refused the same way and its text is withheld.
  • Links. When a tool returns a link to a file, Studio reads it through the same connector, with the same sign-in and approval, and saves it: "Broker Research linked to a PDF: …, saved to Files." Studio never fetches a web address itself. At most 5 links are read per call by default; a link the server does not offer to read is reported, not dropped.
  • Saved once. The same file returned again saves nothing: "Broker Research returned Q3 initiation report.pdf again. It is already saved in this chat, so no copy was made." The same report returned with different content (a portal that stamps each download) becomes a new version of the same file.
  • Same in chats and Flows. A Flow step's connector files go to the run's folder and are removed with the run's files unless you keep them. When the Flow's personal data protection covers connector results, a PDF, CSV, JSON, Markdown or text file is redacted before it is saved and the original is never kept; other kinds are saved unchanged and reported as not redacted. A PDF whose text cannot be read to remove personal data, such as a scan, is not saved in that Flow: "Broker Research returned a PDF whose text Studio could not read to remove personal data, so this Flow did not save it. Ask the server's owner for a version with readable text." (PII redaction).

Files a connector fetched with your own sign-in stay yours (MCP: each person signs in).

Size limits for files​

"Files a tool returns are saved to the chat's or run's Folio Files: PDFs, images, spreadsheets, Word and PowerPoint files, CSV, text, JSON and Markdown, up to 25 MB from one call and 200 MB per chat turn or run. Through an AgentCore Gateway, the gateway's own limit applies first (about 15 MB for one file), and a file over about 6 MB can take longer than the connector's timeout: ask your administrator to raise the Connector request timeout on the deployment's Runtime limits in Organisations (up to 300 seconds) for large files." Both are Studio defaults your administrator can change (Connector file size and Connector files per run); the connector's page shows the values your deployment uses. The 25 MB is the size of the files themselves, one or several together, not of the result that carries them, and the result size limit no longer counts files. These limits bound what Studio accepts and saves, not what the server sends.

What happenedWhat the chat and the agent read
One file too large"Broker Research returned a 31 MB PDF, more than the 25 MB Studio accepts from one call. Ask for one report rather than the whole pack."
Several files too large together"Broker Research returned 4 files, 38 MB together, more than the 25 MB Studio accepts from one call. Ask for fewer files at a time."
The chat turn or run has saved its most"Broker Research returned a 12 MB PDF, but this run has already saved 200 MB from connectors, the most Studio saves at once. Start a new chat or run for more files."
A file that is not what it says"Broker Research returned a file that says it is a PDF but is not one, so Studio did not save it. Ask the server's owner to check the file."
Damaged data"Broker Research returned a file Studio could not read because its data was damaged, so nothing was saved."

Nothing is saved when a file is refused, and the agent says so. Through an Amazon Bedrock AgentCore Gateway the gateway's own limit applies first: Large files through the gateway.

Nothing for the server is available in the agent's Kernel: no URL, header, token or key. Studio holds the credentials and makes every call.

Recipe: this documentation as a connector​

This site publishes a read-only MCP server at https://docs.alphaagent.prometheusrl.com/mcp. It needs no credential and offers three tools, search, fetch and list_sections, each marked read-only.

  1. Create connector, type MCP Server; name it "Product documentation", with the guide "Answers questions about AlphaAgent Studio and Organisations from the public documentation."
  2. MCP Server URL: https://docs.alphaagent.prometheusrl.com/mcp; Sign-in method: No authentication.
  3. Test connection: "Connected to server; 3 tools found." The three tools start Allowed without approval; leave them.
  4. Create connector, add it to an agent, and ask "How do I create a Snowflake connector?". The agent calls search, then fetch, and answers from the page. To use the server from other tools, see Connect your agent.

Notes​

  • Limits: streamable HTTP only; public hosts, or internal hosts in the approved ranges (never loopback, link-local, metadata or the deployment's own addresses); redirects not followed; 30 seconds per request by default (Connector request timeout, 5 to 300 seconds, set on the deployment's Runtime limits tab in Organisations), which also bounds the wait for a tool's result, so a call never waits longer than the connector's timeout and the sentence names that limit; 12 credential rows; 64 tools enabled per connector; one tool result at most 25 MB, not counting its files; files at most 25 MB from one call and 200 MB per chat turn or run; 200 connector tool calls per run, at most 6 in flight at once, the rest waiting for a free slot (Limits and quotas).
  • Changing the server URL or the sign-in method clears the last test and its tools: test again.
  • A new connector shows Choose this connector's tools until its owner saves a tool selection; agents cannot use it before then. A connector added before tools could be chosen shows Review this connector’s tools instead: "This connector was added before tools could be chosen here. Agents can use every tool the server offers, and tools that do not say they are read-only ask before running. Review the tools to choose." Click Review tools, set each tool's access and click Save tool settings.
  • A connector downloaded from a Library may arrive as Needs a credential (Data Bridge).
  • An agent call refused for a reason the agent can act on reads, after "connector (tool): ", "This tool is not enabled for agents. The connector's owner can enable it.", "The server does not offer this tool any more.", "The server refused the arguments: …", "The tool returned an error: …", "The result is larger than 25 MB, more than Studio accepts from one call. Ask for less, for example a narrower range." or "This run reached its limit of 200 connector tool calls." An AgentCore Gateway's refusal of a call (a wrong argument, a tool it no longer offers, or a failing target) arrives as one of these sentences with the gateway's own message, never as a connection failure, so the agent does not repeat a call that already reached the tool. A result is judged by the server's answer to the call alone.
  • After rotating a credential at the server, click Update, enter the new values and save a new version.