Copilot Cowork Plugins for SharePoint Governance
| |

Copilot Cowork Plugins: Package an SPFx Component and Fix Sharing Links in Copilot Home

A Copilot Cowork plugin built from a SharePoint Framework (SPFx) Copilot UX component is a ZIP file with five files in its root: manifest.json, declarativeAgent.json, ai-plugin.json, color.png and outline.png. They point to an MCP endpoint on your own tenant, /_api/mcp/spfx?solutionId=…. An admin uploads the ZIP in the Microsoft 365 admin center under Agents > Tools > Registry or with the sufficient permissions you can upload it directly into the Plugins section of Copilot Cowork.

Most governance checks end as reports. Reports produce lists, and lists wait for tickets.

Last week I ran a sharing-link check on one document library. It checked 200 files (the tool’s limit, so there are more). Zero files were open to “anyone with the link.” But 23 had an organization-wide link with edit rights. Every row offered two buttons: set to view only, or delete the link. I deleted one link, and the row turned green.

This post shows how to ship an experience like that as one of your Copilot Cowork plugins.

What Copilot Cowork plugins are for SPFx components

Since 24 November 2026, Microsoft supports Copilot UX components in Cowork as plugins, as the Microsoft 365 Developer Blog describes. You now have two routes for the same solution:

Agent routePlugin route
Packaging.sppkg plus “Add to Teams”.sppkg plus five-file ZIP
Entry pointUser adds the agentCopilot picks the tool by intent
WhereAgent catalogCowork and standard chat
UploadApp catalog syncAdmin center, Registry

The plugin manifest still uses the devPreview format, and packaging is manual.

Step 1: Deploy the solution first

The ZIP does not contain your component. It connects to the .sppkg that is deployed in your tenant. So upload the .sppkg to the app catalog and enable it before you test anything. For the build steps, see the Learn tutorial.

Step 2: Collect three inputs

  1. SharePoint origin: the tenant root, without trailing slash, for example https://contoso.sharepoint.com
  2. Solution ID: the solution.id value in config/package-solution.json. Do not use a component ID.
  3. Plugin app ID: a new GUID (PowerShell: [guid]::NewGuid().ToString()). It must differ from the agent’s app ID.

Your endpoint is then https://<tenant>.sharepoint.com/_api/mcp/spfx?solutionId=<solution-id>. Do not use the -admin host, a OneDrive host or the app catalog URL.

Step 3: Create the five Copilot Cowork plugin files

FileKey rules
manifest.jsonmanifestVersion is devPreview. You need both agentConnectors (with mcpServerUrl) and copilotAgents. No mcpToolDescription.
declarativeAgent.jsonSchema v1.8. Plain-text instructions that name your tool. No unresolved $[file(...)] placeholders.
ai-plugin.jsonSchema v2.4. functions must be [] and run_for_functions must be ["*"]. The url must match the manifest.
color.png192 × 192 px, full color.
outline.png32 × 32 px, white mark on transparent background.

Tools and parameter schemas stay out of the package. Copilot discovers them dynamically from the endpoint. Pssst… you can also vibe-code these files (e.g. with Copilot Code, GitHub Copilot, Claude Code, Grok Build etc).

Keep ai-plugin.json in the ZIP even though the manifest does not reference it directly. The agent depends on it. Also note that the None auth type does not make SharePoint anonymous. Sign-in, permissions and tenant policy still apply.

Step 4: Zip, upload and test

Zip the five files so that manifest.json sits at the root, not inside a folder. Then upload the file in the admin center under Agents > Tools > Registry. The .sppkg stays in the app catalog.

Test with one user or group first. Start a new conversation, run each conversation starter and check inline and fullscreen rendering. Tool definitions can be cached for a few minutes, so wait before you debug.

Want a check like this in your own tenant? Send me a LinkedIn message, and we can look at your libraries together.

Troubleshooting and limits

  • Tools not discovered: compare both URLs, then check functions: [] and run_for_functions: ["*"].
  • Blank UI: the discovered frameDomains and resourceDomains must include your exact SharePoint origin. Avoid wildcards.
  • Tool works, plugin does not: confirm that the .sppkg is still enabled and the solution ID matches.

Per Microsoft Learn, a Microsoft 365 Copilot license is required per Cowork user. Custom plugins are not supported in Cowork on mobile. Purview Information Barriers are not supported for plugin management.

Updates

  • Change the implementation: redeploy the .sppkg, not the ZIP.
  • Change instructions, icons or metadata: raise version, rebuild the ZIP, keep the app ID.
  • Change the tenant: update both endpoint URLs.

Conclusion

  • Copilot Cowork plugins turn a deployed SPFx component into a tool that Copilot finds by intent.
  • Five files and one endpoint do the work. Most errors come from mismatched URLs or the wrong ID.
  • Start with a governance use case. A check that you can fix in the same place gets used.

I have worked with SharePoint for more than 25 years and I am a 10-time Microsoft MVP. If you want to build Copilot Cowork plugins for your tenant, send me a message.

FAQ

What are Copilot Cowork plugins?

They are installable packages that add tools and skills to Copilot Cowork. For SPFx, a plugin connects Copilot to a Copilot UX component through an MCP endpoint in your tenant.

Where do I upload a Copilot Cowork plugin?

Upload the ZIP in the Microsoft 365 admin center under Agents > Tools > Registry. The .sppkg goes to the SharePoint app catalog.

Do I need a Copilot license?

Yes. Microsoft Learn lists a Microsoft 365 Copilot license per Cowork user. Check your own contract for details.

How do I update a plugin after changing the component?

Redeploy the .sppkg for code changes. For instructions, icons or metadata, raise the version and rebuild the ZIP with the same app ID.

PS: Ready to implement proper AI agent governance? Contact me, Ragnar Heil, for a consultation on Agent 365, SharePoint Advanced Management, Microsoft Purview (Information Protection, Data Loss Prevention Policies, DSPM for AI), EasyLife365 Collaboration, Solutions2Share, Rencore Governance, ShareGate Protect, CoreView, Data&More or Agent 365 deployment strategies tailored to your organization’s needs. Find my calendar here at our HanseVision Governance Landing Page. Pssst… I am also offering an exquisite M365 Copilot & Agents MasterClass. Find out more here.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *