build-mcpb
यह क्या करती है
यह आपके एजेंट को लोकल MCP server को उसके रनटाइम के साथ एक ही इंस्टॉल होने वाली फ़ाइल में बाँधने में मदद करती है। यह उन डेवलपर्स के लिए है जो ऐसा लोकल टूल बाँटना चाहते हैं जो लोगों की अपनी मशीन पर आसानी से चले।
कब इस्तेमाल करें
- ✓जब आप ऐसा लोकल MCP server बाँटना चाहें जो फ़ाइलें पढ़ता हो या डेस्कटॉप ऐप चलाता हो।
- ✓जब आपका MCP server क्लाउड पर नहीं, बल्कि उपयोगकर्ता की मशीन पर चलना चाहिए।
- ✓जब आप चाहें कि लोग Node या Python सेट किए बिना आपका server इंस्टॉल कर सकें।
Skill का लिंक
https://github.com/anthropics/claude-plugins-official/blob/main/plugins/mcp-server-dev/skills/build-mcpb/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे लोकल फ़ाइल-खोज MCP server को एक ऐसी फ़ाइल में पैक कर सकते हैं, जिसे लोग Node के बिना इंस्टॉल कर सकें?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट server का वर्णन करने वाली manifest फ़ाइल लिखता है, server कोड और उसकी निर्भरताओं को बंडल करता है, और एक एकल archive फ़ाइल बनाता है। होस्ट फिर बंडल किए गए server को एक लोकल प्रोग्राम की तरह चलाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Build an MCPB (Bundled Local MCP Server)
MCPB is a local MCP server packaged with its runtime. The user installs one file; it runs without needing Node, Python, or any toolchain on their machine. It's the sanctioned way to distribute local MCP servers.
MCPB is the secondary distribution path. Anthropic recommends remote MCP servers for directory listing — see https://claude.com/docs/connectors/building/what-to-build.
Use MCPB when the server must run on the user's machine — reading local files, driving a desktop app, talking to localhost services, OS-level APIs. If your server only hits cloud APIs, you almost certainly want a remote HTTP server instead (see build-mcp-server). Don't pay the MCPB packaging tax for something that could be a URL.
What an MCPB bundle contains
my-server.mcpb (zip archive)
├── manifest.json ← identity, entry point, config schema, compatibility
├── server/ ← your MCP server code
│ ├── index.js
│ └── node_modules/ ← bundled dependencies (or vendored)
└── icon.png
The host reads manifest.json, launches server.mcp_config.command as a stdio MCP server, and pipes messages. From your code's perspective it's identical to a local stdio server — the only difference is packaging.
Manifest
{
"$schema": "https://raw.githubusercontent.com/anthropics/mcpb/main/schemas/mcpb-manifest-v0.4.schema.json",
"manifest_version": "0.4",
"name": "local-files",
"version": "0.1.0",
"description": "Read, search, and watch files on the local filesystem.",
"author": { "name": "Your Name" },
"server": {
"type": "node",
"entry_point": "server/index.js",
"mcp_config": {
"command": "node",
"args": ["${__dirname}/server/index.js"],
"env": {
"ROOT_DIR": "${user_config.rootDir}"
}
}
},
"user_config": {
"rootDir": {
"type": "directory",
"title": "Root directory",
"description": "Directory to expose. Defaults to ~/Documents.",
"default": "${HOME}/Documents",
"required": true
}
},
"compatibility": {
"claude_desktop": ">=1.0.0",
"platforms": ["darwin", "win32", "linux"]
}
}
server.type — node, python, or binary. Informational; the actual launch comes from mcp_config.
server.mcp_config — the literal command/args/env to spawn. Use ${__dirname} for bundle-relative paths and ${user_config.<key>} to substitute install-time config. There's no auto-prefix — the env var names your server reads are exactly what you put in env.
user_config — install-time settings surfaced in the host's UI. type: "directory" renders a native folder picker. sensitive: true stores in OS keychain. See references/manifest-schema.md for all fields.
Server code: same as local stdio
The server itself is a standard stdio MCP server. Nothing MCPB-specific in the tool logic.
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
import { readFile, readdir } from "node:fs/promises";
import { join } from "node:path";
import { homedir } from "node:os";
// ROOT_DIR comes from what you put in manifest's server.mcp_config.env — no auto-prefix
const ROOT = (process.env.ROOT_DIR ?? join(homedir(), "Documents"));
const server = new McpServer({ name: "local-files", version: "0.1.0" });
server.registerTool(
"list_files",
{
description: "List files in a directory under the configured root.",
inputSchema: { path: z.string().default(".") },
annotations: { readOnlyHint: true },
},
async ({ path }) => {
const entries = await readdir(join(ROOT, path), { withFileTypes: true });
const list = entries.map(e => ({ name: e.name, dir: e.isDirectory() }));
return { content: [{ type: "text", text: JSON.stringify(list, null, 2) }] };
},
);
server.registerTool(
"read_file",
{
description: "Read a file's contents. Path is relative to the configured root.",
inputSchema: { path: z.string() },
annotations: { readOnlyHint: true },
},
async ({ path }) => {
const text = await readFile(join(ROOT, path), "utf8");
return { content: [{ type: "text", text }] };
},
);
const transport = new StdioServerTransport();
await server.connect(transport);
Sandboxing is entirely your job. There is no manifest-level sandbox
अक्सर पूछे जाने वाले सवाल
इसका इस्तेमाल कब नहीं करना चाहिए?
स्किल कहती है कि अगर server केवल क्लाउड API कॉल करता है, तो रिमोट HTTP server आमतौर पर बेहतर विकल्प है।
बंडल में क्या होता है?
उसमें एक manifest, server कोड और उसकी निर्भरताएँ, और एक आइकन होता है।
क्या MCP server बाँटने का यही मुख्य तरीका है?
नहीं। स्किल इसे दूसरा रास्ता कहती है, और डायरेक्टरी में सूचीबद्ध करने के लिए रिमोट server की सलाह देती है।
जानकारी
लेखक का मूल विवरण
This skill should be used when the user wants to "package an MCP server", "bundle an MCP", "make an MCPB", "ship a local MCP server", "distribute a local MCP", discusses ".mcpb files", mentions bundling a Node or Python runtime with their MCP server, or needs an MCP server that interacts with the local filesystem, desktop apps, or OS and must be installable without the user having Node/Python set up.
लोकप्रियता
- GitHub स्टार
- 46k
- रैंकिंग में स्थान
- #6342
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
access
46kयह Discord चैनल पर कौन आपके सहायक को मैसेज कर सकता है, यह मैनेज करने में मदद करती है, जिसमें पेयरिंग और अनुमति सूची शामिल हैं।
configure
46kबॉट टोकन सेव करके और देखकर कि कौन पहुँच सकता है, आपके सहायक के लिए Discord चैनल सेट करती है।
access
46kयह iMessage चैनल पर कौन आपके सहायक को मैसेज कर सकता है, इसे मैनेज करने में मदद करती है, जिसमें मंज़ूरी और अनुमति सूची शामिल है।
configure
46kFull Disk Access सहित आपके iMessage चैनल का सेटअप जाँचती है, और बताती है कि आपके सहायक तक कौन पहुँच सकता है।
मिलती-जुलती skills
mcporter
394kयह आपके एजेंट को HTTP या stdio पर MCP सर्वर और उनके टूल सूचीबद्ध करने, चलाने और जांचने देती है, और उनकी साइन-इन सेटिंग्स प्रबंधित करती है।
fastmcp
260kआपको Python में MCP सर्वर बनाने, जाँचने और तैनात करने में मदद करती है, जो AI सहायकों को आपके API, डेटाबेस या फ़ाइलों तक टूल के रूप में पहुँच देता है।
mcp-oauth-remote-gateway
260kजब Hermes किसी सर्वर पर चलता है, तो रिमोट MCP सर्वर के लिए OAuth साइन-इन हाथ से करने में मदद करती है, जहाँ सामान्य ब्राउज़र साइन-इन नहीं पहुँच पाता।