CodeCommander

Provides code intelligence, JSON repair, encoding fixes, import organization, format conversion, file diff, and regex testing via MCP.
  • javascript

0

GitHub Stars

javascript

Language

4 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "lukisch-bach-codecommander-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/bach-codecommander-mcp/dist/index.js"
      ]
    }
  }
}

You can use this MCP server to empower AI assistants with code intelligence, JSON repair, encoding fixes, import organization, format conversion, file comparison, and regex testing. It includes 17 developer-focused tools that work alongside FileCommander to enhance coding workflows across Windows, macOS, and Linux.

How to use

You run CodeCommander as an MCP server and connect your MCP client to it. You can use the server to analyze Python code, repair JSON, organize imports, fix encodings, convert between data formats, compare files, and test regular expressions. The tools are designed to be used from your development environment to automate routine code-quality tasks, improve JSON quality, and enable richer code intelligence during AI-assisted coding sessions.

How to install

PrPrerequisites: You need Node.js 18 or higher to run CodeCommander.

npm install -g bach-codecommander-mcp

Install from source by cloning the repository, installing dependencies, and building.

git clone https://github.com/lukisch/bach-codecommander-mcp.git
cd bach-codecommander-mcp
npm install
npm run build

Configuration details you will use

Connect CodeCommander to Claude Desktop by configuring MCP servers in your claude_desktop_config.json file.

{
  "mcpServers": {
    "codecommander": {
      "command": "bach-codecommander"
    }
  }
}

Using both FileCommander and CodeCommander together

You can run FileCommander and CodeCommander side by side by listing both MCP servers in your configuration. This enables JSON repair and code analysis workflows alongside file operations.

{
  "mcpServers": {
    "filecommander": {
      "command": "bach-filecommander"
    },
    "codecommander": {
      "command": "bach-codecommander"
    }
  }
}

Available tools

cc_analyze_code

Full code analysis with extraction of classes, functions, imports, lines of code, and complexity metrics.

cc_analyze_methods

Detailed method analysis including parameters, decorators, visibility, and data flow.

cc_extract_classes

Extract Python classes and functions as separate text blocks.

cc_organize_imports

Sort and deduplicate Python imports according to PEP 8.

cc_diagnose_imports

Detect unused imports, duplicates, and circular import risks.

cc_fix_json

Repair JSON by fixing BOM, trailing commas, comments, and single quotes.

cc_validate_json

Validate JSON with detailed error position and context.

cc_fix_encoding

Fix Mojibake and double-encoded UTF-8 across 27+ patterns.

cc_cleanup_file

Remove BOM, NUL bytes, trailing whitespace, and normalize line endings.

cc_fix_umlauts

Repair broken German umlauts with many patterns, HTML entities, and escapes.

cc_scan_emoji

Scan files for emojis with codepoint information.

cc_convert_format

Convert between JSON, CSV, INI, YAML, TOML, XML, and TOON.

cc_generate_licenses

Generate a third-party license file for npm/pip dependencies.

cc_diff_files

Compare two files and produce a unified diff with configurable context.

cc_regex_test

Test regular expressions against text or files with match details and replace previews.

cc_md_to_html

Convert Markdown to standalone HTML with styling for headers, code, tables, and lists.

cc_md_to_pdf

Convert Markdown to PDF via a headless browser, with a fallback to HTML.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational