claude-code-mcp

claude-code-mcp

3.5

If you are the rightful owner of claude-code-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The claude-code-mcp project is an MCP server for Claude Code, providing various tools for code explanation, review, and more.

The claude-code-mcp project is an MCP server designed for Claude Code, facilitating the execution of locally installed Claude Code commands. It offers tools such as `explain_code`, `review_code`, `fix_code`, `edit_code`, `test_code`, `simulate_command`, and `your_own_query`. Implemented using Node.js and the MCP SDK, the server processes JSON requests from clients via stdio, utilizing Base64 encoding for handling special characters in natural language text. This enhances stability and flexibility. The server's primary functions include receiving requests, encoding input, generating and executing commands, and returning results in JSON format. It is compatible with Claude Code CLI environments like Ubuntu and WSL2.

Features

  • Request Reception: Receives JSON format tool requests from clients.
  • Input Processing: Base64 encodes received natural language text for internal processing.
  • Tool Selection and Command Generation: Assembles command strings based on tool names using templates or free format.
  • Command Execution: Executes assembled commands using Node.js's child_process.spawn.
  • Result Return: Returns execution results to clients in JSON format.

Tools

  1. explain_code

    Provides a detailed explanation of the given code.

  2. review_code

    Reviews the given code.

  3. fix_code

    Fixes bugs or issues in the given code.

  4. edit_code

    Edits the given code based on instructions.

  5. test_code

    Generates tests for the given code.

  6. simulate_command

    Simulates the execution of a given command.

  7. your_own_query

    Sends a custom query with context.