Skip to content

miro: unset miro_api_token shows as a /plugin error; fail fast at first use with setup guidance instead #5208

Closed

Description

@kyle-sexton

Problem

plugins/miro declares miro_api_token with required: true (plugins/miro/.claude-plugin/plugin.json). When the token is unset, the /plugin menu lists miro as an error: Plugin option "miro_api_token" isn't set. Open /plugin manage to configure it, or check that the plugin's userConfig schema declares "miro_api_token". The bundled server also exits at startup without the token, so the failure shows up as a menu error rather than as guidance at the moment someone tries to use Miro.

A missing credential should not render as a plugin error. It should fail fast when a Miro tool is first needed, and tell the user how to fix it.

Proposed fix

  1. Drop required: true from miro_api_token (keep sensitive: true). Update the option description, which currently says "Required".
  2. Launch the server through a small wrapper (still command: node, or a script) that checks MIRO_API_TOKEN before starting. If unset or empty, it writes one actionable message to stderr and exits non-zero: what is missing, and to run /plugin configure miro@melodic-software, or supply the token another way.
  3. Add a SessionStart (or first-use skill) notice only if the wrapper's message proves invisible to users. Check what /mcp shows for a failed server before adding a hook.
  4. Update plugins/miro/README.md and the CHANGELOG. Add a test that runs the wrapper with the token unset and asserts the non-zero exit and message.

Evidence and open questions

Acceptance criteria

  • With miro_api_token unset, /plugin shows no error for miro.
  • Starting the server (or first Miro tool use) with the token unset produces one message naming the missing value and the exact configure command.
  • With the token set, behavior is unchanged.

Activity

  1. added
    needs-triage
    on Sep 29, 2026
  2. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Findings from reproducing this on a live install and reading the current docs (2026-09-29).

    What triggered the error

    • miro installs with defaultEnabled: false, and claude plugin install never prompts for userConfig. It prints N userConfig options not yet set and moves on (https://code.claude.com/docs/en/plugins/troubleshooting, "The userConfig dialog never appears").
    • A fleet reinstall cleared the saved token. claude plugin enable miro@melodic-software -s user then turned the plugin on with no token set, and the /plugin Errors tab showed Plugin option "miro_api_token" isn't set....
    • So the error needs two things: the plugin is enabled, and the required option is unset. Any path that enables miro before the user has configured it reproduces this, including /claude-ops:plugins sync under install_new: all, and any enable-everything convergence run.
    • Of the 80 catalog manifests, only miro has required: true. The only ${user_config.*} uses in .mcp.json, hooks/hooks.json and .lsp.json are in miro and dometrain .mcp.json.

    What the docs say and don't say

    Documented:

    • required: "If true, the configuration dialog doesn't accept an empty value." It is described as a dialog rule, not a load gate.
    • default: "Value used when the user provides nothing."
    • A shell install with an unset required option prints (M required) after not yet set. That is a warning line, not a load failure.
    • For an MCP url that references an unset ${user_config.*}, the documented error is Invalid MCP server config ... URL is unset or invalid.

    Not documented:

    • The Errors-tab message text Plugin option "X" isn't set.... It appears on no docs page I could fetch.
    • Whether Errors-tab rows for config apply only to enabled plugins.
    • What ${user_config.KEY} becomes in MCP env or headers when unset: empty string, literal text, or a skipped server. For ordinary env vars the docs say an unset variable is left as literal ${VAR} text with a warning in claude mcp list (https://code.claude.com/docs/en/mcp, "Environment Variable Expansion in .mcp.json"), but nothing says the same holds for user_config.
    • ${VAR:-default} is documented for environment variables only, not ${user_config.KEY:-...}.

    Consequences for the proposed fix

    1. Dropping required: true is the documented way to stop treating an empty value as invalid, but it is not documented to clear the Errors-tab row. Confirm on a live install before relying on it. The fix is not done until /plugin shows nothing for a miro that is enabled with no token.
    2. The wrapper must treat both an empty MIRO_API_TOKEN and the literal text ${user_config.miro_api_token} as "unset", because which one arrives is undocumented. Record the observed value in the test.
    3. If step 1 does not clear the row, the fallback is defaultEnabled: false plus the setup skill as the only enable path. That does not help a user who enables the plugin by hand, so it is a weaker fix.
    4. The /plugin error appears only after the plugin is enabled, so the fleet tooling should also stop enabling a plugin whose required or credential option is unset. /claude-ops:plugins already lists unset options under Action needed. It should hold back the enable step for those plugins until the option is set, instead of enabling and then reporting.

    Optional guard

    A manifest lint that rejects required: true on any sensitive: true option would stop this class from coming back in a new credential-bearing plugin. Judgment, not researched.

    Upstream

    The Errors-tab text and the unset-substitution behavior are both undocumented. Both are worth a /feedback docs request once the local test settles what actually happens.

  3. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Status (2026-09-29): the fix is merged in #5211 (miro 0.4.14). required is dropped, the server starts without a token, and each tool call returns one error naming miro_api_token and the configure command. Unset means an absent variable, an empty value, or an unexpanded ${user_config. value. The setup skill now reports token not set.

    Left open on purpose: the docs do not say whether dropping required clears the /plugin Errors-tab row, and that was not tested live. To close this issue, enable miro with no token on a live install and confirm /plugin shows nothing for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions