@uni-design-system/uni-mcp 4.7.3 → 10.2.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # @uni-design-system/uni-mcp
2
2
 
3
+ ## 10.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`704e79b`](https://github.com/uni-design-system/uni/commit/704e79bb896bd32de17f45b4bed8e5b9e5882186) Thanks [@gaenglish](https://github.com/gaenglish)! - The published MCP server carries the index for its own release.
8
+
9
+ `uni-mcp@10.2.0` shipped a bundle whose index was stamped `meta.version:
10
+ 10.1.0`. The data itself was current, but the one field a consumer reads to
11
+ check which release the server describes said the previous one — the same drift
12
+ the version alignment had just been made to end.
13
+
14
+ The cause was ordering, not data. `tsup` **inlines** `uni-index.json` into the
15
+ bundle, so the dist built during the verify step was stamped before
16
+ `changeset version` ran; publishing then shipped that stale bundle even though
17
+ the regenerated index was correctly committed to the repo. `version-packages`
18
+ now rebuilds `uni-mcp` after regenerating the index, so the artifact and its
19
+ source agree.
20
+
21
+ The general rule, for anything added later: a package whose dist embeds
22
+ release-time data has to be rebuilt _after_ the version bump, not before.
23
+
24
+ ## 10.2.0
25
+
26
+ ### Patch Changes
27
+
28
+ - [`2b8d80f`](https://github.com/uni-design-system/uni/commit/2b8d80f133c68be2cffd600aa84f601ad59f22db) Thanks [@gaenglish](https://github.com/gaenglish)! - The MCP server now shares the library's version number.
29
+
30
+ It used to release on its own `4.x` line while the library was on `10.x`, which
31
+ had two consequences. Pinning was impossible: the README told you to match the
32
+ server to your installed `@uni-design-system/uni-angular` version, but
33
+ `uni-mcp@10.1.0` did not exist. And staleness was silent — the index is
34
+ regenerated on every release, stamped with that release's version and **inlined
35
+ into the published bundle**, yet the package only republished when someone
36
+ remembered a changeset for it. Miss one and the server keeps describing the
37
+ previous release while reporting a version that gives no hint of it.
38
+
39
+ `uni-mcp` joins `uni-core`, `uni-react` and `uni-angular` in the changesets
40
+ `fixed` group, so it always shares their version and always republishes. The
41
+ version therefore jumps from `4.7.3` to match the current release. Nothing about
42
+ the server's behaviour, transport or tools changes.
43
+
44
+ `uni-mcp@<version>` now describes `uni-angular@<version>`, so pinning them
45
+ together does what the docs always claimed it did.
46
+
3
47
  ## 4.7.3
4
48
 
5
49
  ### Patch Changes
package/README.md CHANGED
@@ -42,17 +42,24 @@ your client's MCP settings.
42
42
 
43
43
  ### Pin it to your installed Uni version
44
44
 
45
- All Uni packages release under one coordinated version number. The server
46
- answers from an index stamped with the release it was built from, so for
47
- answers that exactly match the APIs you have installed, replace `@latest` with
48
- the version of `@uni-design-system/uni-angular` in your `package.json`:
45
+ All Uni packages release under one coordinated version number, this server
46
+ included. It answers from an index stamped with the release it was built from,
47
+ so for answers that exactly match the APIs you have installed, replace
48
+ `@latest` with the version of `@uni-design-system/uni-angular` in your
49
+ `package.json` — they are the same number:
49
50
 
50
51
  ```jsonc
51
- "args": ["-y", "@uni-design-system/uni-mcp@4.3.0"]
52
+ "args": ["-y", "@uni-design-system/uni-mcp@10.2.0"]
52
53
  ```
53
54
 
54
55
  `@latest` is fine when you track current Uni releases.
55
56
 
57
+ > **Versions before 10.2.0.** This server used to release on its own `4.x` line
58
+ > while the library was on `10.x`, so pinning it to your installed version was
59
+ > impossible and the index could go stale whenever a release did not happen to
60
+ > bump it. It now moves with the rest of the packages, and every release
61
+ > republishes it — so `uni-mcp@10.2.0` describes `uni-angular@10.2.0`, exactly.
62
+
56
63
  ### Verify and try it
57
64
 
58
65
  In Claude Code, `/mcp` should list **uni** as connected. Then ask things like: