Skip to content

Commit be17a51

Browse files
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

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,14 @@ Wire it into your client's MCP config:
169169
```json
170170
{
171171
"mcpServers": {
172-
"slintcn": { "command": "npx", "args": ["-y", "slintcn-mcp"] }
172+
"slintcn": { "command": "npx", "args": ["-y", "-p", "slintcn", "slintcn-mcp"] }
173173
}
174174
}
175175
```
176176

177+
(`slintcn-mcp` is a bin entry inside the `slintcn` package, not a separate
178+
package — `-p slintcn` tells npx which package to pull, then runs that bin.)
179+
177180
Exposed tools:
178181

179182
| Tool | What it does |

examples/showcase/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/showcase/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "slintcn-showcase"
3-
version = "0.31.0"
3+
version = "0.31.1"
44
edition = "2021"
55
publish = false
66

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "slintcn",
3-
"version": "0.31.0",
3+
"version": "0.31.1",
44
"description": "Beautiful copy-paste Slint components — shadcn for native UI",
55
"keywords": [
66
"slint",
@@ -37,7 +37,8 @@
3737
"bin",
3838
"registry",
3939
"templates",
40-
"schema"
40+
"schema",
41+
"scripts/docs-usage.mjs"
4142
],
4243
"engines": {
4344
"node": ">=20"

registry/default/registry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://slintcn.dev/schema/registry.schema.json",
33
"name": "default",
44
"homepage": "https://stevekwon211.github.io/slintcn",
5-
"version": "0.31.0",
5+
"version": "0.31.1",
66
"description": "Dark glass theme — shadcn-adjacent primitives for Slint",
77
"slintVersion": ">=1.16",
88
"theme": {

0 commit comments

Comments
 (0)