copilot-studio-mcp-tool

Installation
SKILL.md

Adding an MCP server to a Copilot Studio agent from the CLI

Copilot Studio reaches MCP servers through Power Platform custom connectors. There are four objects to create, in this order. Skipping any one produces a confusing failure.

1. custom connector      (pac connector create)              -> connectorinternalid
2. connection            (Power Apps REST API)               -> connectionGuid
3. connectionreference   (Dataverse Web API)                 <- REQUIRED, easy to miss
4. tool action YAML      (agents/topic.<name>.mcs.yml + push)

The #1 failure: pushing the action YAML without step 3 gives A record with the specified key values does not exist in connectionreference entity (surfaced as an unhelpful DataverseBadRequestException; the real message is only in %LOCALAPPDATA%\Microsoft\PowerAppsCLI\Microsoft.PowerApps.CLI.<ver>\tools\logs\pac-log.txt).

Generative orchestration is required for MCP. pac copilot init enables it by default (configuration.settings.GenerativeActionsEnabled: true + recognizer.kind: GenerativeAIRecognizer).

Installs
1
GitHub Stars
7
First Seen
Oct 9, 2026