Claude Code plugin
Install the Appstrate plugin for Claude Code to get your spaces' skills as slash commands, your agents as MCP commands and your organization's MCP server, refreshed every session.
The appstrate plugin brings an Appstrate organization into every Claude Code session. It is published in the appstrate/claude-plugins marketplace and holds no files of its own: the marketplace entry runs appstrate code sync, which writes the plugin from what your organization serves you, and Claude Code runs that command again in the background each session.
| What | How it appears in Claude Code |
|---|---|
| Skills of every space you are a member of | /appstrate:<skill> |
| Agents you can run, from the MCP server | /mcp__plugin_appstrate_appstrate__run-<agent> |
| The organization's MCP server | A server named plugin:appstrate:appstrate, reaching every space you hold a role in |
For Codex, for syncing without the plugin, and for the sync flags, see Skills and coding agents.
Requirements
- The CLI, signed in with
appstrate loginand an organization pinned. Login pins it for you when there is only one choice. The plugin does not read the CLI's pinned space. - Without the CLI on your
PATH, the plugin runs it throughnpx -y appstrate@latest, which needs Node.js.
Install
appstrate login
claude plugin marketplace add appstrate/claude-plugins
claude plugin install appstrate@appstrateClaude Code shows the command the plugin runs and asks you to accept it once:
if command -v appstrate >/dev/null 2>&1; then exec appstrate code sync --target claude-plugin --target codex --print-path; else exec npx -y appstrate@latest code sync --target claude-plugin --target codex --print-path; fi--target codex also refreshes ~/.agents/skills/, so Codex gets the same skills on its next start.
Then start a new Claude Code session, open /mcp, select plugin:appstrate:appstrate and complete the browser login. The plugin carries no token, and this login is separate from appstrate login: the CLI's session is never copied into the plugin.
On a fresh machine
Installing the plugin is the only step that has to come first. On a machine where the CLI is not signed in, or has no organization pinned, the install still succeeds: it gives you a single skill, /appstrate:setup, which states what is missing and the command that fixes it, and every session starts with a notice saying the same. You can ask Claude to run that command for you. appstrate login opens your browser, and you only approve there. Then run claude plugin update appstrate@appstrate and start a new session: your organization's skills replace the setup skill.
Use it
Skills
Each skill of the spaces you belong to is a /appstrate:<skill> command, and Claude also loads one on its own when your request matches its description. The plugin installs the organization's latest published version of each skill that is active in one of your spaces where you may read skills. To ship a change, publish a new version in Appstrate; the next session picks it up.
The installed files are generated copies. Editing them changes nothing in Appstrate, and the next sync that refreshes the skill overwrites them. To try a skill before publishing it, load its folder with claude --plugin-dir <dir>, or sync your working copies with --source draft (see Sync options).
Agents
Agent commands take your request in plain words, for example /mcp__plugin_appstrate_appstrate__run-invoice-extractor extract the totals from ~/Downloads/march-invoice.pdf. They are prompts of the MCP server, not synced files: the server renders each one when you choose it, so it always launches the agent's latest published version. Claude builds the input from the agent's launch form and launches it with the MCP tool run_and_wait.
Only you can choose a command; Claude cannot trigger it on its own, and Claude Code still asks before the metered run starts and shows the exact input. You need the permissions to run agents and read runs in the agent's space, which the runner space role includes. The same agent active in two spaces gives two commands, run-<agent> and run-<space>-<agent>, each launching in its own space. To pass a file, keep it in the session's working directory or start Claude Code with --add-dir.
The MCP server
The plugin connects to the organization's MCP endpoint (/api/mcp/o/<orgId>), not to one space. It reaches every space you hold a role in, and each call that acts in a space names it: an agent command names its own space, and for a free-form request Claude takes the space from what you asked, or asks you when several could serve. Its tools are named like mcp__plugin_appstrate_appstrate__search. See MCP clients for what the server offers.
How it stays current
Claude Code runs the plugin's command again in the background once per session, and installs a new version of the plugin when its content changed: it reloads it in the running session, or asks you to run /reload-plugins when a reload would cost the session its prompt cache. To refresh now, run:
claude plugin update appstrate@appstrate- Being added to a space puts its skills on your machine at the next sync, and being removed takes them off, unless another space you are still in supplies them too.
syncSpacesin your CLI profile narrows that set (see Sync options). - A skill that fails to download keeps the version already installed. A skill is removed only when the instance stops listing it for you.
- Once skills have been synced, a lapsed login never removes them: the sync fails, the installed plugin stays as it was, and the next session shows a notice.
Session notice
The plugin has one SessionStart hook. It prints a notice when the last sync could not complete because of a lost login, a missing profile, no pinned organization or a revoked organization, and when this machine is not connected yet. The notice gives the time of the failed sync and the command that fixes it, which you can ask Claude to run; then claude plugin update appstrate@appstrate and a new session load the result. A sync without such a problem removes the notice, and one that fails on a network or server error leaves it as it is.
After switching organization
The plugin follows your CLI profile's organization. After appstrate org switch, refresh the plugin and start a new Claude Code session, because a running session can keep the old endpoint. Then check the endpoint in /mcp and authenticate again if asked. appstrate space switch changes the default space of the CLI's REST commands only, not the plugin.
appstrate org switch <org-id-or-slug>
claude plugin update appstrate@appstrateTo use another instance, sign the CLI's default profile in to it first with appstrate login --instance <url>: the plugin always runs with the default profile.
Troubleshooting
| Symptom | What to do |
|---|---|
A failed sync, or an error in /plugin | Run appstrate code sync --target claude-plugin in a terminal to read the full message. It ends with the command that fixes it. |
| Skills stopped updating after an Appstrate release | The marketplace changed the command the plugin runs, and Claude Code does not run a new command until you accept it. Update the CLI (appstrate self-update), then run claude plugin update appstrate@appstrate and accept the new command. |
| A skill is missing | It is not published, not active in any of your spaces, or your role there does not grant reading skills. appstrate code sync --target claude-plugin --dry-run lists what the sync would install. |
| A skill is installed but Claude Code ignores it | The sync names it on stderr: it was published before Appstrate checked skill frontmatter, and Claude Code may not load it. Republish it from Appstrate. |
| Skills never refresh on their own | CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC is set in your environment, whatever its value: Claude Code then skips the background runs. claude plugin update appstrate@appstrate still refreshes the plugin. |
Two Appstrate servers in /mcp | A server you added by hand coexists with the plugin's. Check their endpoints in /mcp and disable the one you do not want; the sync never removes your own configuration. |
| Your organization blocks command-sourced plugins | Sync into ~/.claude/skills/ instead, on a schedule: appstrate code sync --target claude-user. See Skills and coding agents for cron and launchd. |
The complete list of failure messages and the ownership rules are in the CLI README.
Turn it off or remove it
- Keep the skills without the MCP server. Toggle
plugin:appstrate:appstrateoff in/mcp. - Sign out.
appstrate logoutputs the plugin back to its setup skill and removes the skills it synced into~/.agents/skills/and~/.claude/skills/. Runclaude plugin update appstrate@appstrateand start a new session to apply it. - Uninstall.
claude plugin uninstall appstrate@appstrateremoves the plugin. Removing the marketplace withclaude plugin marketplace remove appstratealso uninstalls it.
Reference
- Skills and coding agents: Codex, syncing without the plugin, and the sync flags.
- MCP clients: the organization's MCP server and its agent prompts.
- CLI README,
code sync: the full behaviour. appstrate/claude-plugins: the marketplace.
Skills and coding agents
Bring your spaces' skills into Claude Code and Codex with appstrate code sync, launch your agents as MCP commands, and let a coding agent configure Appstrate through the CLI or MCP.
MCP clients
Connect Claude Code, Claude Desktop, Cursor, Codex or any MCP client to an Appstrate organization.