mcpb/examples/README.md
Bryan Thompson cc4aa751b6
feat: add Rust binary calculator example
First example of the binary server type — a compiled Rust MCP server
packaged as an MCPB. Based on the official Rust SDK calculator example
(rmcp 1.2.0, 2 tools: sum/sub, ~80 LOC).

Includes Cargo.toml, Dockerfile for Docker-based builds, .mcpbignore
to exclude source from the bundle, and README with build/pack/test
instructions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 16:36:47 -05:00

32 lines
1.3 KiB
Markdown

# MCPB Examples
This directory contains example MCP Bundles that demonstrate the MCPB format and manifest structure. These are **reference implementations** designed to illustrate how to build MCPB extensions.
## ⚠️ Not Production Ready
**Important:** These examples are **NOT intended for production use**. They serve as:
- Demonstrations of the MCPB manifest format
- Templates for building your own extensions
- Simple MCP server implementations for testing
But, the MCP servers themselves are not robust secure production ready servers and should not be relied upon for production use.
## Examples Included
| Example | Type | Demonstrates |
| --------------------- | ------- | ------------------------------------------- |
| `hello-world-node` | Node.js | Basic MCP server with simple time tool |
| `chrome-applescript` | Node.js | Browser automation via AppleScript |
| `file-manager-python` | Python | File system operations and path handling |
| `calculator-rust` | Binary | Compiled Rust binary as MCP Bundle |
## Usage
Each example includes its own `manifest.json` and can be packed with:
```bash
dxt pack examples/hello-world-node
```
Use these as starting points for your own extensions, but ensure you implement proper security measures before deploying to users.