Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions examples/wasi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@


[package]
name = "wasi"
name = "wasi-mcp-example"
edition = { workspace = true }
version = { workspace = true }
authors = { workspace = true }
Expand Down
17 changes: 15 additions & 2 deletions examples/wasi/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
# Example for WASI-p2

Build:

```sh
cargo build -p wasi --target wasm32-wasip2
npx @modelcontextprotocol/inspector wasmtime target/wasm32-wasip2/debug/wasi.wasm
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`.
Loading