Summary
Add comprehensive support for the wasm32-wasip2 target to enable deployment of MCP servers as WebAssembly components with full system interface access.
Background
WASI Preview 2 provides much more system capability than basic WASM, including:
- File I/O through WASI filesystem interfaces
- Networking through WASI sockets
- CLI interfaces through WASI command-line tools
- Standard library compatibility via rustix/wstd
Implementation Tasks
Core Compilation Support
Dependency Audit & Updates
Runtime Adaptations
Build System Integration
Acceptance Criteria
Related Issues
- Bazel Build System Integration (#TBD)
- WASM Development Workflow (#TBD)
- Transport Layer WASM Compatibility (#TBD)
References
Summary
Add comprehensive support for the
wasm32-wasip2target to enable deployment of MCP servers as WebAssembly components with full system interface access.Background
WASI Preview 2 provides much more system capability than basic WASM, including:
Implementation Tasks
Core Compilation Support
wasm32-wasip2to supported targets in Cargo.toml workspaceDependency Audit & Updates
wasm32-wasip2compatibilitytokio- use WASM-compatible async runtime or feature flagsmcp-authRuntime Adaptations
Build System Integration
rules_wasm_component(separate issue)Acceptance Criteria
wasm32-wasip2Related Issues
References