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
-
3
1
[package ]
4
- name = " wasi"
2
+ name = " wasi-mcp-example "
5
3
edition = { workspace = true }
6
4
version = { workspace = true }
7
5
authors = { workspace = true }
Original file line number Diff line number Diff line change
1
+ # Example for WASI-p2
2
+
3
+ Build:
4
+
1
5
``` 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
4
7
```
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