m3ui-mcp 0.3.0 → 0.4.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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![M8ven Score](https://m8ven.ai/badge/mcp/smerechuk-m3ui-mcp-ua2pzg?v=48b836a0855fe38035965ecdfcea49db)](https://m8ven.ai/mcp/smerechuk-m3ui-mcp-ua2pzg?s=readme)
4
4
 
5
- A local MCP server (stdio) with a complete, verified knowledge base for **`@m3ui-vue/m3ui-vue` (1.11.0)**, the optional **`@m3ui-vue/nuxt` (0.8.0)** module, and **Material Design 3** / **M3 Expressive** guidelines — designed for any **Vue 3** project (Vite, SPA, SSR, Astro) or **Nuxt 3/4**.
5
+ A local MCP server (stdio) with a complete, verified knowledge base for **`@m3ui-vue/m3ui-vue` (1.13.0)**, the optional **`@m3ui-vue/nuxt` (0.8.2)** module, and **Material Design 3** / **M3 Expressive** guidelines — designed for any **Vue 3** project (Vite, SPA, SSR, Astro) or **Nuxt 3/4**.
6
6
 
7
7
  Search works on English names and descriptions, with synonyms, typo tolerance and prefixes.
8
8
 
@@ -23,6 +23,21 @@ Optionally, to populate `.cache/` for the `demo-source` section of `get_api` and
23
23
  node scripts/fetch-sources.ts --skip-issues
24
24
  ```
25
25
 
26
+ ### Working on the project on a new computer
27
+
28
+ ```bash
29
+ git clone https://github.com/smerechuk/m3ui-mcp.git
30
+ cd m3ui-mcp
31
+ npm ci --ignore-scripts
32
+ npm run setup
33
+ ```
34
+
35
+ `npm run setup` restores `.cache/` exactly as `SOURCES.lock.json` describes it and runs `npm run verify`; when it passes,
36
+ the clone is ready for work. It never changes the lock. The libraries' repositories come at the locked commits; the
37
+ three downloaded files (`llms.txt`, `llms-full.txt`, the Material Symbols metadata) come from the web, and when the web
38
+ version has moved on since the lock, from the copy attached to a GitHub release of this repository (`npm run
39
+ release-assets`). Issues need a logged-in `gh`; without it they are skipped.
40
+
26
41
  If `data/` is empty or stale:
27
42
 
28
43
  ```bash
@@ -109,7 +124,7 @@ The mechanical part is one command; what is left is reading the short lists it p
109
124
  npm run update
110
125
  ```
111
126
  `scripts/update.ts` runs, in order:
112
- - `fetch-sources --update`: new tags and docs in `.cache/`, new `SOURCES.lock.json`;
127
+ - `fetch-sources --update`: new tags, the docs of the installed release (see below) and new downloads in `.cache/`, new `SOURCES.lock.json`;
113
128
  - `rebase-refs`: every line reference (`pkg:src/x.vue:74-82`, `lib@<sha>:CHANGELOG.md:1198`, …) in `content/` and `src/` is moved to the same code in the new version, with the new commit hash. The old version comes from `npm pack` and `git fetch` of the old commit;
114
129
  - `diff-api`: API changes against `data/`;
115
130
  - `build-index`, `check-coverage` and `check-demos` for both targets.
@@ -122,7 +137,11 @@ The mechanical part is one command; what is left is reading the short lists it p
122
137
  - `content/gaps.md` and the recipes: limitations the new version may have removed.
123
138
  3. Raise the package version: `npm version minor --no-git-tag-version` (a new library release is a new minor version; content-only fixes between releases take a patch version, `npm version patch --no-git-tag-version`).
124
139
  4. `npm run verify`. Version numbers in this README and in the `content/gaps.md` heading are checked by the tests, and `scripts/check-version.ts` fails when the library versions changed since the last `v*` tag but the package version did not.
125
- 5. Commit, then tag the release: `git tag v<version>` (pushed with `git push origin main v<version>`). Nothing is published to npm.
140
+ 5. Commit, then tag the release: `git tag v<version>` (pushed with `git push origin main v<version>`).
141
+ 6. Create the GitHub release (`gh release create v<version>`) and attach the locked downloads with `npm run release-assets`, so a clone on another computer can restore them after the live files change.
142
+ 7. Publish to npm: `npm publish` (needs two-factor authentication on the npm account; the build runs in `prepack`).
143
+
144
+ `fetch-sources --update` pins the docs (`m3ui-vue-docs`) to the last commit before the next library release after the installed one, or to HEAD when the installed version is the newest, so pages of later releases do not enter the knowledge base early. Override it with `--docs-sha=<sha>`.
126
145
 
127
146
  Rules written from the library source, in cards or in the server code, carry a `(source: …)` reference. That keeps them inside steps 1–2: they are moved, fingerprinted and flagged like every other claim.
128
147
 
@@ -6,8 +6,8 @@ metadata. Versions and checksums: `SOURCES.lock.json`.
6
6
 
7
7
  ## @m3ui-vue/m3ui-vue and @m3ui-vue/nuxt
8
8
 
9
- - Packages: `@m3ui-vue/m3ui-vue` (https://github.com/SrWither/m3ui-vue), `@m3ui-vue/nuxt`
10
- (https://github.com/SrWither/m3ui-vue-nuxt). Both licensed MIT; copyright holder per `LICENSE` files: Fadel
9
+ - Packages: `@m3ui-vue/m3ui-vue` (https://github.com/m3ui-vue/m3ui-vue), `@m3ui-vue/nuxt`
10
+ (https://github.com/m3ui-vue/m3ui-vue-nuxt). Both licensed MIT; copyright holder per `LICENSE` files: Fadel
11
11
  (GitHub account SrWither).
12
12
  - Used: descriptions and signatures from `dist/api.json`, `dist/API.md`, `.d.ts` files, token and class names
13
13
  from `src/styles/`, locale keys from `src/locales/`, module options from `dist/module.d.mts`; short source-code
@@ -49,7 +49,7 @@ SOFTWARE.
49
49
 
50
50
  ## Unlicensed content (links and original summaries only)
51
51
 
52
- - `SrWither/m3ui-vue-docs` (demo pages, example apps, `llms.txt`, `llms-full.txt` from https://m3ui.dev):
52
+ - `m3ui-vue/m3ui-vue-docs` (demo pages, example apps, `llms.txt`, `llms-full.txt` from https://m3ui.dev):
53
53
  the repository carries no license. Nothing from it is copied into `data/` or `content/`: we store the path,
54
54
  SHA, URL, an original summary, and the list of components used. A working copy lives in `.cache/` (outside
55
55
  git) and is read only by the `get_demo_source` tool on the user's machine.