@uni-design-system/uni-mcp 4.7.2 → 10.2.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.
- package/CHANGELOG.md +52 -0
- package/README.md +12 -5
- package/dist/{chunk-HXXP4PTK.js → chunk-OV2VCKGB.js} +6967 -3673
- package/dist/chunk-OV2VCKGB.js.map +1 -0
- package/dist/http.js +1 -1
- package/dist/server.js +1 -1
- package/dist/stdio.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-HXXP4PTK.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# @uni-design-system/uni-mcp
|
|
2
2
|
|
|
3
|
+
## 10.2.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`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.
|
|
8
|
+
|
|
9
|
+
It used to release on its own `4.x` line while the library was on `10.x`, which
|
|
10
|
+
had two consequences. Pinning was impossible: the README told you to match the
|
|
11
|
+
server to your installed `@uni-design-system/uni-angular` version, but
|
|
12
|
+
`uni-mcp@10.1.0` did not exist. And staleness was silent — the index is
|
|
13
|
+
regenerated on every release, stamped with that release's version and **inlined
|
|
14
|
+
into the published bundle**, yet the package only republished when someone
|
|
15
|
+
remembered a changeset for it. Miss one and the server keeps describing the
|
|
16
|
+
previous release while reporting a version that gives no hint of it.
|
|
17
|
+
|
|
18
|
+
`uni-mcp` joins `uni-core`, `uni-react` and `uni-angular` in the changesets
|
|
19
|
+
`fixed` group, so it always shares their version and always republishes. The
|
|
20
|
+
version therefore jumps from `4.7.3` to match the current release. Nothing about
|
|
21
|
+
the server's behaviour, transport or tools changes.
|
|
22
|
+
|
|
23
|
+
`uni-mcp@<version>` now describes `uni-angular@<version>`, so pinning them
|
|
24
|
+
together does what the docs always claimed it did.
|
|
25
|
+
|
|
26
|
+
## 4.7.3
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- [`67e17ea`](https://github.com/uni-design-system/uni/commit/67e17ea927e3ca24b7abecdcccf134d53ac3656b) Thanks [@gaenglish](https://github.com/gaenglish)! - `get-component` lists inherited inputs, and each story gets its own example.
|
|
31
|
+
|
|
32
|
+
**`variant` and `size` were missing from almost every component.** 49 components
|
|
33
|
+
extend `BaseComponent`, which declares both as real bindable inputs — but the
|
|
34
|
+
adapter is a regex over a single file with no `extends` handling, and
|
|
35
|
+
`BaseComponent` has no `selector`, so it is discarded before it can be parsed.
|
|
36
|
+
The two inputs survived only for the handful of components that redeclare them
|
|
37
|
+
locally. An agent reading `get-component toggle` saw no `variant`, which is the
|
|
38
|
+
one knob that made a consumer's migration viable. They are now appended to every
|
|
39
|
+
`BaseComponent` subclass, deduped so a local `override` still wins.
|
|
40
|
+
|
|
41
|
+
**Every story of a component shared one example.** `extractTemplate` matched the
|
|
42
|
+
first `template:` in a stories file and the result was cached per file, so a
|
|
43
|
+
component whose meta declares a generic `render` had all of its examples collapse
|
|
44
|
+
into that stub — `uni-toggle` shipped six identical `<uni-toggle></uni-toggle>`
|
|
45
|
+
snippets, and its richest story documented as its poorest. Each story's own
|
|
46
|
+
template is now located by brace-balancing its object literal, falling back to
|
|
47
|
+
the file-level template for the args-only stories that legitimately share the
|
|
48
|
+
meta render.
|
|
49
|
+
|
|
50
|
+
Also raises the theme payload ceiling from 20 KB to 24 KB. That guard exists to
|
|
51
|
+
catch the ~50 KB icon set creeping back into the wire form, and ordinary token
|
|
52
|
+
growth had reached the old limit; it is sized to catch the icons, not to freeze
|
|
53
|
+
the token set.
|
|
54
|
+
|
|
3
55
|
## 4.7.2
|
|
4
56
|
|
|
5
57
|
### 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
|
|
46
|
-
answers from an index stamped with the release it was built from,
|
|
47
|
-
answers that exactly match the APIs you have installed, replace
|
|
48
|
-
the version of `@uni-design-system/uni-angular` in your
|
|
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@
|
|
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:
|