Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-docs

Plugin structure and testing changedplugins/build

Nearest release: v2.1.333, published 2 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 30 Nov 2026 21:20 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 30 Nov 2026 21:37 UTC.

Upstream edited
Recorded here
Lines+8added
Lines−8removed
From line 113 where the diff opens
First seen 25 Sep 2026 this site's first read of the page
Recorded edits10to this page, all time

The whole hunk

from line 113, old and new numbered
/
lines
from line 113
113113List this month's expense reports with their totals and approval status, then summarize them in three sentences.
114114```
115115 
116`.mcp.json` at the plugin root references your remote MCP server by URL. On claude.ai and in Cowork, the entry is listed on the plugin's **Connectors** tab, where each user adds or connects it and signs in through your server's OAuth flow. Claude Code loads it with the plugin.
116`.mcp.json` at the plugin root references your remote MCP server by URL. On claude.ai and in Cowork, the entry is listed under **Connectors** on the plugin's page, where each user adds or connects it and signs in through your server's OAuth flow. Claude Code loads it with the plugin.
117117 
118118Don't put API keys or other secrets in this file, because every person who installs the plugin receives its files.
119119 
from line 167
167167A plugin can carry more than the explorer shows, but not every Claude app uses all of them. Design for the narrowest app you care about:
168168 
169169* **Skills and commands** load everywhere. In chat, a command loads as a skill that Claude applies when it fits
170* **A remote MCP server** in `.mcp.json` appears on the plugin's **Connectors** tab in chat and Cowork, and works once the person adds or connects it there; Claude Code connects to it directly
170* **A remote MCP server** in `.mcp.json` appears under **Connectors** on the plugin's page in chat and Cowork, and works once the person adds or connects it there; Claude Code connects to it directly
171171* **Agents and hooks** load in Cowork and Claude Code; chat ignores them without an error
172172* **A local MCP server**, one the app starts as a command, loads in Claude Code and in Cowork sessions that run on the person's computer; chat ignores it
173173* **A top-level `bin/` directory** stops claude.ai and Cowork from installing the plugin at all
from line 201
201201 
202202* **`name`**: the plugin's permanent identity. People install and refer to it by this value, so use lowercase words joined by hyphens, make it specific to your product, and never change it after release. Change `displayName` when you want a different label
203203* **`version`**: the release number people see for the plugin. Raise it on every release
204* **`description`**: what people read in the directory and in [**Customize > Plugins**](https://claude.ai/customize/plugins) before installing
204* **`description`**: what people read about the plugin before they install it
205205* **`license`**: give it here or as a `LICENSE` file. The directory requires one or the other, and a README of at least 40 words
206206 
207207If you have Claude Code installed, run `claude plugin validate ./expense-reports` from the folder's parent. It prints `✔ Validation passed` when the manifest and any component files parse, and names the field to fix when they don't. The [full manifest reference](https://code.claude.com/docs/en/plugins/manifest-reference) lists every optional field.
from line 223
223223}
224224```
225225 
226On claude.ai and in Cowork, that entry is listed on the plugin's **Connectors** tab, where the user [adds or connects it](https://claude.com/docs/plugins/overview.md#bundled-connectors) and signs in through your server's OAuth flow. On Team and Enterprise plans, an Owner adds the connector for the organization, and members then connect with their own account.
226On claude.ai and in Cowork, that entry is listed under **Connectors** on the plugin's page, where the user [adds or connects it](https://claude.com/docs/plugins/overview.md#bundled-connectors) and signs in through your server's OAuth flow. On Team and Enterprise plans, an Owner adds the connector for the organization, and members then connect with their own account.
227227 
228228Don't put API keys or other secrets in this file, because every person who installs the plugin receives its files. If your server is already listed in the directory, use the same URL here, so that someone who has both your connector and your plugin sees one set of tools rather than two.
229229 
from line 252
252252* **Claude Code**: run `claude --plugin-dir ./expense-reports` to start a session with the plugin loaded from your working copy. Your skills appear as `/expense-reports:file-expense`, and `/mcp` shows the server's connection state
253253* **claude.ai and Cowork**: upload the plugin to your own account, then check each component:
254254 1. Zip the plugin folder. The archive can hold the folder as its single top-level entry or the folder's contents directly. If the upload says `plugin.json must be at .claude-plugin/plugin.json at the zip root (or inside a single top-level directory)`, the manifest is nested more than one folder deep or the archive has other files beside the plugin folder.
255 2. In claude.ai, go to **Customize > Plugins > Add > Upload plugin** and select the zip. The plugin then appears on your own account.
255 2. In claude.ai, go to [your plugins](https://claude.ai/customize/plugins/yours), select **Add > Upload plugin**, and select the zip. The plugin then appears on your own account.
256256 3. Open a chat and ask Claude which skills it has from plugins.
257 4. Connect the bundled connector from the plugin's **Connectors** tab.
257 4. Open the plugin from [your plugins](https://claude.ai/customize/plugins/yours) and add or connect the bundled connector under **Connectors**.
258258 5. If your plugin has agents, start a Cowork task to confirm they load.
259* **A team testing together**: push the folder to a Git repository set up as a [marketplace](https://code.claude.com/docs/en/plugins/create-marketplace), and have each tester add it from **Customize > Plugins > Add > Add marketplace** with the repository URL instead, so everyone installs the same copy
259* **A team testing together**: push the folder to a Git repository set up as a [marketplace](https://code.claude.com/docs/en/plugins/create-marketplace) instead, and have each tester add it from **Add > Add marketplace** on [their plugins](https://claude.ai/customize/plugins/yours) with the repository URL, so everyone installs the same copy
260260 
261261Loading the plugin shows that its parts appear. To measure whether its skills improve Claude's output, write eval cases and run [`claude plugin eval`](https://code.claude.com/docs/en/plugin-evals) in Claude Code, which grades the results and compares them against a run without the plugin. To test one skill by itself on any surface, see [Measure whether the skill improves the output](https://claude.com/docs/skills/how-to.md#measure-whether-the-skill-improves-the-output).
262262 
from line 273
273273Once the plugin works, you can distribute it through your organization, your own marketplace, or the directory:
274274 
275275* [Manage plugins for your organization](https://claude.com/docs/plugins/admin.md): on Team and Enterprise plans, an Owner can make the plugin available or installed by default for members
276* [Create a marketplace](https://code.claude.com/docs/en/plugins/create-marketplace): list the plugin in a Git repository's `marketplace.json`, which anyone you give the URL to can add from **Customize > Plugins** or the Claude Code command line
276* [Create a marketplace](https://code.claude.com/docs/en/plugins/create-marketplace): list the plugin in a Git repository's `marketplace.json`, which anyone you give the URL to can add from **Add > Add marketplace** on [their plugins](https://claude.ai/customize/plugins/yours) or from the Claude Code command line
277277* [Publish to the directory](https://claude.com/docs/directory/publish.md): submit the plugin from the [developer portal](https://claude.ai/directory/manage) so people on Pro, Max, Ultra, Team, and Enterprise plans can find and add it on claude.ai and in Cowork, and use it in Claude Code. Anyone on a paid plan can submit without applying to a partner program first; on Team and Enterprise, an Owner submits
278278 
Feedback