Steps at a glance
- Add the MCP server to the gateway
- Grant user access to the MCP server
- Point the connector at the gateway
- Update connector authentication to use DCR
Add the MCP server to the gateway
Register the MCP HTTPS endpoint in the gateway. The connector calls the gateway URL for this server.If the MCP server is already added to the gateway, skip this section. You still need its gateway URL for the connector step.
- If the MCP server isn’t registered yet, register it. Getting started: MCP Server Getting Started.
- If the MCP server authentication isn’t set yet, open Auth Data and select the method the upstream server expects: API Key, OAuth2, AWS SigV4, or Token Passthrough. See Outbound Authentication to choose.
- Save the MCP server.
- Copy the gateway URL for the server from How To Use section. You need it in the connector step below.
Grant user access to the MCP server
Callers are users or teams, not agents or virtual accounts. Grant MCP Server User to each user or team that will connect.- Open the MCP server in the gateway.
- Go to ⋯ → Access Control.
- Select Grant Access, select the role MCP Server User, choose the user or team, and save.
Point the connector at the gateway
Create a new custom connector for each agent. Don’t reuse or change another agent’s connector since that may affect the other agent. When you build the connector:- Use the gateway URL for this server.
- Split
https://<gateway-host>/<gateway-path>into swaggerhost=<gateway-host>and path =/<gateway-path>, withbasePath: /. - Build the connector in Power Apps, not in the Copilot Studio MCP wizard.
Keep
basePath: / and put the full path under paths:. If you put the path only in basePath, the import succeeds but the server isn’t registered as an MCP operation, so the tool list stays empty.Create the new gateway connector
- Portal
- Azure CLI / Power Apps API
- Go to Power Apps → Custom connectors → New → Import an OpenAPI file.
- Use this definition:
- Set the Security tab as described in Update connector authentication to use DCR.
- Select Create.
- In Copilot Studio, open the agent and go to Tools → Add a tool → MCP. Search for the new connector, select it and create a connection.
- Test the new connector. If the agent already had an older connector for this server, remove it from the agent. Then select Publish to apply the changes.
- Delete the old connector in Power Apps → Custom connectors only if no other agent uses it.
Update connector authentication to use DCR
Update the existing connector’s authentication so users connect through DCR.- In Power Apps, go to Custom connectors, open the connector, and select Security.
- Set Authentication type to No authentication. Copilot Studio uses DCR to connect to the gateway.
- Select Update connector.
- In Copilot Studio, reconnect (or recreate the connection) so each user signs in through DCR.