Skip to main content
For people building agents in Copilot Studio. Chatting with an agent your organization already built in Microsoft 365 Copilot? Follow Organization User Setup instead.

Choose how the agent signs in

Every Copilot Studio agent reaches StackOne through OAuth, so nobody pastes an API key or token. What changes is whose StackOne login the agent uses:

Before you start

In Microsoft 365, you need a Copilot Studio license or the Copilot Studio authors role. If your organization uses Power Platform data policies, the policy must allow custom MCP connectors, because Copilot Studio treats the StackOne MCP server as a connector. In StackOne:
  • A StackOne project you are a member of.
  • A connector profile in the project for each provider the client should reach, with the actions you want exposed enabled.
  • (Optional) A linked account for each provider. Accounts can also be linked during the consent flow.

Add StackOne to the agent

1

Open the MCP server dialog

  1. Open your agent in Copilot Studio.
  2. Under Tools, click +.
  3. Click + Add, then Model Context Protocol (MCP).
2

Describe the server

Set the following, then click Add:
  • Server name: for example StackOne.
  • Server description: what the agent should use StackOne for, such as Read and update records in HR, CRM and ticketing systems through StackOne. The agent reads it to decide when to call StackOne.
  • Server URL: https://mcp.stackone.com/mcp.
  • Authentication: OAuth 2.0.
  • Configuration type: Dynamic (with discovery). Copilot Studio registers itself with StackOne, so there’s no client ID or secret to enter.
3

Create the connection

  1. Open the Not connected menu and click Create new connection.
  2. Click Create. StackOne opens in a pop-up.
4

Sign in and authorize

  1. Sign in to StackOne. In a desktop app or code editor, this opens in your browser.
  2. Check the project at the top left. Copilot Studio only reaches Linked Accounts in that project. To use another one, click it and pick yours.
  3. Pick the work systems Copilot Studio can use (your Linked Accounts).
  4. If you see Load tools when needed, leave it on.
  5. Click Authorize.
StackOne's consent screen for Claude, with three Linked Accounts selected, Load tools when needed on, and the Authorize button
5

Add the tool and save

  1. Back in Copilot Studio, click Add.
  2. Save the agent. Tools added to a new agent are kept only once the agent is saved.
Through the Advanced Tool Search tools, the agent finds and runs the actions each sign-in granted. Click Preview and ask the agent:

Set who the agent acts as

A chat agent signs in to StackOne as whoever is chatting, which is the default.
  1. Under Tools, click StackOne.
  2. Check that Authentication is set to End user account, so each person signs in with their own StackOne login.
  3. If you changed it, click Done and save the agent.
Shared account makes everyone who chats with the agent use your StackOne connection, and reach the Linked Accounts you authorized. Keep it for agents where every user should see the same data.

Run it in the background

Copilot Studio runs unattended work as a workflow. A workflow’s tools always use the connection of the person who added them, so StackOne acts as you.
1

Create the workflow

  1. In Copilot Studio, go to Workflows and click New workflow.
  2. Under Trigger type, choose what starts it, such as Recurrence for a schedule.
2

Add an agent step

  1. In Add, click Agent.
  2. Under Agent, choose a published agent, or New agent for this workflow and write its instructions. Unpublished agents must be published before a workflow can use them.
3

Give the agent StackOne

For New agent for this workflow:
  1. Under Tools, click +.
  2. Search for the StackOne server you added, select it and click Add.
  3. Choose your existing StackOne connection and click Add.
4

Test and publish

  1. Open Run node and click Run. The output shows what the agent got back from StackOne.
  2. Click Publish.
A background agent can do everything your StackOne authorization allows. Anyone who can edit or trigger the workflow uses that access. When you authorize, select only the Linked Accounts and actions the workflow needs.
Creating the connection fails before StackOne opens. StackOne sometimes refuses Copilot Studio’s automatic registration. Remove the tool and add it again from the Use your own OAuth client tab, which skips that registration.StackOne opens but reports a redirect URI error. The callback URL Copilot Studio showed isn’t on your StackOne client. Add it under MCP OAuth Clients, then create the connection again.The agent only replies with a setup link. You’re using the Agent 365 server and haven’t connected StackOne yet. Open the link and follow Organization User Setup.New accounts or actions don’t show up. Copilot Studio keeps the same tools for a whole chat. Start a new chat.A workflow stopped working. Access lasts 90 days from when you clicked Authorize. Under Tools, click StackOne, then Manage connections, and sign in again.It can’t do something. It can do only what the StackOne authorization allows. Ask your StackOne admin.
Copilot Studio reaches only the Linked Accounts you approved when you connected. To add one you link later, or one someone shares with you afterwards:
1

Open Connected Apps

In the StackOne dashboard, go to Connected Apps.
2

Edit the connection

  1. Open the ⋮ menu on the row for Copilot Studio and select Edit tool access.
  2. Select the Linked Account.
  3. Click Save changes.
To review or revoke the connection, use the same ⋮ menu in Connected Apps.