Skip to main content
Version: Studio 2.2.32

MCP: each person signs in

For the person who creates an MCP server connector for a server that must know who is calling, such as a research or market data provider licensed per user, and for everyone who then uses it: each person connects their own account or key, and an agent's calls run as the person whose chat or run it is.

Before you start: read MCP server for the connector basics. Sign-in with OAuth or Microsoft needs this Studio's sign-in address; until an administrator sets it up, Connect answers "Sign-in is not set up on this Studio yet. Ask your administrator to update the Studio."

Choose how each person signs in​

In Authentication Configuration, set Sign-in method to one of these, or tick Each person adds their own key under Custom headers or Query parameters.

ChoiceUse it whenWhat each person does
Sign in with OAuth (each person)The server signs people in with OAuth as its own users. For a server behind Microsoft Entra ID, prefer the next rowClicks Connect and signs in at the provider
Sign in with Microsoft (each person)The server is behind Microsoft Entra ID and must see the caller, such as an Amazon Bedrock AgentCore Gateway (Amazon Bedrock AgentCore Gateway)Clicks Connect Microsoft account
Each person adds their own keyEach person holds their own licence key or token for the serverClicks Add your key and enters their own values

The connector's definition (address, sign-in method, tools and their access) is shared by everyone who can use it. The connections are not: each person's connection is theirs alone.

Sign in with OAuth​

"Each person signs in with their own account the first time an agent needs this server. Studio keeps each person's sign-in for them alone and never shares it."

  1. Create an MCP Server connector with an https MCP Server URL, and set Sign-in method to Sign in with OAuth (each person).
  2. Choose Client registration:
    • Register automatically: Studio registers itself with the provider's sign-in service the first time someone connects, and reuses that registration.
    • Use a client registered with the provider: enter the Client ID the provider gave you and choose Client authentication: None (public client), Send in the request body or Send as HTTP Basic. For the last two, enter the Client secret.
  3. Optionally enter Scope (optional), and Authorisation server (optional) (https) when the server does not say where its sign-in service is. When the sign-in service is Microsoft Entra ID and the server lists no scopes, the Scope is required (A server behind Microsoft Entra ID).
  4. Click Check sign-in. It shows "Sign-in service: address" and one of "Studio can register itself with this sign-in service.", "Studio will use the client registered with the provider." or "Studio cannot register itself here. Use a client registered with the provider." It also fills in the Redirect URI ("Register this address with the provider."). A failure says why, for example "The server did not say where to sign in. Enter the authorisation server address, or check the server address."
  5. Click Test connection. For this method it finds the sign-in details and does not need a connection: "Sign-in details found. Save the connector, then connect your account to list its tools." Discover tools and improve guide is not offered. Click Create connector.
  6. Connect your own account (Connect and Disconnect), then list the tools with Review tools or Refresh tools in the Tools section, set each tool's access and click Save tool settings (Choose the tools agents may use). Until then people see "The connector's owner has not chosen its tools yet."

Studio signs in with OAuth 2.1 and PKCE, and refuses a sign-in service that does not support PKCE with S256: "The sign-in service does not support the secure sign-in method Studio requires (PKCE with S256)." A sign-in service that lists no PKCE methods at all, such as Microsoft Entra ID, is taken to support S256, which Studio then uses.

A server behind Microsoft Entra ID​

For a server behind Entra ID, Sign in with Microsoft (each person) is the recommended method (below), because it asks only for the Microsoft values the server needs and Studio applies Microsoft's sign-in rules for it. Sign in with OAuth (each person) also works; the settings Entra needs and the messages Studio shows are on Amazon Bedrock AgentCore Gateway.

A provider that needs a pre-registered sign-in app​

Some providers do not let a product register itself ("The sign-in service does not let Studio register itself. Choose "Use a client registered with the provider" and enter its client ID."). They issue your organisation a client ID and often a secret for a sign-in app, and ask for the addresses the app may return people to.

  1. Click Check sign-in to get this Studio's Redirect URI, and register it with the provider. It is the same for every connector in this Studio; register one for each Studio that will use the connector. For Microsoft Entra ID, add it under Web on the app's Authentication page: Studio completes the sign-in on its own servers, which Microsoft accepts only for a Web redirect URI.
  2. Choose Use a client registered with the provider, enter the Client ID, the Client authentication the provider expects and the Client secret.
  3. Enter Authorisation server (optional) if the server does not advertise it, and any Scope (optional) the provider documents, then Check sign-in and create the connector.

