SM

sdglbl/mcp-claude-code

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

305 stars 39 forks 质量 43 趋势 19MIT

MCP 实现 Claude Code 功能及更多内容

概览

一种基于模型上下文协议(MCP)实现Claude代码能力的实现。 该项目提供了一个实现类似 Claude Code 功能的 MCP 服务器,使 Claude 能够直接执行修改和改进项目文件的指令。通过利用模型上下文协议,该实现实现了与包括 Claude Desktop 在内的多种 MCP 客户端的无缝集成。 - : 通过文件访问和模式搜索分析和理解代码库 - : 在适当权限处理下对文件进行有针对性的编辑 - : 用多种语言运行命令和脚本,并改进错误处理和壳层支持 - : 通过壳级命令管理文件,并带安全控制 - : 通过高性能搜索在项目中查找相关文件和代码模式 - : 将复杂任务委托给能够并发工作的专用子代理 - : 配置任何 LiteLLM 兼容的代理模型 - : 通过......

概述(AI 翻译)

一种基于模型上下文协议(MCP)实现Claude代码能力的实现。

概述

该项目提供了一个实现类似 Claude Code 功能的 MCP 服务器,使 Claude 能够直接执行修改和改进项目文件的指令。通过利用模型上下文协议,该实现实现了与包括 Claude Desktop 在内的多种 MCP 客户端的无缝集成。

特色

  • 代码理解:通过文件访问和模式搜索分析和理解代码库
  • 代码修改:对文件进行针对性的编辑,并处理适当的权限
  • 增强命令执行:以多种语言运行命令和脚本,改进错误处理和壳层支持
  • 文件操作:通过shell命令管理文件,进行适当的安全控制
  • 代码发现:通过高性能搜索在项目中查找相关文件和代码模式
  • 代理委派:将复杂任务委派给能够并发工作的专业子代理
  • 多LLM提供者支持:配置任何兼容LiteLLM的代理模型

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Claude Code

An implementation of Claude Code capabilities using the Model Context Protocol (MCP).

Overview

This project provides an MCP server that implements Claude Code-like functionality, allowing Claude to directly execute instructions for modifying and improving project files. By leveraging the Model Context Protocol, this implementation enables seamless integration with various MCP clients including Claude Desktop.

Features

  • Code Understanding: Analyze and understand codebases through file access and pattern searching
  • Code Modification: Make targeted edits to files with proper permission handling
  • Enhanced Command Execution: Run commands and scripts in various languages with improved error handling and shell support
  • File Operations: Manage files with proper security controls through shell commands
  • Code Discovery: Find relevant files and code patterns across your project with high-performance searching
  • Agent Delegation: Delegate complex tasks to specialized sub-agents that can work concurrently
  • Multiple LLM Provider Support: Configure any LiteLLM-compatible model for agent operations
  • Jupyter Notebook Support: Read and edit Jupyter notebooks with full cell and output handling

Tools Implemented

Tool Description
read Read file contents with line numbers, offset, and limit capabilities
write Create or overwrite files
edit Make line-based edits to text files
multi_edit Make multiple precise text replacements in a single file operation with atomic transactions
directory_tree Get a recursive tree view of directories
grep Fast pattern search in files with ripgrep integration for best performance (docs)
content_replace Replace patterns in file contents
grep_ast Search code with AST context showing matches within functions, classes, and other structures
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →