rust-sdk/examples/wasi
2025-05-09 01:51:16 +08:00
..
src fix(typo): nit language corrections (#90) 2025-04-04 12:20:48 +08:00
Cargo.toml fix: build errors for WASI target (#151) 2025-05-09 01:51:16 +08:00
config.toml Move whole rmcp crate to offcial rust sdk (#44) 2025-03-27 17:33:41 -04:00
README.md fix: build errors for WASI target (#151) 2025-05-09 01:51:16 +08:00

Example for WASI-p2

Build:

cargo build -p wasi-mcp-example --target wasm32-wasip2

Run:

npx @modelcontextprotocol/inspector wasmtime target/wasm32-wasip2/debug/wasi_mcp_example.wasm

Note: Change wasmtime to a different installed run time, if needed.

The printed URL of the MCP inspector can be opened and a connection to the module established via STDIO.