The Redirect URI has the form https://<your Studio address>/data-connector/connectors/oauth/callback. Each person still signs in with their own account at the provider; the app's secret only proves the request comes from your registered app.

Sign in with Microsoft on behalf of each person​

"Each person connects their Microsoft account once. Studio then calls the server with a token issued to that person, so the server sees who is asking." Studio's own sign-in does not give it a Microsoft token for you, so each person grants the connector's Microsoft app access once; Studio keeps their refresh token, uses it to get an access token for the server's API, and reuses that access token until shortly before it expires. The full set-up for a gateway is on Amazon Bedrock AgentCore Gateway.

  1. Set Sign-in method to Sign in with Microsoft (each person); the MCP Server URL must be https.
  2. Enter Directory (tenant) ID (a tenant ID or verified domain; common, organizations and consumers are refused), Application (client) ID (a GUID), Client secret, and Scope: the API's full delegated scope, its Application ID URI, a slash and the scope name, for example api://<application-id>/access_as_user. A bare name such as access_as_user is read by Microsoft as a Microsoft Graph permission. Do not add offline_access, openid or profile: Studio adds them. Studio refuses a scope without its API and a doubled api://.
  3. Click Check sign-in for the Redirect URI: "Add this redirect URI to the app registration in Microsoft Entra ID, and grant it consent for the scope." Add it under Web on the app's Authentication page. An administrator granting consent once for the whole organisation spares each person the consent prompt, and is required when your tenant does not let people consent for themselves.
  4. Create the connector. Each person then clicks Connect Microsoft account and must use the Microsoft account they use for Studio, or Studio refuses it: "Sign in with the Microsoft account you use for Studio (email)."

Personal keys​

With Each person adds their own key ticked, the rows you define are names only: "Name each key below. Each person enters their own value on the connector's page; no value is stored here." Each person clicks Add your key on the connector's page, fills every key (up to 4,096 characters each) and clicks Save your key: "Your key is stored for you alone in this Studio. Agents use it only for your own runs, and it is never shared." Requests in a chat you share count as your own runs (In a chat you share).

Connect and Disconnect​

In Data Bridge, a connector that signs in as each person shows Each person signs in, and for you Not connected or Connect again until your connection works. Its page has a Your account panel under Access & credentials:

PartWhat it does
StatusConnected, Not connected or Connect again, with "Signed in as account" when known
Connect, Connect Microsoft account or Add your keyOpens the sign-in window, or the key dialog. Afterwards the page reads "Your account is connected."
Test with my accountTests the connector with your own connection, once you are connected
DisconnectAsks "Disconnect your account from connector?", then removes your tokens or keys at once and, where the provider supports it, revokes them

A sign-in must be finished within 10 minutes. If a sign-in window reports a problem, click Connect again: "This sign-in took too long or was already used. Press Connect again.", "This sign-in was started by someone else. Press Connect again." or "Sign-in was cancelled." When Microsoft refuses because consent is missing or waits for an administrator, Studio shows the consent sentence instead (Notes), since connecting again cannot help until an administrator acts. The connect card in chat and the Inbox shows the same sentence.

In chat and Flows​

An agent's call runs with the account of the person whose chat or run it is.

  • When you have not connected, the call waits. The card reads Waiting for you to connect, titled "Connect your account to use connector", with Connect, Not now and Stop the run; the tool call line reads "tool: waiting for you to connect your account", and your Inbox says "Connect your account, or choose Not now." Connect opens the sign-in and the agent carries on once you are connected; a tool that needs approval then asks as usual (MCP server). Not now tells the agent it could not use the tool, and the call reads Not connected. A call nobody completes within 30 minutes is not run.
  • A Flow you start runs as you. A scheduled run runs as the person who created the schedule. Before a Flow run starts, Studio checks that the person it runs as is connected to every such connector its steps' agents use, even one a step may never call. When you start the run, Start run waits until you Connect. A scheduled run that meets an unconnected or expired sign-in does not start: it is recorded as Not started, and its creator is told in the Inbox. A day before a scheduled run, the creator is warned if a sign-in it needs is missing or will expire (Flows: check access before a run).
  • A run started with an API key has no person to act as: "This connector signs in as each person, so runs started with an API key cannot use it." Before such a run starts, the check warns "@pull-broker-notes uses EQ Research, which signs in as each person, so runs started with an API key cannot use it." and the run still starts.
  • A banner reminds you when you need to connect or connect again (Banners you may see).

Files fetched with your own sign-in​

A file a tool returns through your own sign-in is saved to Folio like any other connector file (Files a tool returns), and it is personal to you: research licensed to you stays with you.

  • It carries the mark Personal sign-in: "Fetched with your own {connector} sign-in. It stays in your Folio and cannot go in the Team folder. Others never see it, not even in chats you share."
  • No one else sees it, in listings, search or Everyone's files, and a colleague's agent cannot read it, even in a governed deployment. The same holds for its text copy, its previews and every copy Studio makes of it: a kept copy, a run's copy or a new version.
  • It cannot be moved to the Team folder, built into an Intelligence Graph or copied into a run another person starts. A run started by someone else that names it stops before its first step: "The run could not start: {name} was fetched with another person's own sign-in, so only that person's runs can use it." A folder input leaves it out.
  • You use it like any other file of yours: in a chat, in your own Flow runs, kept, with its uses listed.
  • What your agents write from it, such as a summary, is your own work and is shared like any other file.
  • In a scheduled run, the files belong to the person who created the schedule, whose sign-in the run uses.
  • Fetching a report again with your own sign-in never turns an ordinary file personal: when the earlier copy was fetched with the connector's shared access, the new one is saved as a separate personal file beside it.

In a chat you share​

When you share a chat, the people you add work with your access, including your own sign-in to connectors like this one. Before you share, the confirmation lists each such connection as "your own sign-in", and the people you add see it as, for example, "Sam Taylor's sign-in".

  • A request someone else asks in your chat calls the connector with your account, as if you had asked. The call is recorded as asked by them and run as you.
  • If you have not connected, their request waits and they see "Sam Taylor needs to sign in to Broker Research". Only you can connect, from your own chat or Inbox. Nobody is ever asked to sign in as you.
  • A file the connector returns in your shared chat is personal to you, because your sign-in fetched it. It stays in your Folio. The people in the chat never see its name or what it holds. Their lists count it instead, for example "and 1 more that only Sam Taylor can open", and opening it answers as a missing file. The agent still reads it on their requests. It never reaches their Folio, not even through Everyone's files in a governed deployment.
  • Your token or key itself never leaves Studio's secret store. The people you add never see it, and their own connections are not used in your chat.
  • Remove someone from the chat to stop their requests using your access; it takes effect within about 30 seconds (Share a chat).

What is never shared​

  • Your tokens and keys are held in this Studio's AWS Secrets Manager, one secret for you and one connector, and no one else, including administrators, can read your connection or see whether you are connected. The one use by others is the one you confirm: requests in a chat you share run with your sign-in (above).
  • A Library shares the connector's definition only. Someone who downloads the connector arrives Not connected and connects their own account (Libraries and sharing). Organisations never reads or relays a personal credential.
  • Your connection is tied to where it was made. If someone edits the connector so that a sign-in would go somewhere else (another address, scope, client or tenant), or your sign-in expires, your status becomes Connect again ("Your sign-in for this connector has expired or its settings changed. Connect your account again.") and nothing is sent until you reconnect. The same happens when the sign-in service asks for a new sign-in on refresh, for example after a Conditional Access or consent change; a call that meets this waits on the connect card before any approval is asked, so no approval is spent on a call that cannot run.
  • An agent pinned to an older version of the connector whose sign-in goes somewhere else is refused once, instead of asking you to connect again: "This agent uses an older version of this connector, which signs in to a different destination. Move the agent to the connector's latest version." Connecting cannot fix it, because your connection is for the latest version.
  • In a governed deployment the connector is shared by everyone on the deployment and every person connects their own account. In a standard deployment each person who can see the connector connects theirs.
  • Deleting the connector deletes everyone's connection to it.

Notes​

  • The only credential the connector itself holds is the client secret of a registered app or the Microsoft app. Your organisation can manage it centrally (Connector policy, credentials and activity).
  • "Your organisation has not yet allowed this app to act for you. Ask your Microsoft Entra administrator to grant consent." means the Microsoft app still needs an administrator's consent.