WebAssembly组件服务器

MCP Server for Crux applications是一个将Crux应用程序的共享库作为WebAssembly组件加载,并通过ModelContext协议将其暴露给LLM代理以进行代理编码的服务。

  • by redbadger
  • Rust
  • 本地部署
  • 3 星标
  • 更新于
在 GitHub 查看 redbadger/crux-mcp

使用说明

Crux应用程序的MCP服务器

注:尚未完全实施

将Crux应用程序的共享库作为WebAssembly组件加载,并使用ModelContext协议将其暴露给LLM代理进行代理编码。

先决条件

查看分支机构 此pull请求 在这个存储库旁边的一个名为“crux”的目录中。

pushd ../crux/examples/counter-next
cargo build --package shared --features facet_typegen --target wasm32-wasip2
popd

运行服务器

要运行MCP服务器,请执行以下操作:

cargo build
export CRUX_COMPONENT=/path/to/crux/examples/counter-next/target/wasm32-wasip2/debug/shared.wasm
pnpx @modelcontextprotocol/inspector ./target/debug/crux-mcp