chore: remove Dockerfile and .gitignore from calculator-rust example
Align with other examples — no example ships a Dockerfile or its own .gitignore. Rust build artifacts are now covered by the repo-level .gitignore instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
cc4aa751b6
commit
a907aead99
1 changed files with 7 additions and 31 deletions
|
|
@ -18,9 +18,7 @@ The tradeoff is that binaries are platform-specific — you need a separate buil
|
|||
calculator-rust/
|
||||
├── manifest.json # server.type = "binary"
|
||||
├── Cargo.toml # Rust project
|
||||
├── Dockerfile # Build via Docker
|
||||
├── .mcpbignore # Exclude source from bundle
|
||||
├── .gitignore # Exclude build artifacts
|
||||
└── src/
|
||||
└── main.rs # Calculator MCP server (~80 LOC)
|
||||
```
|
||||
|
|
@ -29,7 +27,7 @@ After building, the `server/` directory is created with the compiled binary.
|
|||
|
||||
## Building
|
||||
|
||||
### Native (requires Rust 1.85+)
|
||||
Requires [Rust](https://rustup.rs/) 1.85+.
|
||||
|
||||
```bash
|
||||
cd examples/calculator-rust
|
||||
|
|
@ -38,18 +36,6 @@ mkdir -p server
|
|||
cp target/release/mcp-calculator server/
|
||||
```
|
||||
|
||||
### Docker (no local Rust required)
|
||||
|
||||
```bash
|
||||
cd examples/calculator-rust
|
||||
docker build -t mcp-calculator .
|
||||
# Extract the binary (linux only)
|
||||
docker create --name calc mcp-calculator
|
||||
docker cp calc:/mcp-calculator server/mcp-calculator
|
||||
docker rm calc
|
||||
chmod +x server/mcp-calculator
|
||||
```
|
||||
|
||||
## Packing
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue