Repository navigation
Description
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
- Dedupe is by endpoint (same URL or command) and user scope outranks plugin scope (https://code.claude.com/docs/en/mcp.md, "Scope hierarchy and precedence"). No documented plugin-side switch avoids the warning. Basis for "none": docs review this session, not an exhaustive test.
${VAR:-default}fallbacks are documented for environment variables only, not${user_config.*}, so the plugin cannot conditionally omit its header.
Options
- 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. - Keep the bundled server and document the warning as expected for user-scope overrides. No behavior change; the menu still shows the warning.
- 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
/pluginmenu 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
kyle-sexton commentedon Sep 29, 2026
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
dometrainMCP server present./pluginmarks 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 insteadDocs review
claude mcp list,claude mcp getand/mcp, but its example list does not include the skipped-duplicate message.Additional option worth adding
dometrainas skills only (the grounding skill) anddometrain-mcpas the bundled server. A user with their own server installs onlydometrain, 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
lspServersin anyplugin.jsonand no.lsp.json). The LSP error visible in/pluginon this machine isdotnet @ dotnet-agent-skills, a third-party plugin at project scope with an invalidlsp.json(command,extensionToLanguage, and an unrecognizedcsharpkey). 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_sourceandpixel-art.backendare not referenced by any${user_config.*}in.mcp.json,hooks/hooks.jsonor.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.${user_config.*}in shell-form hook commands, monitor commands orheadersHelperis a documented error, not a substitution. None found in thehooks/hooks.jsonfiles.Related: #5208 (miro unset token), #4240 (missing external tools not surfaced to the user).
kyle-sexton commentedon Sep 29, 2026
Follow-up: the open audit item is checked.
animation,gamingandpixel-artall degrade with guidance, and none of them can put an entry in the/pluginmenu (2026-09-29, read from source)./pluginload?animation.playwright_coreprereq.playwright_dirreturns None for empty or a value starting${(scripts/prereq.py:35).render.py:144andskills/rotoscope/scripts/fit.py:57both parse the argument through it.capture.mjsthen searches the working directory and aplaywright-clion PATH, and on failure exits 2 with a remedy line naming the option andnpm i playwright-coregaming.runtime_dll,runtime_source,data_dirInvoke-Dlss5Mod.ps1has a test that the literal${user_config.data_dir}falls back to the default.provision -Runtimewith no source prints all three remediespixel-art.backend,output_dirnative. A named backend that is not present falls back to native with a notice (reference/backends.md). An empty or unexpandedoutput_dirmeans "ask" (skills/sprite/SKILL.md:57)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
mirofix is tracked in #5208.kyle-sexton commentedon Sep 29, 2026
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.
/pluginwarning is expected and harmless with the user-scope override, and how to silence it. It states that the message text is observed behavior, not documented by Claude Code. Version bumped to 0.4.2 with a changelog entry. Parity checks and markdownlint pass locally; CI has not run on the draft.This issue stays open until the upstream request is answered. The
/pluginmenu will keep showing the warning for users of the override until then.kyle-sexton commentedon Sep 29, 2026
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.
fix(dometrain): match tools by server segment, not a fixed prefix
fix(dometrain): align the setup eval expected_output with segment mat…
feat(dometrain): split the MCP server into dometrain-mcp (#5213)
kyle-sexton commentedon Sep 29, 2026
Status (2026-09-29): option 4 is merged in #5213.
dometrainis now skills-only (0.5.0) and the bundled server moved to the newdometrain-mcpplugin (0.1.0). The skills match tools by thedometrainserver 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)dometrainalone plus a user-scopedometrainserver shows no warning, and (2)dometrain-mcpplus a user-scope server still does, as expected. Existing users of the bundled server needdometrain-mcpinstalled after updating.kyle-sexton commentedon Sep 29, 2026
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.
kyle-sexton commentedon Sep 29, 2026
Owner decision (2026-09-29): Run the two live checks in /plugin, then close. (1)
dometrainalone plus a user-scopedometrainserver shows no warning. (2)dometrain-mcpplus 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.kyle-sexton commentedon Sep 30, 2026
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
dometrainMCP server present, (1) the skills-onlydometrainplugin shows no duplicate warning, and (2)dometrain-mcpstill shows it.Current state (confirmed on origin/main).
plugins/dometrainis skills-only (no.mcp.json).plugins/dometrain-mcp/.mcp.jsonships thedometrainhttp 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/pluginsession is needed unless the CLI does not show the message.Steps (all in a throwaway
CLAUDE_CONFIG_DIRunder the gitignored.work/; no credentials, no elevation, no fleet host):CLAUDE_CONFIG_DIRpointed at it, add a user-scope server:claude mcp add --scope user --transport http dometrain https://mcp.dometrain.com/mcp.plugins/dometrainfrom an origin/main worktree (for exampleclaude --plugin-dir <worktree>/plugins/dometrain mcp list, orclaude -p --debug --output-format stream-jsonwith the same flag). Capture the output and grep forskipped — same command/URL.plugins/dometrain-mcpthe same way with a dummydometrain_api_keyvalue (the dedupe is by endpoint, not auth). Capture the output and grep for the same message./plugindialog can. Then leave the issue open withneeds-human, record that finding, and the owner runs the two checks in/plugin.Acceptance criteria.
CLAUDE_CONFIG_DIR. No user-scope config, real API key or other worktree was touched.skipped — same command/URLmessage 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.needs-humanwith that finding recorded.kyle-sexton commentedon Sep 30, 2026
Headless dedupe checks (2026-09-29): the exact message does not surface headlessly
Claude Code
2.1.285 (Claude Code). ScratchCLAUDE_CONFIG_DIR=.work/drain/5209-cfg(gitignored), no real API key,~/.claude.jsonuntouched by these runs. Plugin paths from a worktree atorigin/main(6554233).Commands
Setup notes: both plugins set
defaultEnabled: false, so the scratchsettings.jsonenablesdometrain@inlineanddometrain-mcp@inline; without that the plugin loads as disabled and nothing is merged.mcp listdoes not load--plugin-dirplugins at all (its output is identical for both plugins, andclaude mcp list --plugin-diris rejected withunknown option). Only the-ppath loads them. There is no login, so the-pturn ends withNot logged in; the MCP merge runs before that.Raw output
mcp list, check 1 and check 2 (identical, user-scope server only):-pstream-json init, both checks:"mcp_servers":[{"name":"dometrain","status":"failed","source":"user"}]. The plugin was loaded and enabled in each (pluginslistsdometrain@inline0.5.0, thendometrain-mcp@inline0.1.0).Debug log, MCP merge lines:
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
dometrainserver,dometrain-mcphas its plugin server suppressed (debug log) anddometrainhas nothing to suppress. But the user-facing textskipped — same command/URL ...is not produced bymcp list, by-pstream-json or by--debug; the debug log carries a different string. The exact message is only seen in the/plugindialog. By the resolution's step 5 and acceptance criteria, this issue is not closed and keepsneeds-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.
kyle-sexton commentedon Oct 1, 2026
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
dometrainserver, the debug log showsSuppressing 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.