File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1-
2-
31[package ]
4- name = " wasi"
2+ name = " wasi-mcp-example "
53edition = { workspace = true }
64version = { workspace = true }
75authors = { workspace = true }
Original file line number Diff line number Diff line change 1+ # Example for WASI-p2
2+
3+ Build:
4+
15``` sh
2- cargo build -p wasi --target wasm32-wasip2
3- npx @modelcontextprotocol/inspector wasmtime target/wasm32-wasip2/debug/wasi.wasm
6+ cargo build -p wasi-mcp-example --target wasm32-wasip2
47```
8+
9+ Run:
10+
11+ ```
12+ npx @modelcontextprotocol/inspector wasmtime target/wasm32-wasip2/debug/wasi_mcp_example.wasm
13+ ```
14+
15+ * Note:* Change ` wasmtime ` to a different installed run time, if needed.
16+
17+ The printed URL of the MCP inspector can be opened and a connection to the module established via ` STDIO ` .
You can’t perform that action at this time.
0 commit comments