Add Claude Desktop extension (.mcpb) packaging support - #11
Draft
kyletaylored wants to merge 2 commits into
Draft
Conversation
Adds manifest.json with user_config prompts for printer connection settings, .mcpbignore, an npm package:mcpb script, and a release-mcpb CI workflow that attaches the packed bundle to tagged GitHub releases, so the server can be installed via Claude Desktop's extension UI instead of hand-editing JSON config. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
kyletaylored
marked this pull request as draft
August 20, 2026 19:18
TEMP_DIR defaulted to a cwd-relative path, but the extension host spawns the server with a cwd we don't control (and may not be writable), so the module-load-time mkdirSync threw and killed the process before it ever opened the stdio transport -- surfacing only as a silent "Server transport closed unexpectedly" moments after initialize. Default to os.tmpdir() instead, and add top-level uncaughtException/unhandledRejection handlers so any future crash logs a stack trace instead of dying silently. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
manifest.json(mcpb manifest) withuser_configprompts for printer host, serial, LAN access code, and model, so Claude Desktop's extension install wizard can collect connection settings interactively instead of requiring hand-edited JSON config..mcpbignoreto keep the packed bundle limited to runtime files (excludes docs, tests, TS sources, dev configs).npm run package:mcpbscript (build → prune dev deps → validate → pack)..github/workflows/release-mcpb.yml, which builds/packs/validates the bundle on version tags and attachesbambu-printer-mcp.mcpbto the GitHub release, mirroring the existing npm-publish workflow.Modeled on the mcpb setup in github-mcp-server-mcpb.
Test plan
mcpb validate manifest.jsonpassesnpm run package:mcpbproduces a valid archive (unzip -tsucceeds)npm run buildandnode --test tests/behavior.test.mjspass (47/47)