/mcp-server-dev:build-mcpbfrom mcp-server-dev
Use when a local stdio MCP server must be distributed as a one-click MCP Bundle for desktop hosts. Default new Go servers to self-contained binary bundles, use the current stable MCPB manifest, and keep the ordinary executable usable outside MCPB.
Ships in mcp-server-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
MCPB packages a local stdio MCP server with metadata and install-time configuration.
Use it only when the server must run on the user's machine, for example:
For cloud APIs and shared services, use a remote HTTPS MCP server instead.
MCPB is an optional distribution format, not the MCP server architecture.
Build in this order:
Keep the underlying executable independently runnable so users and other clients are not locked to one bundle host.
Use:
https://github.com/modelcontextprotocol/mcpbhttps://github.com/modelcontextprotocol/mcpb/blob/main/MANIFEST.mdhttps://github.com/modelcontextprotocol/mcpb/blob/main/CLI.mdUse the stable manifest version stated in MANIFEST.md. At the current verified baseline, that is 0.3.
Do not use draft fields from a later manifest version unless the target host explicitly supports them and the package is labeled accordingly.
For a new local server, prefer a compiled Go binary:
Preserve an existing healthy Node, Python, or Rust implementation instead of rewriting it solely for packaging.
Before packaging, answer:
If the server only calls remote APIs, stop and use remote HTTPS.
For Go:
if err := server.Run(context.Background(), &mcp.StdioTransport{}); err != nil {
log.Fatal(err)
}
Rules:
Go binaries are platform and architecture specific. Produce one bundle per supported target by default.
Example:
GOOS=darwin GOARCH=arm64 go build -trimpath -ldflags="-s -w" \
-o dist/darwin-arm64/server/local-files ./cmd/server
GOOS=windows GOARCH=amd64 go build -trimpath -ldflags="-s -w" \
-o dist/windows-amd64/server/local-files.exe ./cmd/server
GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" \
-o dist/linux-amd64/server/local-files ./cmd/server
Use a macOS universal binary only when the build and signing process explicitly creates and tests one.
Minimal Go binary example:
{
"manifest_version": "0.3",
"name": "local-files",
"display_name": "Local Files",
"version": "0.1.0",
"description": "Read and search files inside a user-configured local directory.",
"author": {
"name": "Your Name"
},
"server": {
"type": "binary",
"entry_point": "server/local-files",
"mcp_config": {
"command": "${__dirname}/server/local-files",
"args": [],
"env": {}
}
},
"compatibility": {
"platforms": ["darwin"]
}
}
For Windows, keep the logical entry point without .exe when following the official binary convention. The host can append the extension.
Add user_config only for real install-time settings. Mark secrets sensitive and deliver them through environment variables when supported by the target host.
Use references/manifest-schema.md.
MCPB does not make local code safe.
Use references/local-security.md.
Run the verified current CLI package without adding a global dependency:
npx --yes @anthropic-ai/[email protected] --version
Then, for each target staging directory:
npx --yes @anthropic-ai/[email protected] validate dist/darwin-arm64/manifest.json
npx --yes @anthropic-ai/[email protected] pack dist/darwin-arm64/ releases/local-files-darwin-arm64.mcpb
npx --yes @anthropic-ai/[email protected] info releases/local-files-darwin-arm64.mcpb
Signing is optional and host-dependent. When distributing signed bundles, verify the final artifact with the same pinned runner:
npx --yes @anthropic-ai/[email protected] verify releases/local-files-darwin-arm64.mcpb
Publish certificate or trust details clearly.
For each artifact:
Do not claim cross-platform support from cross-compilation alone.
Prefer release assets such as:
local-files-darwin-arm64
local-files-windows-amd64.exe
local-files-linux-amd64
local-files-darwin-arm64.mcpb
local-files-windows-amd64.mcpb
local-files-linux-amd64.mcpb
SHA256SUMS
Document:
A local server can still serve MCP App resources. The UI contract is unchanged.
Use build-mcp-app for the component and keep the package difference limited to local stdio execution and distribution.
0.4 fields under a 0.3 declaration.When implementing or reviewing, report:
../../SOURCE-OF-TRUTH.mdreferences/manifest-schema.mdreferences/local-security.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mylesmcook/mcook-plugins --plugin mcp-server-dev3 skills in this plugin
/build-mcp-appUse when an MCP server needs optional inline UI, an interactive MCP App, a chart or dashboard, a picker, a review or confirmation surface, or a standards-first bridge between a Go MCP backend and a TypeScript component. Preserve a useful tool-only path and keep ChatGPT-specific capabilities optional./build-mcp-serverBuild, refactor, review, or release an MCP server; choose Go, TypeScript, Python, or Rust; define tools and schemas; select remote HTTP or local stdio; design auth; add optional MCP Apps UI; or validate MCP 2026-07-28 and client portability.