minutes icon indicating copy to clipboard operation
minutes copied to clipboard

v0.9.3 Claude Desktop extension ships incomplete yaml package

Open audab opened this issue 7 months ago • 3 comments

Summary

The v0.9.3 .mcpb extension bundle ships an incomplete yaml package in crates/mcp/node_modules/yaml. The schema/yaml-1.1/ directory (including merge.js) is missing, causing the MCP server to crash immediately after responding to initialize.

Environment

  • macOS (Apple Silicon), Claude Desktop
  • Extension: ant.dir.gh.silverstein.minutes v0.9.3
  • Node.js 24.14.0 (Claude Desktop's built-in runtime)

Symptoms

In Claude Desktop logs, the server starts, receives initialize, then disconnects ~200ms later with no visible error:

Server started and connected successfully
Message from client: {"method":"initialize",...}
Server transport closed unexpectedly

No stderr is surfaced in the Claude Desktop log.

Reproduction

Running the entry point manually reveals the actual crash:

cd "~/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp"
MINUTES_HOME="$HOME/.minutes" MEETINGS_DIR="$HOME/meetings" node dist/index.js

Stack trace:

Error: Cannot find module '../schema/yaml-1.1/merge.js'
Require stack:
- /Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/nodes/addPairToJSMap.js
- /Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/nodes/Pair.js
- /Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/doc/Document.js
- /Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/compose/composer.js
- /Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Module.require (node:internal/modules/cjs/loader:1311:12)
    at require (node:internal/modules/helpers:136:16)
    at Object.<anonymous> (/Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/nodes/addPairToJSMap.js:4:13)
    at Module._compile (node:internal/modules/cjs/loader:1554:14)
    at Object..js (node:internal/modules/cjs/loader:1706:10)
    at Module.load (node:internal/modules/cjs/loader:1289:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/nodes/addPairToJSMap.js',
    '/Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/nodes/Pair.js',
    '/Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/doc/Document.js',
    '/Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/compose/composer.js',
    '/Users/aurelien/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp/node_modules/yaml/dist/index.js'
  ]
}

Workaround

Reinstalling yaml in the extension directory fixes it:

cd "~/Library/Application Support/Claude/Claude Extensions/ant.dir.gh.silverstein.minutes/crates/mcp"
rm -rf node_modules/yaml
# copy a fresh yaml install from a clean npm install elsewhere

Likely cause

The bundling step (pnpm deploy / npm prune / zip) is probably stripping files based on a pattern that excludes schema/yaml-1.1/*. Worth checking the build script and any .npmignore / files allowlist.

audab avatar Apr 16 '26 23:04 audab

Root cause is confirmed and fixed on feat/autoresearch-release-prep / PR #142.

What was happening:

  • the checked-in crates/mcp/node_modules/yaml tree is complete
  • but mcpb pack was producing a broken minutes.mcpb
  • the culprit was a bare schema/ rule in .mcpbignore, which was matching nested runtime paths like crates/mcp/node_modules/yaml/dist/schema/yaml-1.1/*, not just the repo-root schema/ docs directory

What changed:

  • .mcpbignore: tighten schema/ to repo-root-only /schema/
  • added scripts/check_mcpb_bundle.sh to verify the packed extension contains the required yaml runtime files
  • updated docs/PRE-RELEASE-CHECKLIST.md to require the bundle check after mcpb pack

Local verification:

  • fresh mcpb pack on current source now includes:
    • crates/mcp/node_modules/yaml/dist/schema/yaml-1.1/merge.js
    • crates/mcp/node_modules/yaml/dist/schema/yaml-1.1/schema.js
  • ./scripts/check_mcpb_bundle.sh minutes.mcpb passes

I’d keep this issue open until PR #142 merges, then close it from the merge or immediately after.

silverstein avatar Apr 16 '26 23:04 silverstein

:::writing{variant=“standard” id=“28461”} Confirmed I hit the same issue on macOS with Claude Desktop.

Symptoms matched exactly: • Filesystem extension worked • Minutes extension disconnected immediately • manually running the bundled entry point produced: Error: Cannot find module '../schema/yaml-1.1/merge.js'

I also removed the extension folder and settings, reinstalled, and still reproduced it, which is consistent with the broken published bundle.

Glad to see root cause identified in .mcpbignore and fixed in PR #142. :::

nigelnigelnigelnigel avatar Apr 17 '26 00:04 nigelnigelnigelnigel

Fix shipped in v0.13.0 via #142. Verified against the published bundle just now:

$ gh release download v0.13.0 --pattern 'minutes.mcpb'
$ unzip -l minutes.mcpb | grep 'yaml-1.1/(merge|schema).js'
  2548  crates/mcp/node_modules/yaml/dist/schema/yaml-1.1/merge.js
   912  crates/mcp/node_modules/yaml/dist/schema/yaml-1.1/schema.js
  2548  crates/sdk/node_modules/yaml/dist/schema/yaml-1.1/merge.js
   912  crates/sdk/node_modules/yaml/dist/schema/yaml-1.1/schema.js
$ ./scripts/check_mcpb_bundle.sh minutes.mcpb
MCPB bundle looks healthy: minutes.mcpb

The regression class is also now covered:

  • .mcpbignore tightened from bare schema/ to repo-root-only /schema/, so the packer no longer matches nested runtime paths.
  • New scripts/check_mcpb_bundle.sh verifies required yaml runtime files are present.
  • docs/PRE-RELEASE-CHECKLIST.md now requires running that check after mcpb pack.

Upgrade path

Claude Desktop extension users (@audab, @nigelnigelnigelnigel): uninstall the Minutes extension, then reinstall from the v0.13.0 minutes.mcpb. The fresh bundle has the complete yaml runtime; no more Cannot find module '../schema/yaml-1.1/merge.js'.

Thanks to both of you for the clean repro and stack traces. That's what made this a 30-minute fix instead of a 3-hour one. Closing.

silverstein avatar Apr 17 '26 02:04 silverstein