Cover image
Try Now
2025-04-11

用Rust编写的简单编码MCP服务器

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Corrode MCP Server

Corrode Code Model Context Protocol (MCP) Rust Server.

Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you're building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.

This project provides an MCP server implementation in Rust for code-related tasks.

Key Features

The Corrode MCP Server offers powerful capabilities for Rust developers:

Rust-Specific Tools

  • Crates.io Integration: Seamlessly search, explore, and manage Rust crates directly from your AI interface.

    • Search through available crates with detailed metadata
    • Retrieve specific crate information with comprehensive details
    • View all available versions of a crate to ensure compatibility
    • Examine crate dependencies to better understand project requirements
  • Code Analysis: Analyze Rust code with intelligent tooling.

    • Check Rust code for compilation errors with integrated cargo check
    • Identify function signatures throughout your project
    • Examine Rust code structure and dependencies

General Development Tools

  • File Operations: Efficiently work with your codebase.

    • Read and write files with proper encoding
    • Apply changes through unified diffs
    • Navigate the file system with intuitive commands
  • Shell Command Execution: Execute shell commands with full context handling.

    • Run cargo commands with proper environment setup
    • Manage directory navigation with automatic context tracking
    • Execute complex shell operations directly from your AI interface

Installation

From Crates.io (Recommended)

  1. Ensure you have Rust and Cargo installed.
  2. Install the server using Cargo:
    cargo install corrode-mcp
    
    This will download the crate from crates.io, build it, and install the corrode-mcp binary to your Cargo bin directory (usually ~/.cargo/bin/). Ensure this directory is in your system's PATH.

From Source

  1. Clone the repository:
    git clone <repository_url> # TODO: Add repository URL
    cd corrode-mcp
    
  2. Build and install using Cargo:
    cargo install --path .
    

How to use MCP CLI server in Claude Desktop?

  1. Ensure corrode-mcp is installed (see Installation section) and available in your system's PATH.
  2. Edit claude_desktop_config.json: Claude Desktop -> Settings -> Developer -> Edit Config
  3. Add the following configuration under the mcpServers key (or merge it if mcpServers already exists):
{
  "mcpServers": {
    "corrode-mcp": {
      "command": "corrode-mcp",
      "args": ["--mcp"]
    }
  }
}

If you want to check MCP log, please use tail -n 20 -f ~/Library/Logs/Claude/mcp*.log.

Usage Examples

Here are some practical ways to leverage Corrode MCP with your Rust projects:

Exploring Crates

# Search for async runtime crates
> Search for crates related to async runtime

# Get detailed information about a specific version
> What are the features available in tokio 1.44.1?

# Check dependencies
> Show me the dependencies for serde_json 1.0

Code Analysis

# Check for errors in your project
> Are there any compilation errors in my current project?

# Code structure understanding
> List all function signatures in the src directory

# Cargo operations
> Update my dependencies to the latest versions

Rust Project Management

# Create new components
> Create a new module for handling HTTP requests

# Explore project structure
> Draw an architecture diagram of this Rust project

# Quality improvements
> Analyze this code for potential performance improvements

References

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

    Reviews

    4 (1)
    Avatar
    user_ITvKcBgW
    2025-04-16

    Corrode-mcp by fourlexboehm is an exceptional tool that I highly recommend. It provides powerful capabilities for corroding materials and has significantly streamlined my workflow. The user-friendly interface combined with robust features makes it a top choice. Check it out here: https://github.com/fourlexboehm/corrode-mcp.