techlist.io

Packaging

1 posts

Anthropic2025-06-263 min readCurated summary

Desktop Extensions: One-click MCP installs

# Desktop Extensions: One-Click Installation for Local MCP Servers Anthropic is introducing Desktop Extensions, a packaging format that bundles a local MCP server and all its dependencies into a single `.mcpb` file that installs with one click. The change addresses the friction that kept powerful local MCP servers out of reach for non-technical users, who previously needed developer tools, hand-edited configuration files, and manual dependency management. The format is open-sourced and versioned as 0.1, with a curated extension directory and enterprise controls built into Claude Desktop. ## Problems with Manual MCP Installation - Users needed Node.js, Python, or other runtimes installed beforehand - Each server required manually editing `claude_desktop_config.json` - Dependency conflicts and version mismatches had to be resolved by hand - Finding useful servers meant searching GitHub - Updating a server meant reinstalling it manually ## How Desktop Extensions Work A Desktop Extension is a ZIP archive with the `.mcpb` extension. The only required file is `manifest.json`, which describes the extension's metadata, features, user configuration, and runtime requirements. The archive typically also contains the server code and bundled dependencies, such as a `server/` directory with an entry point and a `node_modules/` or `lib/` directory for Python packages. - **Built-in runtime:** Claude Desktop ships with Node.js, so no external runtime is needed - **Automatic updates:** Extensions update when new versions are available - **Secure secrets:** Sensitive values such as API keys are stored in the OS keychain - **Configuration gating:** Claude won't enable an extension until required user settings are supplied - **Variable substitution:** Placeholders like `${user_config.api_key}`, `${__dirname}`, `${HOME}`, and `${TEMP}` are resolved at launch - **Platform overrides:** The `platforms` block lets developers set different commands or environment variables for Windows and macOS ## Manifest and Packaging - The manifest declares user configuration fields with types, defaults, validation rules, and a `sensitive` flag - Configuration can be passed to the server as environment variables or command-line arguments - Developers can declare tools and prompts up front so users see capabilities before installing - The `npx @anthropic-ai/mcpb init` command generates a manifest interactively, and `npx @anthropic-ai/mcpb pack` validates it and produces the archive - Users can test a package by dragging the `.mcpb` file into Claude Desktop's Settings window ## Ecosystem and Enterprise Controls Anthropic is open-sourcing the MCPB specification, packaging and validation tools, reference implementations, and TypeScript types and schemas. The goal is for the format to work across other AI desktop applications, so developers can package a server once. For enterprises, Desktop Extensions support Group Policy on Windows and MDM on macOS, pre-installation of approved extensions, blocklists by extension or publisher, disabling the extension directory, and private extension directories. Users can audit installed extensions. ## Practical Takeaway MCP server developers can package an existing server by running `npm install -g @anthropic-ai/mcpb`, then `mcpb init` and `mcpb pack`. Anthropic also notes that Claude Code can build extensions with little intervention when given the MCPB specification links and a short description of the desired behavior. Internally, the team has used the format to package experimental servers, including one that lets Claude play a GameBoy game through the PyBoy emulator.