Commit be17a51
committed
fix(mcp): v0.31.1 — published package was missing scripts/docs-usage.mjs
End-to-end testing through npx caught two real bugs the local smoke test
hadn't:
1. `npx slintcn-mcp` doesn't resolve — slintcn-mcp is a bin entry in the
slintcn package, not a separate npm package. Correct invocation is
`npx -p slintcn slintcn-mcp`. README MCP config updated.
2. scripts/docs-usage.mjs was not in package.json's `files` array, so the
published package crashed on startup with ERR_MODULE_NOT_FOUND when the
MCP server tried to import the usage snippets. Added it to files; verified
`npm pack --dry-run` now ships the 15.6 kB file.
Re-verified end-to-end against the published 0.31.1 from a fresh tmp dir:
initialize + tools/list + view_component(data-table) + install_command all
return correct responses.1 parent 259923b commit be17a51
5 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
177 | 180 | | |
178 | 181 | | |
179 | 182 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments