chore: Add MCPB packaging files for cross-platform Claude Desktop bundle#30
Open
bryan-anthropic wants to merge 1 commit intozscaler:masterfrom
Open
chore: Add MCPB packaging files for cross-platform Claude Desktop bundle#30bryan-anthropic wants to merge 1 commit intozscaler:masterfrom
bryan-anthropic wants to merge 1 commit intozscaler:masterfrom
Conversation
Adds three files to enable building a cross-platform .mcpb bundle for the Claude Desktop MCP Directory. No existing code is modified. - manifest.json: MCPB v0.4 manifest with 265 tools, user config, privacy policy - .mcpbignore: Excludes non-runtime files (~875KB → ~222KB bundle) - icon.png: Zscaler cloud icon for the MCP Directory listing Uses server.type "uv" so dependencies are resolved at runtime via pyproject.toml rather than bundling platform-specific compiled extensions. This produces a ~222KB cross-platform bundle instead of a ~58MB platform-locked bundle. Build with: npx @anthropic-ai/mcpb@latest pack Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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
Adds MCPB packaging files to enable building a cross-platform
.mcpbbundle for the Claude Desktop MCP Directory. No existing code is modified — this PR only adds packaging metadata.manifest.json.mcpbignoreicon.pngWhy
server.type: "uv"instead ofserver.type: "python"?Python MCP servers that bundle dependencies via
pip install --targetembed platform-specific compiled extensions (.so/.pydfiles from packages likepydantic-core,cryptography,orjson). These binaries are locked to the OS and CPU architecture where the bundle was built.The
uv-native approach (server.type: "uv") solves this by deferring dependency resolution to runtime. When a user installs the bundle,uvreadspyproject.toml, resolves the correct platform-specific wheels for their system, and caches them locally.pip --targetbundleuv-native bundle.sofiles)How it works
The manifest declares
server.type: "uv"with this config:{ "command": "uv", "args": ["run", "python", "-m", "zscaler_mcp.server"], "env": { "PYTHONPATH": "${__dirname}", ... } }At runtime,
uv runreadspyproject.toml, resolves dependencies into a cached virtual environment with platform-correct wheels, then executes the server. The bundle only needs to contain source code +pyproject.toml— no pre-compiled binaries.Building the bundle
This produces a
zscaler-mcp-server-0.6.2.mcpbfile (~222 KB) containing the source code,pyproject.toml, manifest, icon, license, and README.What's in the manifest
Test plan
npx @anthropic-ai/mcpb@latest packsucceeds from repo root.so,.pyd, or__pycache__filespyproject.toml(required foruvdependency resolution)