Mcp Claude Код
MCP реализация возможностей Claude Code и многое другое
Обзор
Что такое MCP Claude Code?
MCP Claude Code — это инновационная реализация, предназначенная для использования возможностей Claude, мощной модели ИИ. Этот репозиторий служит платформой для разработчиков и энтузиастов, чтобы исследовать, вносить вклад и улучшать функциональность Claude через совместные усилия в кодировании. Проект направлен на предоставление надежной структуры, которая интегрирует возможности Claude в различные приложения, облегчая пользователям использование ИИ в своих проектах.
Особенности MCP Claude Code
- Интеграция ИИ: Бесшовно интегрирует возможности ИИ Claude в приложения, позволяя использовать такие продвинутые функции, как обработка естественного языка и анализ данных.
- Открытый исходный код: Проект доступен для общественности, что способствует сотрудничеству и вкладам от разработчиков со всего мира.
- Удобная документация: Предоставляются исчерпывающие руководства и документация, чтобы помочь пользователям понять и эффективно использовать функции.
- Поддержка сообщества: Активное сообщество разработчиков и пользователей, которые делятся идеями, решают проблемы и вносят вклад в развитие проекта.
- Регулярные обновления: Репозиторий активно поддерживается, с регулярными обновлениями, которые улучшают производительность и вводят новые функции.
Как начать работу с MCP Claude Code
-
Клонируйте репозиторий: Начните с клонирования репозитория на ваш локальный компьютер с помощью команды:
git clone https://github.com/SDGLBL/mcp-claude-code.git -
Установите зависимости: Перейдите в каталог проекта и установите необходимые зависимости. Это обычно можно сделать с помощью:
npm install -
Изучите документацию: Ознакомьтесь с предоставленной документацией, чтобы понять, как реализовать и использовать функции MCP Claude Code.
-
Внесите вклад: Если у вас есть идеи по улучшению или новым функциям, не стесняйтесь форкать репозиторий, вносить изменения и отправлять запрос на слияние.
-
Взаимодействуйте с сообществом: Присоединяйтесь к обсуждениям, задавайте вопросы и делитесь своим опытом с другими пользователями на форумах сообщества или в разделе проблем GitHub.
Часто задаваемые вопросы
В: Какие языки программирования используются в MCP Claude Code?
О: Проект в основном использует JavaScript и Node.js, но также приветствуются вклады на других языках.
В: Есть ли лицензия для MCP Claude Code?
О: Да, проект лицензирован под лицензией MIT, что позволяет свободно использовать, модифицировать и распространять.
В: Как я могу сообщить о проблемах или ошибках?
О: Вы можете сообщить о проблемах, перейдя в раздел "Issues" репозитория и отправив новую проблему с подробной информацией о проблеме.
В: Могу ли я внести вклад в проект?
О: Абсолютно! Вклады приветствуются. Вы можете форкать репозиторий, вносить изменения и отправлять запрос на слияние на рассмотрение.
В: Где я могу найти больше информации о Claude?
О: Для более детальной информации о Claude и его возможностях обратитесь к официальной документации или разделу вики проекта.
Деталь
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 |
| run_command | Execute shell commands (also used for directory creation, file moving, and directory listing) |
| notebook_read | Extract and read source code from all cells in a Jupyter notebook with outputs |
| notebook_edit | Edit, insert, or delete cells in a Jupyter notebook |
| think | Structured space for complex reasoning and analysis without making changes |
| dispatch_agent | Launch one or more agents that can perform tasks using read-only tools concurrently |
| batch | Execute multiple tool invocations in parallel or serially in a single request |
| todo_write | Create and manage a structured task list |
| todo_read | Read a structured task list |
Getting Started
For detailed installation and configuration instructions, please refer to INSTALL.md.
For detailed tutorial of 0.3 version, please refer to TUTORIAL.md
Security
This implementation follows best practices for securing access to your filesystem:
- Permission prompts for file modifications and command execution
- Restricted access to specified directories only
- Input validation and sanitization
- Proper error handling and reporting
Development
To contribute to this project:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Конфигурация сервера
{
"mcpServers": {
"mcp-claude-code": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--sdglbl--mcp-claude-code--mcp-claude-code",
"claudecode"
],
"env": {
"USEFUL_PROMPTS": "useful-prompts"
}
}
}
}