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>
32 lines
1.3 KiB
Markdown
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.
|