Add MCP smoke test client

This commit is contained in:
server
2026-04-14 12:00:06 +02:00
parent d270d4d739
commit 5709fd9c35
4 changed files with 77 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ cd /path/to/m2pack-secure
npm install
cmake -S . -B build
cmake --build build -j
node mcp_server.mjs
npm run mcp
```
## Environment
@@ -78,6 +78,21 @@ Inputs:
No input. Returns the active `m2pack` binary path.
## Smoke test
Run a local roundtrip test with the bundled Node MCP client:
```bash
npm run mcp:smoke
```
That test:
- spawns `mcp_server.mjs`
- connects over stdio
- lists tools
- calls `pack_binary_info`
## Claude Desktop style config example
```json