Skip to content

fix: make .mcpb a thin npx wrapper (23MB → ~1KB)#70

Merged
ldraney merged 1 commit intomainfrom
69-mcpb-npx-wrapper
Jan 28, 2026
Merged

fix: make .mcpb a thin npx wrapper (23MB → ~1KB)#70
ldraney merged 1 commit intomainfrom
69-mcpb-npx-wrapper

Conversation

@ldraney
Copy link
Owner

@ldraney ldraney commented Jan 28, 2026

Summary

  • .mcpb bundle was 23 MB because it included all of node_modules
  • npm already publishes the package at 73 KB — the bundle just needs to call npx @ldraney/github-mcp@latest --preset core
  • manifest.json now uses npx instead of node ${__dirname}/dist/index.js
  • .mcpbignore excludes everything except manifest.json and README.md
  • Release workflow publishes npm before mcpb pack (the wrapper depends on the package existing)

Test plan

  • Merge and tag v0.2.2
  • Verify npm publish succeeds
  • Verify .mcpb asset is <100 KB
  • Install .mcpb in Claude Desktop, confirm it runs via npx
  • Verify OAuth flow and basic tool calls work

Closes #66
Refs #69

🤖 Generated with Claude Code

The mcpb bundle was 23 MB because it included all of node_modules.
Since npm already publishes the package (73 KB), the .mcpb just needs
to call `npx @ldraney/github-mcp@latest --preset core`.

Changes:
- manifest.json: command changed from node to npx
- .mcpbignore: exclude everything except manifest.json and README.md
- release.yml: publish npm before mcpb pack (wrapper depends on it),
  remove continue-on-error from npm publish

Closes #66
Refs #69

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ldraney ldraney merged commit f1598e1 into main Jan 28, 2026
1 check passed
@ldraney ldraney deleted the 69-mcpb-npx-wrapper branch January 28, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce .mcpb bundle size from 23MB to ~3MB

1 participant