Note: not fully implemented yet
Loads a Crux application's shared library as a WebAssembly Component, exposing it with the ModelContext Protocol to LLM agents for agentic coding.
Checkout the branch from this pull request into a directory called "crux", alongside this repository.
pushd ../crux/examples/counter-next
cargo build --package shared --features facet_typegen --target wasm32-wasip2
popd
To run the MCP server:
cargo build
export CRUX_COMPONENT=/path/to/crux/examples/counter-next/target/wasm32-wasip2/debug/shared.wasm
pnpx @modelcontextprotocol/inspector ./target/debug/crux-mcp