Build, test, ship and maintain Microsoft Copilot Studio agents from the editor
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
An MCP server that lets a coding agent (GitHub Copilot in VS Code, Claude Code, or any other MCP client) build, test, ship and look after Microsoft Copilot Studio agents from the editor.
An agent becomes a folder of YAML you can read, diff and commit. The server writes that folder the
way the Copilot Studio VS Code extension does, syncs it with the live agent through the official
Power Platform CLI (pac), and calls the Power Platform, Dataverse, BAP, Power Automate and
DirectLine APIs for what the CLI does not cover: evaluations, chat, cloud flows, portal drift,
transcripts. Nothing reaches a live environment without your approval, and when a choice is still
open the tool asks a question instead of failing.
| You want to | What happens | Read |
|---|---|---|
| Stand up a new agent and get it live | create it inside a solution, generate instructions, add knowledge, topics and tools, review, validate, push, publish, talk to it | Build a new agent |
| Change an agent that already exists | clone it to files, edit or remove components, review, merge what colleagues changed, push | Work on an existing agent |
| Give the agent something to call | connector actions, MCP servers, cloud flows, AI Builder prompts, other agents, chosen from what the environment actually has | Give the agent tools |
| Know whether it works | chat with the published agent, repeatable conversation tests, evaluation runs with per-case results | Publish and test |
| Learn from real users | transcripts, session outcomes, escalation rate, a regression test set built from real questions | Learn from production conversations |
| Not overwrite what a colleague did in the portal | see portal changes since your last sync, block a push that would collide, merge | Keep the workspace and the portal in sync |
| Write a Power Automate flow without hand-writing Logic Apps JSON | compose a definition from steps, create the flow, bind its connections, switch it on, read its run history | Build cloud flows |
| Find out why a flow keeps failing | resolve the real error behind a failed connector action, diff the run against one that worked, and see where the failures concentrate | Build cloud flows |
| Move to test and production | pull the whole solution, map connections and variables, deploy 1:1, publish; or use a pipeline | Ship a solution to another environment |
| Prove the stages match | snapshot each environment, compare, gate a pipeline on drift | Compare environments across DTAP |
| Run the tenant | environments, security roles, DLP, tenant settings, backups to files, onboarding a team, the Microsoft 365 agent catalogue | Administer the tenant |
The complete tool list is in docs/tools.md and the diagrams in
docs/flows.md; both ship
inside the npm package under docs/. The reference sections at the end of this page cover the
agent settings the server can write,
authentication and permissions,
configuration, the hard limits and
how this differs from pac's own MCP server.
Early release. What has actually been exercised:
pac copilot init and pac copilot pack.docs/live-verification.md): the
connector registry, the pac connection list layout, pac copilot clone and its sync metadata,
drift detection and the cs_push conflict refusal, and the evaluation path end to end including
the portal's CSV import format and the metric status strings. A portal-made agent validates
clean, so cs_validate produces no false positives on real content. That run also caught a real
bug: pac copilot publish prints "Failed to publish" and exits 0, so a failed publish was being
reported as a success. Fixed.cs_check_drift in quick mode, cs_chat, the
Dataverse listBots path, moving a solution between environments, and every flow the flow
builder produces (none has been imported into an environment yet).docs/verify.md is the short list of what is still open, docs/STATUS.md the full record. Read
the dry run before confirming anything that writes.
dotnet tool install --global Microsoft.PowerApps.CLI.Tool.
If the SDK lives in your user profile, set DOTNET_ROOT to that folder; the server defaults it
to ~/.dotnet when that folder exists.pac auth create --environment <id or URL>. Everything that goes through pac (create, clone,
pull, push, publish, solutions, administration) uses it, with Microsoft's own first-party app.cs_login, done from the session. By default no app registration is needed;
Authentication and app registration says when you need
one and which permissions it must carry.The server is on npm as copilot-studio-mcp, so the usual install is no install: point your MCP
client at npx, and the first start fetches the package.
There is also a VS Code extension, vscode-extension/, which registers the server with VS Code's
MCP host and exposes the environment variables below as settings. It carries the server and its
dependencies inside the VSIX, so it needs no npm and no network on first start. Build it with
cd vscode-extension && npm install && npm run package; install the resulting .vsix with
code --install-extension copilot-studio-mcp-<version>.vsix.
VS Code, from a terminal or by hand in .vscode/mcp.json (workspace) or the user-level mcp.json:
Claude Code (user scope):
npm install -g copilot-studio-mcp with "command": "copilot-studio-mcp" avoids the npx start-up
cost. The server is published to the MCP Registry as io.github.jgt87/copilot-studio-mcp, which is
what VS Code's MCP gallery (Extensions view, search @mcp) draws from through the GitHub MCP
Registry. To run from a clone instead, see Development.
Environment variables are optional and listed under Configuration.
cs_init. Reports pac and .NET, the pac profiles and which one is active, the MSAL sign-in,
the write policy in force, the workspace it found and the next steps for it. It also returns a
menu of tool presets; on a smaller model pick one (see
Running on a smaller model).cs_login when a cloud tool needs it. The call opens the browser from the server and returns
within 15 seconds; if the sign-in has not finished by then it returns status: pending with the
URL so you can open it yourself, and the next cloud call (or cs_login_status) picks the token
up. That is what makes sign-in work from clients that cap tool-call duration or run the server
where no browser can be launched. Device code (mode: device_code) is the alternative where the
tenant allows it; many block it by Conditional Access policy.cs_guide <topic> when you want the walkthrough for one job rather than inventing a
sequence: getting-started, instructions, knowledge, tools, topics, evaluations,
publish-and-test, drift, transcripts, solutions, administration, troubleshooting.
Each names the tool per step, the portal steps that cannot be automated, and the next steps for
your workspace. Six MCP prompts (new agent, add knowledge, add tool, write instructions, review
and push, check drift) wrap the same walkthroughs in clients that show prompts as commands.The server never changes a live Copilot Studio environment on its own. Every tool that can
(cs_push, cs_publish, cs_run_evaluation, cs_import_solution, cs_deploy_solution,
cs_create_agent with an environment, the delete tools, the flow and admin tools that write, and
the environment-changing pac wrappers) returns a dry run describing what it would do, and does
nothing else, until it is called again with confirm: true. The calling agent is instructed, in the
MCP handshake, to show that dry run and pass confirm only after you agree; one approval covers one
call.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/copilot-studio-mcp)<a href="https://allmcps.com/mcp/copilot-studio-mcp"><img src="https://allmcps.com/api/badge/copilot-studio-mcp?style=directory" alt="Copilot Studio MCP on AllMCPs" /></a>