npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@microsoft/copilot-studio-mcp

v1.0.4

Published

Microsoft Copilot Studio MCP bridge for sign-in, environment selection, connector setup, and access to cloud-hosted tools and authoring Skills.

Readme

Microsoft Copilot Studio MCP

Microsoft Copilot Studio MCP brings Copilot Studio tools into Model Context Protocol (MCP)-compatible CLIs, developer tools, and agentic interfaces. It provides a single entry point for working across the agent and automation lifecycle, from creation and configuration to testing, deployment, monitoring, and ongoing management.

Your client launches this package with npx. The server connects to Copilot Studio's hosted service after you sign in and select an environment, so access stays tied to your identity, environment permissions, and organizational policies.

Note If your organization requires Federal Risk and Authorization Management Program (FedRAMP) High compliance, the GitHub Copilot harness agent turns off at runtime to prevent data egress from the FedRAMP High compliance boundary.

Install

Use a Windows, macOS, or Linux desktop with Node.js 22.18 or later (Node.js 24 LTS recommended) and a working GitHub Copilot CLI, Visual Studio Code, or other MCP-compatible client. The same package runs on all three systems; install Node.js for your machine's architecture. Configure your client to launch the package with this command (PowerShell, zsh, or bash):

npx -y @microsoft/copilot-studio-mcp@latest

The client starts the server process and communicates with it over standard input/output (stdio). The package handles the connection to the hosted Copilot Studio service; you don't enter a remote MCP URL or clone a source repository. You can also discover the server in the GitHub MCP Registry or a supported client's MCP gallery and follow the listing's installation option for your client.

Desktop requirements

| System | Browser launcher | Requirement | | --- | --- | --- | | Windows | rundll32.exe | A default desktop browser. | | macOS | open | A default browser in a local desktop session. | | Linux | xdg-open | A desktop session, a default browser, and xdg-utils installed using your distribution's package manager. |

Run the MCP client, bridge, and browser on the same computer. Sign-in returns to a temporary localhost listener; local loopback connections must be permitted. SSH, headless servers, remote containers, and browser-only clients are not supported sign-in environments. No Windows authentication broker is required. Your sign-in is remembered across chats in an encrypted per-user cache protected by the operating system: DPAPI on Windows, the login Keychain on macOS, and the Secret Service (secret-tool/libsecret) on Linux. Without one of these, tokens remain in memory only.

The MCP host must be able to find node and npx, not just your terminal. If a GUI-launched host cannot find them, configure the host's executable path or launch it from a terminal where Node.js is available. Homebrew and version-manager installations can have different paths from a GUI session. The optional Copilot CLI --install flow prefers an absolute Node PATH alias that resolves to the executable running setup, such as Homebrew's bin symlink. That alias can follow Node upgrades without depending on the host's later PATH. If no matching alias exists, setup records the running executable's absolute path. Rerun setup if that fallback installation or the alias is moved or removed.

Available tools

After you sign in and select an environment, the server makes the connected service's tools available. The service catalog includes the following tools. Connection and sign-in utilities are separate.

| Tool | Description | | --- | --- | | discover_resources | Discover connector operations and schemas, existing connections, dependent parameter values, and attachable resources. | | get_consumption | Read historical agent or workflow credit consumption, or current environment credit capacity. | | manage_agents | Manage agent inventory, complete draft authoring, lifecycle, published-agent sharing, saved-draft previews, and agent evaluation suites and runs. | | manage_workflows | Manage workflow inventory, complete draft authoring, lifecycle, real tests, and run diagnostics. | | get_copilot_studio_skills | Start here for Copilot Studio guidance. Read the matching core skill before authoring, then read schema.json. |

The management, discovery, and consumption tools expose individual operations through action and parameters. The current tool schemas identify the advertised actions and their inputs. To read the focused contract and side-effect information for an action before you construct unfamiliar arguments, use discover_resources with action=describe_actions.

Name queries and exact-name selection are applied before the 1,000-result environment limit. If an unfiltered list is too large, the result says so (tooManyEnvironments); supply a narrower name query or the complete environment ID; complete GUIDs and Default-<GUID> IDs use a direct user-authorized lookup instead of enumerating the tenant. A denied or mismatched lookup never selects an environment.

