开源推荐
morning
GitHub 热门项目:mcpb
摘要
GitHub项目:mcpb 仓库地址:https://github.com/modelcontextprotocol/mcpb Stars:2096 | 作者:modelcontextprotocol 项目描述:Desktop Extensions: One-click local MCP server installation in desktop apps ==================...
and
MCP
the
mcpb
local
servers
for
server
MCPB
CLI
2026-09-08
1 阅读
约7分钟阅读
GitHub Trending
字号:
GitHub 项目:mcpb
仓库地址:https://github.com/modelcontextprotocol/mcpb
星级:2096 | 作者:modelcontextprotocol
项目描述:Desktop Extensions: One-click local MCP server installation in desktop apps
===================================================
自述文件内容:
# MCP 捆绑包 (MCPB)
> **⚠️ IMPORTANT NOTICE: This project is being renamed from DXT (Desktop Extensions) to MCPB (MCP Bundles)**
>
> If you're looking for the DXT tools, they have been renamed to MCPB.请更新您的依赖项和工具:
>
> - `dxt` CLI 现在是 `mcpb`
> - `.dxt` 文件现在是 `.mcpb` 文件
> - `@anthropic-ai/dxt` package will be moved to `@anthropic-ai/mcpb`
MCP Bundles (`.mcpb`) are zip archives containing a local MCP server and a `manifest.json` that describes the server and its capabilities.该格式在精神上类似于 Chrome 扩展 (`.crx`) 或 VS Code 扩展 (`.vsix`),使最终用户只需单击一下即可安装本地 MCP 服务器。
此存储库提供三个组件:[MANIFEST.md](MANIFEST.md) 中的捆绑包规范、用于创建捆绑包的 CLI 工具(请参阅 [CLI.md](CLI.md))以及 Claude 在 macOS 和 Windows 上用于加载和验证 MCPB 捆绑包的代码 ([src/index.ts](src/index.ts))。
- For developers of local MCP servers, we aim to make distribution and installation of said servers convenient
- For developers of apps supporting local MCP servers, we aim to make it easy to add support for MCPB bundles
适用于 macOS 和 Windows 的 Claude 使用此存储库中的代码来实现本地 MCP 服务器的单击安装,包括许多最终用户友好的功能 - 例如自动更新、轻松配置 MCP 服务器及其所需的变量和参数,以及精选目录。我们致力于围绕 MCP 服务器的开放生态系统,并相信其被多个应用程序和服务普遍采用的能力有利于旨在将 AI 工具连接到其他应用程序和服务的开发人员。因此,我们开源了 MCP Bundle 规范、工具链以及 Claude 在 macOS 和 Windows 上使用的架构和关键函数,以实现其对 MCP Bundle 的支持。 It is our hope that the `mcpb` format doesn't just make local MCP servers more portable for Claude, but other AI desktop applications, too.
# 对于捆绑包开发者
At the core, MCPB are simple zip files containing your entire MCP server and a `manifest.json`.因此,将本地 MCP 服务器转换为捆绑包非常简单:您只需将所有需要的文件放入一个文件夹中,创建一个“manifest.json”,然后创建一个存档。
To make this process easier, this package offers a CLI that helps you with the creation of both the `manifest.json` and the final `.mcpb` file.要安装它,请运行:
````嘘
npm install -g @anthropic-ai/mcpb
````
1. In a folder containing your local MCP server, run `mcpb init`. This command will guide you through the creation of a `manifest.json`.
2. 运行“mcpb pack”创建“mcpb”文件。
3. Now, any app implementing support for MCPB can run your local MCP server. As an example, open the file with Claude for macOS and Windows to show an installation dialog.
您可以找到“manifest.json”的完整规范及其所有强制性和
这篇文章对您有帮助吗?
订阅66必读
每日精选科技资讯,直达你的邮箱