Skip to main content
Version: Studio 2.2.7

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."):

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.

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 result arrives as a file: anything over about 24,000 characters is saved as a JSON file in the conversation's or run's workspace under _tool_output/mcp/, appears in Files, and the agent receives its first 4,000 characters and reads the rest from the file, in its own code when it needs to.

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, 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; 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.