Skip to content
ConduitConduit

Connecting Microsoft Copilot Studio

Microsoft Copilot Studio supports MCP servers, but it does not connect to them the same way an MCP-native client (Claude Desktop, Claude Code, Cursor, etc.) does. Copilot Studio reaches a remote MCP server through a Power Platform custom connector, and Power Platform’s “Generic OAuth 2.0” connector type does not implement MCP’s OAuth 2.1 + PKCE flow. That means the standard sign-in path documented in Connecting an AI client doesn’t apply here.

Instead, Copilot Studio connects to Conduit as a service client, authenticated with an agent key: a static, long-lived bearer your organization mints against that client, pastes into the connector once, and can rotate or revoke at any time. This guide walks the end-to-end setup.

You do not install Conduit. You configure a Power Platform custom connector that points at your organization’s Conduit endpoint, attach it to a Copilot Studio agent, and authorize a connection once per end user.

You need:

  • An active Conduit subscription. Conduit is single-plan — there’s no separate tier to confirm, just billing in good standing.
  • Org-admin role on Conduit. Required to mint a service client and its agent key.
  • A Microsoft Power Platform environment with maker rights, and access to Copilot Studio (copilotstudio.microsoft.com) in that environment.
  • Your Conduit MCP endpoint URL — https://conduit.wyre.ai/v1/mcp. The /v1/mcp endpoint is the unified endpoint: it exposes every vendor your organization has connected, behind one URL.

Step 1 — Mint a service account on Conduit

Section titled “Step 1 — Mint a service account on Conduit”

Sign in to your Conduit dashboard and open Service Accounts (/org/service-clients). Click Create Service Account, give it a recognizable name (for example, Copilot Studio Test), and click Create.

The dashboard shows the client ID (svc_…) and the client secret exactly once. Copy the client ID — Step 3 mints the connector’s credential against that account. The connector never uses the secret; copy it too if you’ll drive the client_credentials grant from somewhere else, because it is hashed at rest and cannot be retrieved later.

Scope the account before you go further. A new service account picks up each vendor’s Everyone default, so with permissive defaults it can reach more than you intend — add it to a team, or give it an override in the vendor’s Access editor. See Managing access.

Step 2 — Build a solution-aware custom connector

Section titled “Step 2 — Build a solution-aware custom connector”

Copilot Studio agents live inside a Power Platform solution. The custom connector must be in that same solution (solution-aware). A connector created from the plain Power Apps Custom connectors page is not, and Copilot Studio rejects it when you add it as a tool with agentContent.addToolCustomConnectorNotSolutionAware.

Create (or open) the agent in copilotstudio.microsoft.com in the target environment, then open its solution — either path works:

  1. On the agent’s overview page, select the three dots (…) just below the environment name (next to Settings) → View solution.
  2. Or open Settings → Agent details (or Advanced) → View solution.

(View solutions in Copilot Studio)

In that unmanaged solution:

  1. Select New → Automation → Custom connector to create the connector inside the solution. (Create custom connectors in solutions)
  2. Or, if you already built the connector outside a solution, select Add existing → Automation → Custom connector, choose it, and add it so it becomes solution-aware before you attach it to the agent.

Name the connector Conduit (or a name of your choosing). A new tab opens for the connector editor.

On the General tab:

  • Scheme: HTTPS
  • Host: conduit.wyre.ai (hostname only — no https:// and no path)
  • Base URL: /

On the Definition tab, add a single POST operation:

  • Summary / operation ID: InvokeMCP
  • URL: /v1/mcp
  • Add the Microsoft MCP extension to the operation: switch to the Swagger editor toggle and set x-ms-agentic-protocol: mcp-streamable-1.0 on the operation. This tells Copilot Studio to treat the endpoint as an MCP server (negotiate initialize / tools/list / tools/call dynamically).

On the Security tab:

Field Value
Authentication type API Key
Parameter label Bearer token
Parameter name Authorization
Parameter location Header

When you’ve finished the General, Definition, and Security tabs, select Save (or Create connector, depending on the editor). Close the connector tab — the custom connector should now appear in the solution.

Step 3 — Mint an agent key and create a connection

Section titled “Step 3 — Mint an agent key and create a connection”

The custom connector needs a value for the Authorization header, and Power Platform stores whatever you paste verbatim — it never refreshes a stored credential. So the value to paste is an agent key: a static bearer bound to the service account from Step 1, which Conduit accepts on /v1/mcp directly. It has no hourly clock, so there is nothing to re-paste on a schedule.

Mint the key from the dashboard (do not call the org API by hand — those routes require a signed-in session CSRF token and return 403 without it):

  1. Open Service Accounts (/org/service-clients).
  2. On the row for the account from Step 1, click New agent key (or + Agent key under Credentials). If the account already has a key, click Rotate agent key instead — that invalidates the previous key immediately.
  3. The page shows the full key (cak_…) once, with the warning Save this agent key now — it cannot be retrieved later. Copy it immediately. Only a public prefix stays on the page after you leave; if you lose the key, rotate to get a new one.

Back in the agent’s solution, open the Conduit custom connector and select Edit (reopen it if you closed the editor tab after saving, or if you used Add existing rather than creating it in this session):

  1. Open the Test tab → + New connection.
  2. In the Bearer token field, paste Bearer cak_… — the literal word Bearer, a space, then the agent key you copied.
  3. Click Create. The connection status flips to Connected.

Do not use the connector’s Test tab → Test operation for InvokeMCP as an MCP smoke test. Step 2’s operation is marked x-ms-agentic-protocol: mcp-streamable-1.0 and — matching Microsoft’s MCP connector schema example — has no body parameter. The Test tab therefore POSTs an empty body. Conduit accepts the agent key (auth succeeds) and returns HTTP 200 with a JSON-RPC error that the request had no method (-32600 Invalid Request: request body missing JSON-RPC method, or on older gateways -32601 Unsupported method: undefined). That result does not mean the connector is broken.

Use one of these instead:

Option A — endpoint + agent-key check (curl) — verifies that /v1/mcp accepts the key you copied from the dashboard. Paste that key into the header below (do not mint keys with hand-built POSTs). This does not prove the Power Platform connection record holds the same value; use Option B for that.

Terminal window
# initialize
curl -sS -X POST 'https://conduit.wyre.ai/v1/mcp' \
-H 'Authorization: Bearer cak_…' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"copilot-studio-smoke","version":"1.0"}}}'
# tools/list
curl -sS -X POST 'https://conduit.wyre.ai/v1/mcp' \
-H 'Authorization: Bearer cak_…' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'

A successful tools/list is HTTP 200 with a JSON body containing a result.tools array — your organization’s connected vendor tools.

Option B — configured connection check (Copilot Studio Tools panel). Finish Step 4, open the agent, and confirm the Conduit MCP tool appears under Tools labeled Model Context Protocol. Ask the agent something that should invoke a Conduit tool (after the one-time per-end-user consent if prompted). That exercises the Power Platform connection you created above — including the stored Bearer cak_… value — on the same streamable MCP path Copilot Studio uses in production.

Step 4 — Add the connector to the Copilot Studio agent

Section titled “Step 4 — Add the connector to the Copilot Studio agent”

Return to the same agent in copilotstudio.microsoft.com, and on the Overview tab scroll to Tools → + Add a tool.

In the picker, search for your connector name (e.g. Conduit). Select the action, confirm the connection, and click Add. The tool appears under the agent’s Tools section labeled Model Context Protocol.

The first time an end user asks the agent to use a Conduit tool, Copilot Studio will reply with “Let’s get you connected first” and a link to the connection manager. The user clicks the link, selects the existing Connection, and submits. This is a one-time consent step per end user, separate from the maker-side connection you created in Step 3.

After consent, retry the request. The agent picks the right MCP tool, Conduit proxies it to the vendor, and the response comes back inline.

Copilot Studio caps tools at 70 per MCP server, per agent

Section titled “Copilot Studio caps tools at 70 per MCP server, per agent”

When Copilot Studio calls tools/list against an MCP server, it applies a hard cap of 70 tools per server, per agent. If Conduit surfaces more than 70 tools (the unified /v1/mcp endpoint exposes every connected vendor’s tools), only the first 70 are visible to the agent’s tool-selection pass. Copilot Studio surfaces this in the trace panel as reasonCode: "LimitTools".

If you need access to more tools from one agent, the cleanest pattern is per-vendor connectors pointing at Conduit’s per-vendor endpoint:

/v1/<vendor>/mcp

For example, point one connector at /v1/autotask/mcp and another at /v1/halopsa/mcp. Each vendor MCP surface is comfortably under 70 tools, and Copilot Studio sees both connectors as separate MCP servers with separate 70-tool budgets. Alternatively, shard responsibilities across multiple agents.

The agent key doesn’t expire hourly — but it is a long-lived secret

Section titled “The agent key doesn’t expire hourly — but it is a long-lived secret”

This is why the connector carries an agent key rather than a client_credentials access token. That token is valid for 3600 seconds, and because Power Platform stores it verbatim and never refreshes it, every invocation through the connection returns HTTP 401 an hour after you paste it. An agent key has no such clock: no scheduled re-paste, no token-broker service to build. (A connection created before agent keys existed still holds an access token and still 401s — replace its value with an agent key.)

The trade-off: the connection record now holds a static, long-lived secret. Handle it accordingly.

  • Scope the service account. The key resolves to that account’s own identity (svc:<org-id>:<client-id>), so the connector reaches exactly what the account’s team grants and Access-editor overrides allow — no more, no less.
  • Rotate in place. On Service Accounts, click Rotate agent key on the account’s row. That issues a new key and invalidates the previous one, keeping the same identity and every grant attached to it. Update the Power Platform connection with the new Bearer cak_… value.
  • Revoke immediately. On the same row, click Revoke key to kill the key and leave the service account intact; revoking the account itself takes the key with it. A key can never outlive the service account’s own expiry either.

A service client is scoped to the org that created it. Its agent key — like any token minted with its secret — carries that org’s identity (sub: svc:<org-id>:<client-id>) and surfaces only that org’s connected vendors. You cannot share one service client across organizations.

Symptom Likely cause
New agent key fails or the account is missing The service account isn’t in that org, or it was revoked. Confirm it still appears on Service Accounts (/org/service-clients).
Hand-built POST …/agent-key returns 403 Org mutations require a signed-in dashboard session (CSRF). Mint the key with New agent key on Service Accounts instead.
HTTP 200 with -32600 Invalid Request: request body missing JSON-RPC method, or -32601 Unsupported method: undefined The agent key was accepted; the POST had no JSON-RPC method (empty or non-object body). Common when using the Power Apps custom-connector Test tab on an MCP-streamable operation that defines no body parameter — that tab sends none. Smoke-test with the Step 3 curl initialize / tools/list examples (or from the Copilot Studio agent’s Tools panel after Step 4), not Test operation.
tools/list returns 401 Unauthorized The key was revoked, or replaced by a rotation, or the service account expired — mint or rotate a key on Service Accounts and update the connection with the new Bearer cak_…. A connection still holding a one-hour client_credentials access token 401s the same way; switch it to an agent key.
Agent says “Let’s get you connected first” every turn Per-end-user consent wasn’t completed. Open the linked connection manager, pick the connection, submit.
Agent only sees a subset of expected tools The 70-tool cap is in effect. Switch to per-vendor connectors at /v1/<vendor>/mcp.
Connector creation rejects the OpenAPI Make sure the operation has x-ms-agentic-protocol: mcp-streamable-1.0 (Swagger editor toggle) and the spec is Swagger 2.0, not OpenAPI 3.
Adding the tool fails with agentContent.addToolCustomConnectorNotSolutionAware The connector was created outside the agent’s Power Platform solution (for example from the plain Custom connectors page). Open the agent’s solution via View solution, then either create the connector with New → Automation → Custom connector, or Add existing → Automation → Custom connector for the one you already built. Add the tool again after the connector is in the solution.
Tool call returns a permissions error from a vendor The service client inherits the org’s vendor configuration. Confirm the vendor is connected on Conduit and reachable from it.

Can I use OAuth 2.1 + PKCE like Claude does?

Section titled “Can I use OAuth 2.1 + PKCE like Claude does?”

Not through Power Platform’s Generic OAuth 2.0 today. Copilot Studio’s custom-connector framework does not send PKCE, so Conduit’s authorization endpoint rejects the request. The service-client (API Key) path is the supported route.

Why is the auth a “Bearer token” pasted into an API Key field?

Section titled “Why is the auth a “Bearer token” pasted into an API Key field?”

Power Platform’s API Key auth type lets the connector author choose any header. We use Authorization: Bearer <agent key> so Conduit treats it as a standard MCP bearer. The value is an agent key, not an OAuth access token — which is the point: the connector framework never refreshes a stored credential, and an agent key needs no refreshing.

Do I need a separate service client per agent?

Section titled “Do I need a separate service client per agent?”

No. One service client can back as many connectors as you want — including per-vendor connectors. Choose per-agent or per-vendor scoping based on how you want to revoke independently.

Can end users see other end users’ tool calls?

Section titled “Can end users see other end users’ tool calls?”

No. Each invocation runs under the service-client identity on Conduit’s side, but Power Platform records the end user who initiated the invocation. Conduit’s audit log shows the service-client subject; Copilot Studio’s audit log shows the end user. The two together are the audit trail.

Will this work for an agent published to Teams / a website?

Section titled “Will this work for an agent published to Teams / a website?”

Yes — once the connector is wired and tested in the maker portal, publishing the agent to any Copilot Studio channel carries the connector with it. Each end user completes the one-time per-end-user consent the first time they invoke a Conduit tool.

  • Connecting an AI client — the OAuth path for MCP-native clients (Claude Desktop, Claude Code, Cursor, etc.).
  • Supported clients — the full client compatibility matrix.
  • Architecture — why Conduit is MCP-native and how non-MCP clients are bridged.
  • Security — auth model details, including the service-client primitive.