@uni-design-system/uni-mcp 4.7.0 → 4.7.2
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 +30 -0
- package/README.md +16 -4
- package/dist/{chunk-JOMMURY6.js → chunk-HXXP4PTK.js} +2413 -280
- package/dist/chunk-HXXP4PTK.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-JOMMURY6.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @uni-design-system/uni-mcp
|
|
2
2
|
|
|
3
|
+
## 4.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c0c6056`](https://github.com/uni-design-system/uni/commit/c0c6056c61e994a45af9c379f3c99f55eebcb79a) Thanks [@gaenglish](https://github.com/gaenglish)! - Fix three miscategorized components in the index.
|
|
8
|
+
|
|
9
|
+
Categories come from an ordered list of substring regexes, so a name that merely
|
|
10
|
+
contains an earlier row's keyword lands in the wrong bucket — and a
|
|
11
|
+
miscategorized component is invisible to `list-components --category`, which is
|
|
12
|
+
how agents and humans find things.
|
|
13
|
+
- `textarea` → **forms** (was `primitives`: `/text/` matches inside "textarea"
|
|
14
|
+
and wins before the forms row is tried)
|
|
15
|
+
- `combobox` → **forms** (was `layout`: `/box/` matches inside "combobox")
|
|
16
|
+
- `expand-toggle` → **layout** (was `forms`: `/toggle/` beat `/expand/`)
|
|
17
|
+
|
|
18
|
+
Known ids now go through an explicit override map consulted before the keyword
|
|
19
|
+
pass, so a fix is a one-line entry rather than a regex that has to be reasoned
|
|
20
|
+
about globally.
|
|
21
|
+
|
|
22
|
+
Also: MDX pages are matched to their source by basename, stripping only
|
|
23
|
+
`.component.ts`. With the layout primitives and `uni-text` becoming directives,
|
|
24
|
+
`.directive.ts` is stripped too, so their docs keep attaching by name instead of
|
|
25
|
+
falling through to the same-directory fallback.
|
|
26
|
+
|
|
27
|
+
## 4.7.1
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [`b160b3c`](https://github.com/uni-design-system/uni/commit/b160b3c073ffb3191dd1cdf0a2f71e60679f1182) Thanks [@gaenglish](https://github.com/gaenglish)! - README: the hosted (Render) endpoint is marked dormant — no deployment is currently running; stdio via `npx -y @uni-design-system/uni-mcp` is the canonical path (pin the package to your installed Uni version for version-locked answers). The HTTP mode stays documented and deployable for when a browser-based consumer needs it. The `get-changelog` and `export-dtcg-tokens` tools are now listed in the tools table.
|
|
32
|
+
|
|
3
33
|
## 4.7.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -84,7 +84,9 @@ tokens, never by hardcoding hex values in components.
|
|
|
84
84
|
| `generate-uni-theme` | complete WCAG-AA light+dark `uni-theme.ts` from brand hex color(s), with vibe/scheme/shape options, provider registration snippet, and contrast report |
|
|
85
85
|
| `generate-runtime-theme` | the same generated theme as validated JSON for `registerTheme()` — applies immediately, no file, no rebuild |
|
|
86
86
|
| `get-runtime-theme` | a theme that ships with Uni (`LightTheme`, `DarkTheme`) as a registerable `UniTheme` |
|
|
87
|
+
| `export-dtcg-tokens` | a built-in theme's color/radius/spacing scales as W3C DTCG JSON (Style Dictionary compatible) |
|
|
87
88
|
| `create-icon-tokens` | convert raw SVG into `currentColor`-masked theme icon tokens |
|
|
89
|
+
| `get-changelog` | release notes per package/version — how a coding agent answers "what changed since the version I have installed" |
|
|
88
90
|
| `search` | keyword search across components, tokens, themes, guidelines |
|
|
89
91
|
|
|
90
92
|
### Which theme tool?
|
|
@@ -104,7 +106,16 @@ them on registration; outside Angular, call `hydrateTheme()` from uni-core.
|
|
|
104
106
|
Resources: `uni://meta`, `uni://components/{id}`, `uni://tokens/{id}`,
|
|
105
107
|
`uni://themes/{id}`, `uni://guidelines/{id}`.
|
|
106
108
|
|
|
107
|
-
##
|
|
109
|
+
## Hosted endpoint (currently dormant)
|
|
110
|
+
|
|
111
|
+
> **Status:** no hosted deployment is currently running — the stdio server via
|
|
112
|
+
> `npx` (Getting started above) is the canonical way to use this package. The
|
|
113
|
+
> HTTP mode below is kept, documented, and deployable (repo-root
|
|
114
|
+
> [`render.yaml`](../../render.yaml)) for when a consumer that can't spawn
|
|
115
|
+
> processes appears: browser-based MCP clients (e.g. claude.ai custom
|
|
116
|
+
> connectors) or apps fetching theme JSON by URL. stdio also has the property
|
|
117
|
+
> a shared endpoint can't offer: pin the package version and answers match the
|
|
118
|
+
> Uni release you actually have installed.
|
|
108
119
|
|
|
109
120
|
The same server core runs behind HTTP for a shared, always-current team
|
|
110
121
|
endpoint — useful when you'd rather not run node processes per client.
|
|
@@ -119,17 +130,18 @@ speaking MCP. They are public, read-only and CORS-enabled so a browser can
|
|
|
119
130
|
fetch them directly; `/mcp` stays token-guarded and same-origin.
|
|
120
131
|
|
|
121
132
|
```ts
|
|
122
|
-
|
|
133
|
+
// When a deployment is live, replace <host> with its origin:
|
|
134
|
+
const { themes } = await fetch('https://<host>/themes/DarkTheme.json').then((r) => r.json());
|
|
123
135
|
themeService.registerTheme(themes[0].theme, { select: true });
|
|
124
136
|
```
|
|
125
137
|
|
|
126
|
-
Client config:
|
|
138
|
+
Client config (when deployed):
|
|
127
139
|
|
|
128
140
|
```jsonc
|
|
129
141
|
{
|
|
130
142
|
"mcpServers": {
|
|
131
143
|
"uni": {
|
|
132
|
-
"url": "https
|
|
144
|
+
"url": "https://<host>/mcp",
|
|
133
145
|
"headers": { "Authorization": "Bearer <UNI_MCP_TOKEN>" }
|
|
134
146
|
}
|
|
135
147
|
}
|