Token导航 LogoToken导航TokenDH.com
MCP Server Rust logo
开发工具未说明官方级别未说明来源级核验

MCP Server Rust

MCP Server

Rust MCP Local Server

工具数

0

提示词数

0

GitHub Stars

3

资源数

0
自动化测试RustClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

lotharschulz

提供方

lotharschulz

最后核验

2026/5/18 04:05

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

一个与MCP客户端集成的简单Rust函数。

步骤1:转发Rust和Javascript/TS代码

发布

npm run build:wasm:release // release rust code
npm install // create javascript file and install all npm dependencies

步骤2:克劳德桌面配置

在以下位置创建配置文件:

{
  "mcpServers": {
    "mcp-server": {
      "command": "node",
      "args": [
        "[your local path]/mcpserver/build/index.js"
      ]
    }
  }
}

位置:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • 窗户: %APPDATA%\Claude\claude_desktop_config.json

(来源:https://modelcontextprotocol.info/docs/quickstart/user/#2-添加文件系统mcp服务器)

第三步:克劳德桌面

启动克劳德桌面

Claude Desktop Initial View 请注意前端中的额外mcp服务器图标

同意使用mcp服务器功能:

Allow MCP server

观察mcp服务器功能:

factorial function used

视频

在此处观看视频教程: YouTube视频

杂项

测试锈蚀代码

npm run test:rust

cd src/lib/rust-functions-lib
cargo test && cargo fmt --all -- --check

清理输出文件和文件夹

npm run clean

构建防锈代码-替代方案

npm

npm run build:wasm

使用wasm工具的替代方法

cd src/lib/rust-functions-lib
wasm-pack build --target bundler

只构建ts代码(npm)

npm build

复制构建Rust代码

手动复制到正确的位置-包含在 npm run build:wasm:release

mkdir -p build/lib/rust-functions-lib/pkg && cp src/lib/rust-functions-lib/pkg/rust_funcations_lib.js build/lib/rust-functions-lib/pkg/rust_funcations_lib.js

Rust导入失败

问题:

rust import failed

解决方案:

npm run build:wasm:release 要释放绑定wasm的factorial导入依赖于

目录标签

目录标签

自动化测试RustClaudedeveloper-toolsmcpmcp-serverRust集成TypeScript本地部署MCP客户端ClaudeDesktopWASM

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP