Purpose
Guide the user through Claude Code's native configuration flow and verify that the bundled Miro MCP
server is available without reading, printing, or writing the sensitive token. The miro_api_token
option is optional in the manifest: the server starts without it, and a Miro tool call without a
token returns an error that says to run /plugin configure miro@<marketplace>. Claude Code
owns the secure credential storage.
Check-only per the uniform setup contract's userConfig-only carve-out: this plugin's entire
configuration is the native sensitive userConfig token, so check (default and only
action) verifies and reports, and reconfiguration routes through Claude Code's native flow. An
apply here would have nothing to write except the credential storage and pluginConfigs setup
must never touch. Non-interactive: the optional API probe runs only when verify-api is passed,
never from an in-flow question.
Official contracts:
- Pointer: when a step turns on how plugin options or default enablement behave, fetch
Plugins reference: User configuration
live.
Task
- Check whether the
miroplugin is enabled and whether its scoped MCP tools are present in the
current tool inventory. Do not inspect settings files, environment variables, process arguments,
debug logs, credential stores, or the token itself.
- When the plugin is disabled, direct the user to enable
mirothrough the/plugininterface or
claude plugin enable miro. The token is entered afterward with /plugin configure miro@<marketplace>. Do not run
either command for the user and do not hand-edit pluginConfigs. For a non-interactive install
(CI, a fleet bootstrap, a scripted machine setup), point to the headless path below instead.
- When the plugin is enabled but its tools are absent, report that startup or configuration failed.
Direct the user to the /plugin Errors view and /mcp. An unset token is not a startup
failure: the server runs and each tool call returns the configure instruction, so absent tools
point to a different cause. A first launch that cannot install the server's npm dependencies
(no npm on PATH, no network, a failed npm ci) is such a cause: the server exits, and its
stderr names the cause and the one shell line that repairs it. To tell the user where to read
that stderr, read the two sections below at run time and give the user the route they state;
do not read the user's logs for them.
- Pointer: for where a plugin MCP server's startup error is recorded, see
<https://code.claude.com/docs/en/plugins/troubleshooting#server-is-configured-but-never-connects>
and <https://code.claude.com/docs/en/debug-your-config#check-mcp-servers>.
After configuration, require /reload-plugins or a new session before rechecking tool availability.
- When the scoped Miro tools are present, report only that the server started. The server starts
and lists its tools with no token, so tool presence proves neither that a token was supplied nor
that it has API access. Say the token state is unchecked, and that verify-api detects an unset
token.
- Optional credential check, only when the invocation passed
verify-api(the explicit opt-in;
never offer it as an in-flow question): call the read-only miro_list_boards tool with
limit: 1. Never create, update, or delete a board during setup.
- Success verifies API access; report only the count returned, not board names, IDs, or URLs.
- A tool error saying
miro_api_tokenis not set means the token is unconfigured: report
token not set and direct the user to /plugin configure miro@<marketplace>, then
/reload-plugins. An authentication failure gets the same direction.
- Network, rate-limit, or service failure is reported as a distinct degraded state; do not tell the
user to replace a credential unless the response identifies authentication as the cause.
Headless installation
For a non-interactive install, CI, a fleet bootstrap, or a scripted machine setup, seed the token
on the initial install instead of the interactive /plugin prompt. Three steps, all required:
claude plugin marketplace add <source> --scope <scope>
claude plugin install miro@<marketplace> -s <scope> --config miro_api_token=<token>
claude plugin enable miro -s <scope>
Both placeholders are bootstrap inputs, not lookups: before the first install there is no record
to read them from. <marketplace> is the name the catalog registers under when it is added, and
<scope> is the scope the bootstrap chooses: user, project, or local. Pass the scope
explicitly on all three commands and carry the same <scope> through them; never rely on a
command's default. Each command's scope flag spelling and default are read live:
- Pointer: when writing or debugging the bootstrap, fetch