Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
The Work IQ Dev Tools command-line interface (CLI) enables you to package your existing declarative agent, skill, or Model Context Protocol (MCP) server as a plugin. The CLI can also validate the package, provision the plugin, and share it with your tenant.
Important
The entire wiqd plugin command tree is alpha and subject to change. If the steps in this walkthrough don't work, confirm current commands, supported component combinations, target experiences, and feature requirements in Build a plugin with Work IQ Dev Tools.
Prerequisites
- Node.js 24 or later
- PowerShell 7 or later (Windows only)
- A Microsoft 365 account with access to Copilot
- Custom app upload enabled in your tenant
- A supported declarative agent source project
Confirm that you have a supported starting project
Start from the root folder of a local declarative-agent source project. At minimum, the folder must contain:
contoso-support-agent/
|-- appPackage/
| |-- manifest.json
| |-- declarativeAgent.json
| `-- <the instruction and action files referenced by the manifests>
`-- <a supported lifecycle file>
The lifecycle file can be m365agents.yml, m365agents.local.yml, teamsapp.yml, or teamsapp.local.yml. The project can contain other folders and environment files.
This quickstart doesn't apply when:
- You have only a published agent or installed package and no local source project. Work IQ Dev Tools doesn't document a supported way to reconstruct the source project from a deployed title. Recover the original source repository or use the original authoring tool.
- The agent exists only in a managed authoring experience, such as Agent Builder or Copilot Studio. Use that tool's publishing and sharing procedure.
- You have a custom engine agent. This Work IQ Dev Tools route supports declarative agents.
- You have only an agent package
.zip. The lifecycle commands require the source project and its lifecycle file.
If you don't have an existing project, you can follow the steps in Tutorial: Create declarative agents by using Microsoft 365 Agents Toolkit and JSON to create a basic agent.
Note
wiqd plugin import imports supported Open Plugin, Claude plugin, or Cursor plugin formats. It doesn't import an existing Microsoft 365 declarative agent project or package. For more information, see Import / export (interop).
Create your plugin
If you didn't already, install Work IQ Dev Tools.
Open your CLI in the directory where you want to create your plugin and sign in by using the following command:
wiqd auth login --interactiveIn your CLI, launch GitHub Copilot by using the
copilotcommand.Ask GitHub Copilot to create a plugin with your existing declarative agent, skill, or MCP server. For example:
Create a plugin named My Plugin by using the agent in "..\My Agent"
Validate the plugin project
If GitHub Copilot didn't validate the plugin automatically, ask it to validate the project before you provision or package it.
Validate the plugin
Provision the plugin
Ask GitHub Copilot to provision the plugin.
Provision the plugin using the dev environment
Wait for provisioning to complete. You can now test your plugin in Microsoft Copilot Chat.
Important
The plugin must be provisioned by using the dev environment of the project to enable agent sharing.
Package the plugin
Ask GitHub Copilot to package the plugin.
Package the plugin
Important
You must provision the plugin before you package it. If you package before you provision, the resulting package is invalid.
Validate the package
Ask GitHub Copilot to validate the packaged plugin. This step runs a more detailed validation against the generated ZIP package.
Validate the packaged zip
Share the plugin
You can now ask GitHub Copilot to share your package, either with specific users or groups inside your organization, or with your entire organization.
Share the plugin with AmberR@contoso.com
Or:
Share the plugin with my organization
Important
Sharing custom plugins depends on your organization's settings for allowing or blocking sharing of plugins. If you encounter any errors during this step, check with your admins. For more information, see Agent sharing and publishing settings.
Publish the plugin to your organization's plugin registry
As an alternative to sharing your plugin, you can request to publish your plugin to your organization's plugin registry. Your organization admins can then review your plugin and approve or deny the request.
Publish my package to the plugin registry so all users in my tenant can use it
Delete the package (optional)
If this was just a test plugin, you can ask GitHub Copilot to remove the agent. This action deletes any provisioned cloud resources.
Delete the plugin