Skip to content

dometrain: user-scope MCP server shadows the plugin's and /plugin shows a warning; pick a supported no-warning setup #5209

Closed

Description

@kyle-sexton

Problem

When a user already has a dometrain MCP server in their own config (same URL, key supplied by a headersHelper or vault), the /plugin menu shows a warning for the plugin: MCP server "dometrain" skipped — same command/URL as already-configured "dometrain". Remove "dometrain" from your MCP config if you want the plugin's version instead.

The plugin already handles the credential correctly: dometrain_api_key is optional (required: false) and the README documents leaving it blank when a user-scope server supplies the key. The warning comes from Claude Code's endpoint dedupe, and it makes a supported setup look broken.

Findings

Options

  1. Stop shipping plugins/dometrain/.mcp.json. Add a setup skill that registers the user-scope server (claude mcp add --scope user ...) and takes the key via /plugin configure, a helper, or a vault. No dedupe, no warning. Cost: the plugin no longer works with zero setup.
  2. Keep the bundled server and document the warning as expected for user-scope overrides. No behavior change; the menu still shows the warning.
  3. File an upstream request to Claude Code: do not warn when a user-scope server intentionally shadows a plugin server, or provide a manifest flag such as mcpServers.<name>.yieldToUserScope.

Recommendation: option 3 upstream plus option 2 now. Option 1 is the fallback if the upstream request goes nowhere. This is a decision item, not yet ready to build.

Also audit (same class)

Only miro and dometrain ship .mcp.json and only miro has a required: true userConfig option (checked across all 82 installed plugin manifests, 2026-09-28). Confirm the optional-but-needed options degrade with guidance rather than a menu error: animation.playwright_core, gaming.runtime_dll / runtime_source, pixel-art.backend. The 4 plugin LSP servers loaded in this session should get the same check for missing binaries.

Related: #1456 (closed; dometrain duplicate-name behavior), #4342 (vault-exec launch design).

Acceptance criteria

  • The chosen option is recorded, and the /plugin menu shows no warning or error for a user who follows the documented setup.
  • The audit list above is checked, with one follow-up issue per plugin that misbehaves.

Activity

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

    @kyle-sexton
    MemberAuthor

    Findings from the same live install and the current docs (2026-09-29).

    Confirmed on a real install

    The warning appears with the plugin enabled and a user-scope dometrain MCP server present. /plugin marks it with a warning symbol, not an error symbol:

    MCP server "dometrain" skipped — same command/URL as already-configured "dometrain". Remove "dometrain" from your MCP config if you want the plugin's version instead

    Docs review

    • Precedence, high to low: local, project, user, plugin-provided, claude.ai connectors, with managed config above all as of v2.1.259 (https://code.claude.com/docs/en/mcp, "Scope hierarchy and precedence").
    • Matching: "Claude Code matches duplicates across the three scopes by name. It matches plugins and connectors by endpoint, so one that points at the same URL or command as an enabled server above counts as a duplicate."
    • Renaming the plugin's server key therefore cannot avoid the match. Only a different endpoint or no plugin server avoids it.
    • The exact message text and where it renders are undocumented. The mcp page says warnings appear in claude mcp list, claude mcp get and /mcp, but its example list does not include the skipped-duplicate message.
    • No plugin-side opt-out or manifest flag is documented, which agrees with the issue body.

    Additional option worth adding

    1. Split the plugin. Ship dometrain as skills only (the grounding skill) and dometrain-mcp as the bundled server. A user with their own server installs only dometrain, so there is no duplicate endpoint and no warning. A user with no server installs both and keeps the zero-setup path. This uses only documented mechanics and needs no upstream change. Cost: two plugins to keep in step, and the grounding skill has to say which plugin supplies the tools. Judgment on the trade-off; check dometrain-mcp: two unresolved MCP-host behavior questions (401 rendering, duplicate plugin.json name) need a live test #1456 first, since it covered a related duplicate-name case.

    This changes the recommendation slightly: option 4 gives a no-warning supported setup now, so it could replace "option 2 now" instead of waiting on the upstream request in option 3. It is still a decision item for the owner.

    Audit list from the issue body

    • LSP: no melodic-software plugin ships an LSP config (no lspServers in any plugin.json and no .lsp.json). The LSP error visible in /plugin on this machine is dotnet @ dotnet-agent-skills, a third-party plugin at project scope with an invalid lsp.json (command, extensionToLanguage, and an unrecognized csharp key). Nothing to fix here. Related work on C# language servers is in EPIC: make Claude Code language servers work on Windows — one broken language, not four #3535 and C# LSP for Claude Code: validate csharp-ls on a real multi-project Windows solution and document install #3536.
    • animation.playwright_core, gaming.runtime_dll, gaming.runtime_source and pixel-art.backend are not referenced by any ${user_config.*} in .mcp.json, hooks/hooks.json or .lsp.json, so they cannot produce a load-time menu error through those files. I did not check whether a skill body degrades with guidance when one of them is unset. That part of the audit is still open.
    • The other class in the docs: ${user_config.*} in shell-form hook commands, monitor commands or headersHelper is a documented error, not a substitution. None found in the hooks/hooks.json files.

    Related: #5208 (miro unset token), #4240 (missing external tools not surfaced to the user).

  3. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Follow-up: the open audit item is checked. animation, gaming and pixel-art all degrade with guidance, and none of them can put an entry in the /plugin menu (2026-09-29, read from source).

    Option Reaches /plugin load? Unset or unexpanded token handling Verdict
    animation.playwright_core No, consumed only as a CLI argument in skill bodies prereq.playwright_dir returns None for empty or a value starting ${ (scripts/prereq.py:35). render.py:144 and skills/rotoscope/scripts/fit.py:57 both parse the argument through it. capture.mjs then searches the working directory and a playwright-cli on PATH, and on failure exits 2 with a remedy line naming the option and npm i playwright-core Fine
    gaming.runtime_dll, runtime_source, data_dir No Skill bodies say to omit the flag when the value is empty or still an unexpanded token. Invoke-Dlss5Mod.ps1 has a test that the literal ${user_config.data_dir} falls back to the default. provision -Runtime with no source prints all three remedies Fine
    pixel-art.backend, output_dir No Default native. A named backend that is not present falls back to native with a notice (reference/backends.md). An empty or unexpanded output_dir means "ask" (skills/sprite/SKILL.md:57) Fine

    No follow-up issue is needed for these three. One note for the fleet: the unexpanded-token guard is written per plugin (a Python helper in animation, prose plus a PowerShell test in gaming, prose in pixel-art). If this audit is repeated for other plugins, a shared check that every ${user_config.*} argument has a guard would be cheaper than reading each plugin. Judgment, not researched.

    Remaining open on this issue: the dometrain decision (options 1 to 4 above). The miro fix is tracked in #5208.

  4. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded (2026-09-29): follow the recommendation in the issue body, option 3 upstream plus option 2 now. Option 4 (split the plugin) is not adopted; it stays available as a fallback if the upstream request goes nowhere.

    This issue stays open until the upstream request is answered. The /plugin menu will keep showing the warning for users of the override until then.

  5. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Correction to the decision comment above: the upstream request (anthropics/claude-code#98035) has been withdrawn and closed as not planned. The decision to go through Claude Code upstream is reversed; the fix should live in this repo. Options 1 and 4 in the issue body and the follow-up comment are open again, and the issue needs an owner decision on which one. Draft PR #5210 (README note for the expected warning) is the only change so far and is not a substitute for an in-repo fix.

  6. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Status (2026-09-29): option 4 is merged in #5213. dometrain is now skills-only (0.5.0) and the bundled server moved to the new dometrain-mcp plugin (0.1.0). The skills match tools by the dometrain server segment in the runtime inventory, not a fixed prefix, so they work with either plugin's server or a user-scope one. #5210 (README note) is closed as superseded.

    Left open on purpose: nothing has been tested live in /plugin. To close this issue, confirm on a live install that (1) dometrain alone plus a user-scope dometrain server shows no warning, and (2) dometrain-mcp plus a user-scope server still does, as expected. Existing users of the bundled server need dometrain-mcp installed after updating.

  7. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage: human-gated

    Summary: The decision is implemented by #5213 (plugins/dometrain-mcp exists). What remains is a live /plugin check an agent cannot run.

    Open question: None; manual verification only.

    Evidence that settles it: a live /plugin session

    RECOMMENDED: confirm (1) dometrain alone plus the user-scope server shows no warning, (2) dometrain-mcp plus the user-scope server still warns, then close.

  8. added and removed
    needs-triage
    on Sep 29, 2026
  9. added theissue type on Sep 29, 2026
  10. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision (2026-09-29): Run the two live checks in /plugin, then close. (1) dometrain alone plus a user-scope dometrain server shows no warning. (2) dometrain-mcp plus a user-scope server still warns, as expected. Do not close on the strength of merged #5213 alone.

    Next: the owner runs both checks on a live install and closes the issue. The issue keeps needs-human; no agent work remains.

  11. kyle-sexton commented on Sep 30, 2026

    @kyle-sexton
    MemberAuthor

    Resolution (2026-09-29, owner-approved consensus)

    Goal. Close the two live checks that #5213 left open, without touching real user config: with a user-scope dometrain MCP server present, (1) the skills-only dometrain plugin shows no duplicate warning, and (2) dometrain-mcp still shows it.

    Current state (confirmed on origin/main). plugins/dometrain is skills-only (no .mcp.json). plugins/dometrain-mcp/.mcp.json ships the dometrain http server at https://mcp.dometrain.com/mcp. Only the two checks remain. The skip message comes from Claude Code's MCP config merge, which can be run headlessly here (claude 2.1.285), so no live /plugin session is needed unless the CLI does not show the message.

    Steps (all in a throwaway CLAUDE_CONFIG_DIR under the gitignored .work/; no credentials, no elevation, no fleet host):

    1. Create the scratch config dir. With CLAUDE_CONFIG_DIR pointed at it, add a user-scope server: claude mcp add --scope user --transport http dometrain https://mcp.dometrain.com/mcp.
    2. Check 1, expect no warning: load only plugins/dometrain from an origin/main worktree (for example claude --plugin-dir <worktree>/plugins/dometrain mcp list, or claude -p --debug --output-format stream-json with the same flag). Capture the output and grep for skipped — same command/URL.
    3. Check 2, expect the warning: load plugins/dometrain-mcp the same way with a dummy dometrain_api_key value (the dedupe is by endpoint, not auth). Capture the output and grep for the same message.
    4. Post both captured outputs, the exact commands and the Claude Code version as a comment on this issue.
    5. If check 1 shows no message and check 2 shows it, close the issue as completed. If the headless path shows no message in either case, the CLI does not surface it and only the /plugin dialog can. Then leave the issue open with needs-human, record that finding, and the owner runs the two checks in /plugin.

    Acceptance criteria.

    • Both checks ran against the real Claude Code MCP merge, using a scratch CLAUDE_CONFIG_DIR. No user-scope config, real API key or other worktree was touched.
    • The issue has a comment with the exact commands, the raw captured output and the Claude Code version.
    • Close only if check 2 prints the exact skipped — same command/URL message and check 1 does not. Do not close on feat(dometrain): split the MCP server into dometrain-mcp #5213 alone or on a structural argument.
    • If the message never appears headlessly, the issue stays open as needs-human with that finding recorded.
    • No repository files change unless a check exposes a defect, which gets its own issue.
  12. added
    agent-ready
    and removed
    needs-human
    on Sep 30, 2026
  13. kyle-sexton commented on Sep 30, 2026

    @kyle-sexton
    MemberAuthor

    Headless dedupe checks (2026-09-29): the exact message does not surface headlessly

    Claude Code 2.1.285 (Claude Code). Scratch CLAUDE_CONFIG_DIR=.work/drain/5209-cfg (gitignored), no real API key, ~/.claude.json untouched by these runs. Plugin paths from a worktree at origin/main (6554233).

    Commands

    claude mcp add --scope user --transport http dometrain https://mcp.dometrain.com/mcp   # scratch dir
      -> Added HTTP MCP server dometrain with URL: https://mcp.dometrain.com/mcp to user config
    
    # Check 1
    claude --plugin-dir <wt>/plugins/dometrain mcp list
    claude -p --debug-file f1 --output-format stream-json --verbose --plugin-dir <wt>/plugins/dometrain "say hi"
    # Check 2 (dummy dometrain_api_key in the scratch settings.json pluginConfigs)
    claude --plugin-dir <wt>/plugins/dometrain-mcp mcp list
    claude -p --debug-file f2 --output-format stream-json --verbose --plugin-dir <wt>/plugins/dometrain-mcp "say hi"
    

    Setup notes: both plugins set defaultEnabled: false, so the scratch settings.json enables dometrain@inline and dometrain-mcp@inline; without that the plugin loads as disabled and nothing is merged. mcp list does not load --plugin-dir plugins at all (its output is identical for both plugins, and claude mcp list --plugin-dir is rejected with unknown option). Only the -p path loads them. There is no login, so the -p turn ends with Not logged in; the MCP merge runs before that.

    Raw output

    mcp list, check 1 and check 2 (identical, user-scope server only):

    Checking MCP server health…
    
    dometrain: https://mcp.dometrain.com/mcp (HTTP) - ✘ Failed to connect — Dynamic Client Registration rejected (HTTP 404):
    

    -p stream-json init, both checks: "mcp_servers":[{"name":"dometrain","status":"failed","source":"user"}]. The plugin was loaded and enabled in each (plugins lists dometrain@inline 0.5.0, then dometrain-mcp@inline 0.1.0).

    Debug log, MCP merge lines:

    check 1 (dometrain):     no suppression line
    check 2 (dometrain-mcp): Suppressing plugin MCP server "plugin:dometrain-mcp:dometrain": duplicates manually-configured "dometrain"
    

    grep results

    grep -c 'skipped — same command/URL' on every capture (mcp list, stream-json output, debug file), both checks: 0.

    Finding

    The dedupe itself behaves as expected, and the two plugins differ as the owner decision predicted: with a user-scope dometrain server, dometrain-mcp has its plugin server suppressed (debug log) and dometrain has nothing to suppress. But the user-facing text skipped — same command/URL ... is not produced by mcp list, by -p stream-json or by --debug; the debug log carries a different string. The exact message is only seen in the /plugin dialog. By the resolution's step 5 and acceptance criteria, this issue is not closed and keeps needs-human: the owner runs the two checks in /plugin (check 1 no warning, check 2 warning).

    No repository files changed and no defect found in the repo.

  14. added
    needs-human
    on Sep 30, 2026
  15. kyle-sexton commented on Oct 1, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision (2026-10-01): approved the recommendation ("go with recommended", the owner's reply to the batch decision page that listed this question and its recommendation).

    Question: close #5209 on the headless evidence, or keep the requirement to see the exact warning in /plugin?

    Chosen option (B): waive the /plugin dialog check and accept the headless evidence in the "Headless dedupe checks (2026-09-29)" comment. With a user-scope dometrain server, the debug log shows Suppressing plugin MCP server "plugin:dometrain-mcp:dometrain": duplicates manually-configured "dometrain" for dometrain-mcp and no suppression line for the skills-only dometrain plugin.

    Next: remove needs-human and status: needs-decision, and close as completed.

  16. removed
    needs-human
    on Oct 1, 2026
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

    agent-ready

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions