Skip to content

Commit b35df76

Browse files
committed
[kensai] compile MCP server to JS before publishing
Published npm package shipped raw .ts source as bin entry. Node.js 22+ refuses type stripping inside node_modules (ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING), breaking npx execution. - Add vp pack config (tsdown) to bundle src/index.ts -> dist/ - Point bin to compiled dist/index.mjs - Ship dist/ instead of src/ via .npmignore - Add prepublishOnly gate: check + test + pack - Bump to 0.1.2
1 parent 87e927a commit b35df76

5 files changed

Lines changed: 14 additions & 9 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"name": "kensai",
1414
"description": "Multi-agent code review pipeline with adversarial falsification, orchestrated by a stateful MCP server",
1515
"source": "./claude/kensai",
16-
"version": "0.1.1",
16+
"version": "0.1.2",
1717
"license": "MIT",
1818
"keywords": [
1919
"code-review",

claude/kensai/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kensai",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Multi-agent code review pipeline with adversarial falsification, orchestrated by a stateful MCP server",
55
"author": {
66
"name": "xobotyi",
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
*
2-
!/src
3-
*.test.ts
4-
*.bench.ts
5-
**/CLAUDE.md
2+
!/dist

claude/kensai/mcp/review/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gaijin/kensai-review-mcp",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Stateful MCP server for the kensai multi-agent code review pipeline",
55
"license": "MIT",
66
"author": {
@@ -12,17 +12,19 @@
1212
"url": "https://github.com/GaijinEntertainment/yatai",
1313
"directory": "claude/kensai/mcp/review"
1414
},
15-
"bin": "./src/index.ts",
15+
"bin": "./dist/index.mjs",
1616
"type": "module",
1717
"publishConfig": {
1818
"access": "public"
1919
},
2020
"scripts": {
2121
"start": "node ./src/index.ts",
22+
"build": "vp pack",
2223
"test": "vp test",
2324
"lint": "vp check",
2425
"lint:fix": "vp check --fix",
25-
"typecheck": "tsc --noEmit"
26+
"typecheck": "tsc --noEmit",
27+
"prepublishOnly": "vp check && vp test && vp pack"
2628
},
2729
"dependencies": {
2830
"@modelcontextprotocol/sdk": "^1.29.0",

claude/kensai/mcp/review/vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ export default defineConfig({
1212
rules: { "vite-plus/prefer-vite-plus-imports": "error" },
1313
options: { typeAware: true, typeCheck: true },
1414
},
15+
pack: {
16+
entry: ["src/index.ts"],
17+
format: ["esm"],
18+
platform: "node",
19+
sourcemap: true,
20+
},
1521
});

0 commit comments

Comments
 (0)