Agent previews use the existing Copilot Studio service contract; no new server capabilities or deployment are required. All forwarded tool calls use the same 36-minute local deadline, independent of tool names or schemas, with a 37-minute installed host timeout. Setup APIs, MCP discovery and resource reads keep their shorter default deadline. Cancellation still takes effect immediately.

Known conversation IDs are retained in copilot_studio_status.recentPreviews. This optional history keeps at most 16 records and never blocks a tool call or changes its returned result; old records may be evicted even while active. If a new preview is interrupted before the server returns its ID, the bridge cannot recover that ID locally. Report the uncertain outcome; never resend a prompt or submit a continuation merely to check status.

Normal use

Describe your task normally. The assistant reuses a ready connection, loads the service's tools and Skills, and continues your request after onboarding. Native-Skills hosts use their own loading/approval path; older hosts use the Skill reader actually advertised by the service. No local authoring Skill is installed.

Sign in to Copilot Studio establishes your work-account session. Connect to an environment opens the cloud service connection for your chosen environment. Connector setup is separate: it configures connections used by agents and workflows. Tool titles describe these operations; their existing copilot_studio_* identifiers are unchanged.

Authoring Skills guide your assistant; inline agent skills are content saved inside an agent. Creating or updating an agent/workflow saves a draft, not a published version. Agent previews use saved drafts; workflow tests run published, enabled workflows and can have real effects. Usage is measured in Copilot Credits, not currency cost. Signing out does not delete saved artifacts or connector connections.

Connector setup first prepares a plan showing the account, environment, and action. Creation or repair requires your explicit approval and may change real Power Platform records. OAuth uses browser sign-in or the existing server-side SSO flow. Connectors requiring typed credentials/settings are handed off to the Copilot Studio UI; this bridge does not collect them. Never automatically retry an uncertain write.

An already-approved setup stays alive through its own bounded consent lifetime instead of ending when the preparation window expires. Failed writes retain their known connection identity with pending/inspect_connection and a sanitized error. Status remains read-only after expiry; fresh writes need fresh approval. Ready results clear earlier authentication errors. A localhost browser return is expected, but an old callback URL cannot restart an expired or completed attempt. Inspect the existing connection, not a duplicate.

Connection lookups accept existing opaque logical-reference names under the same bounded contract as the Dataverse reader, so a resolved empty inventory can produce a creation plan instead of a false unresolved-reference error. A rejected inventory reports its field and reason without exposing the value. Never bypass a scope/reference failure by inventing a binding.

Selected successful reads may use a bounded private in-memory cache only when the service opts in. Ask for fresh data to clear that bridge cache before repeating a read. This does not clear service caches or authorize a write.

After changing accounts or environments, the host must retire old cloud guidance and refresh tools and native Skills. Use a fresh chat/connection if the host cannot do that.

Data handling

Authentication tokens are kept in an encrypted, OS-protected per-user cache under ~/.copilot-studio-mcp/auth so a new chat resumes your sign-in and last environment without signing in again. Nothing is stored in plaintext; if no OS protection is available, tokens stay in process memory and copilot_studio_status reports credentialsPersisted: false. Disconnecting removes the remembered sign-in (other open chats are signed out on their next call); a chat that is signed out picks up a sign-in made in another chat silently on a later call, without that chat's environment (select one again). A disconnected chat does so only after you connect in it again. Set COPILOT_STUDIO_PERSIST_CREDENTIALS=0 to keep tokens in memory only; they are then discarded on sign-out or process exit. Account/environment details and requested service content are returned to your MCP host; its data policies also apply. The bridge forwards a normalized host-family label to the service, not the raw host name or new user/device identifiers.

This public package does not capture local diagnostic traces or upload diagnostic reports. It still processes account and business data to fulfill requests; absence of diagnostic capture does not mean absence of data processing. Approved connections and artifacts remain subject to the platform's normal storage and access policies.

If setup fails

Stop and report the error without sharing credentials or configuration JSON. DNS, refused/reset connections and network timeouts have distinct safe cause codes. Check endpoint availability and network/proxy settings before an explicit retry; another call does not repair missing environment routing. An uncertain write still requires inspecting the artifact before retrying. Do not change applications, service destinations, or permissions to bypass it. Shared writer storage I/O failed is a Copilot CLI storage problem that must be resolved before retrying installation. Do not delete .copilot, databases, or lock files as an automatic workaround.