@godxjp/ui-mcp 27.5.0 → 27.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +19 -0
  2. package/dist/index.js +70 -67
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -64,6 +64,25 @@ npx @godxjp/ui-mcp
64
64
 
65
65
  Restart Claude Code. The 25 tools appear under `mcp__godx_ui__*`.
66
66
 
67
+ **Which server answered.** Every tool answer opens with one line naming the server that produced
68
+ it, read from this package's `package.json`:
69
+
70
+ ```text
71
+ @godxjp/ui-mcp 27.5.0 (catalog for @godxjp/ui 27.5.x)
72
+ ```
73
+
74
+ When the launcher passes `env.GODX_UI_VERSION` (the `.mcp.json` entry `sync-rules` writes does) and
75
+ that installed `@godxjp/ui` is on a different **major**, a second line starts with
76
+ `⚠️ MAJOR MISMATCH:` — the catalog may describe components that do not exist in the installed
77
+ package. Compare the first line with `npm ls @godxjp/ui` before trusting a page; an answer with no
78
+ such line comes from a release that predates it (gh#722) and is stale.
79
+
80
+ **One registration, not two.** Register the server once, in the project's `.mcp.json`. A second
81
+ registration in `~/.claude.json` (user scope, or local scope under `projects[<path>]`) answers beside
82
+ it under a different key, and an agent cannot tell them apart by tool name. `npx @godxjp/ui
83
+ sync-rules` (and `init-agent`) read that file and report any such entry — key, pin, and the
84
+ `claude mcp remove <key> -s <scope>` command — but never edit it: it is outside the project.
85
+
67
86
  ### Codex CLI
68
87
 
69
88
  `~/.codex/config.toml`: