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

Rusty Tools

MCP Server

rusty-tools是一个通过MCP协议提供Rust开发工具的服务,帮助AI助手和开发者实时验证代码、解释错误并提供改进建议。

工具数

12

提示词数

0

GitHub Stars

1

资源数

0
RustClaude开发工具Claude DesktopClaude

安装说明

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

作者 / 组织

8agana

提供方

8agana

最后核验

2026/5/17 20:22

快速接入

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

详细介绍

rusty-tools

![Release](https://github.com/8agana/rusty-tools/releases/latest) Latest tag

MCP (Model Context Protocol) server providing Rust development tools for AI assistants. Bridges the gap between AI code generation and Rust compiler validation.

Why rusty-tools?

AI assistants often struggle with Rust's strict compiler and complex error messages. rusty-tools provides direct access to Rust toolchain commands through MCP, enabling:

  • Real-time validation - Check code without leaving the chat
  • Error explanations - Understand cryptic Rust errors
  • Code improvements - Get clippy suggestions instantly
  • Format standardization - Apply rustfmt consistently

Installation

For Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "rusty-tools": {
      "command": "/path/to/rusty-tools/target/release/rusty-tools-server"
    }
  }
}

Building from source

git clone https://github.com/8agana/rusty-tools.git
cd rusty-tools
cargo build --release --bin rusty-tools-server

Releases

Download prebuilt binaries from GitHub Releases and verify the checksum.

# Download latest binary and checksum
curl -L -o rusty-tools-server \
  https://github.com/8agana/rusty-tools/releases/latest/download/rusty-tools-server
curl -L -o rusty-tools-server-SHA256.txt \
  https://github.com/8agana/rusty-tools/releases/latest/download/rusty-tools-server-SHA256.txt

# Verify checksum (macOS)
shasum -a 256 -c rusty-tools-server-SHA256.txt

# Make executable and install
chmod +x rusty-tools-server
sudo mv rusty-tools-server /usr/local/bin/

Then point your MCP client (e.g., Claude Desktop) to /usr/local/bin/rusty-tools-server.

Available Tools

Core Tools (Production Ready)

  • cargo_build - Build project (produces artifacts)
  // Compiles the temp project and reports compiler output
  // Use `cargo_check` for faster type-checking without artifacts
  • cargo_fmt - Format Rust code using rustfmt
  // Input: unformatted code
  // Output: properly formatted code
  • cargo_clippy - Analyze code for improvements
  // Returns suggestions for better patterns, performance, and style
  • cargo_check - Type-check without building
  // Fast validation of code correctness
  • rustc_explain - Explain compiler error codes
  // Input: "E0308"
  // Output: Detailed explanation of type mismatch error
  • cargo_fix - Automatically fix compiler warnings
  // Returns diffs of suggested fixes

Analysis Tools

  • rust_analyzer - Deep code analysis and diagnostics (uses cargo check JSON)
  • cargo_tree - Display dependency tree
  • cargo_doc - Generate documentation

Security & Dependencies

  • cargo_audit - Scan for security vulnerabilities
  • cargo_search - Search crates.io for packages

Testing

  • cargo_test - Run tests with visible output
  // Runs tests with --nocapture for full output visibility
  // Shows actual test results, not just pass/fail

Use Cases

For AI Assistants

  • Validate generated Rust code instantly
  • Understand compiler errors without context switching
  • Apply formatting and best practices automatically

For Developers

  • Get compiler feedback directly in AI chat
  • Learn from error explanations
  • Maintain code quality with integrated clippy

For Learning

  • Understand Rust errors with clear explanations
  • See formatting standards applied in real-time
  • Learn best practices through clippy suggestions

Architecture

Built with rmcp 0.6.4, rusty-tools creates isolated Rust environments for each tool invocation, ensuring:

  • No persistent state between calls
  • Safe execution without side effects
  • Fast response times

Limitations

Current limitations (by design for safety):

  • No cargo run (binaries are never executed)
  • Read-only operations on codebases

Output Format

All tool responses follow a consistent shape:

{ "status": 0, "success": true, "stdout": "...", "stderr": "", "duration_ms": 123 }

Use status/success for reliable checks; parse stdout for compiler output.

Contributing

Contributions welcome! Areas for improvement:

  • Enhanced test output formatting
  • Additional cargo subcommands
  • Improved error message parsing

License

MIT

Author

Built by Sam Atagana (@8agana) - learned Rust in under 30 days to solve AI + Rust development friction.

目录标签

目录标签

RustClaude开发工具Rust开发本地部署AI辅助编程代码验证错误解释代码格式化

支持客户端

Claude DesktopClaude

接入字段

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

未说明

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

none

工具数量(toolCount,工具数)

12

资源数量(resourceCount,资源数)

0

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

0

权限和风险

未说明none部署方式未说明

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

安装前确认

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

仍需确认:installCommand

来源信息

继续浏览同类 MCP