rust-sdk/examples/wasi
Dale Seo be321a4abe
feat(macros): auto-generate get_info and default router (#785)
* feat(macros): auto-generate get_info and default router

* docs: simplify examples and docs with new defaults

* feat(macros): add tool_router(server_handler) to elide separate #[tool_handler] impl

* docs: add Tools section to README and simplify calculator examples with server_handler
2026-04-08 15:06:26 -04:00
..
src feat(macros): auto-generate get_info and default router (#785) 2026-04-08 15:06:26 -04:00
Cargo.toml chore: release v0.2.0 (#300) 2025-07-02 14:50:51 -04: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.