AC

auchenberg/claude-code-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

188 stars 29 forks Качество 55 Тренд 17MIT

auchenberg/claude-code-mcp — это кандидат MCP-сервера, импортированный из https://github.com/auchenberg/claude-code-mcp.

Обзор

auchenberg/claude-code-mcp — это кандидат MCP-сервера, импортированный из https://github.com/auchenberg/claude-code-mcp.

Обзор (машинный перевод)

Claude Code MCP — это реализация сервера Claude Code as a Model Context Protocol (MCP). Этот проект позволяет использовать мощные возможности Claude Code в области программной инженерии через стандартизированный интерфейс MCP.

⚠️ ОТКАЗ ⚠️ ОТ ОТВЕТСТВЕННОСТИ

Claude Code MCP — это автоматически сгенерируемый проект компанией DevinAI, которому было предложено проанализировать кодовую базу Claude Code и создать MCP-сервер.

Это доказательство концепции, которое я никому не советую использовать.

Что такое Claude Code?

Claude Code — это CLI-инструмент Anthropic для задач программной инженерии, работающий на базе Claude. Он предоставляет набор инструментов и возможностей, которые помогают разработчикам с:

  • Генерация и редактирование кода
  • Обзор и анализ кода
  • Отладка и устранение неполадок
  • Операции файловой системы
  • Выполнение команд shell
  • Исследование и понимание проектов

Оригинальная реализация доступна в виде JavaScript-модуля, который определяет запросы и инструменты для взаимодействия с API Claude.

Что такое MCP?

Протокол контекста модели (MCP) — это стандартизированный интерфейс для моделей ИИ, который обеспечивает согласованные модели взаимодействия между различными моделями и провайдерами. MCP определяет:

  • Инструменты: функции, которые модели могут вызывать для выполнения действий

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Claude Code MCP

Claude Code MCP is an implementation of Claude Code as a Model Context Protocol (MCP) server. This project allows you to use Claude Code’s powerful software engineering capabilities through the standardized MCP interface.

⚠️ DISCLAIMER ⚠️

Claude Code MCP is a auto-generated project by DevinAI, who was prompted to analyse the Claude Code codebase, and generate an MCP server.

This is a proof of concept that I don’t advise anyone to use.

What is Claude Code?

Claude Code is Anthropic’s CLI tool for software engineering tasks, powered by Claude. It provides a set of tools and capabilities that help developers with:

  • Code generation and editing
  • Code review and analysis
  • Debugging and troubleshooting
  • File system operations
  • Shell command execution
  • Project exploration and understanding

The original implementation is available as a JavaScript module that defines prompts and tools for interacting with Claude’s API.

What is MCP?

The Model Context Protocol (MCP) is a standardized interface for AI models that enables consistent interaction patterns across different models and providers. MCP defines:

  • Tools: Functions that models can call to perform actions
  • Resources: External data that models can access
  • Prompts: Predefined conversation templates

By implementing Claude Code as an MCP server, we make its capabilities available to any MCP-compatible client, allowing for greater interoperability and flexibility.

Features

  • Full implementation of Claude Code functionality as an MCP server
  • Provides tools for file operations, shell commands, and code analysis
  • Exposes resources for accessing file system and environment information
  • Includes prompts for general CLI interaction and code review
  • Compatible with any MCP client
  • TypeScript implementation with full type safety

Installation

# Clone the repository
git clone https://github.com/auchenberg/claude-code-mcp.git
cd claude-code-mcp

# Install dependencies
npm install

# Build the project
npm run build

Usage

Running as a standalone server

# Start the server
npm start

Using with MCP clients

Claude Code MCP can be used with any MCP client. Here’s an example of how to connect to it using the MCP TypeScript SDK:

import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";

const transport = new StdioClientTransport({
  command: "node",
  args: ["dist/index.js"]
});

const client = new Client(
  {
    name: "example-client",
    version: "1.0.0"
  },
  {
    capabilities: {
      prompts: {},
      resources: {},
      tools: {}
    }
  }
);

await client.connect(transport);

// Use Claude Code through MCP
const result = await client.callTool({
  name: "bash",
  arguments: {
Открыть полный README на GitHub

Установка

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

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →