ellmos-ai/ellmos-codecommander-mcp

๐Ÿ’ป Developer Tools
0 Views
0 Installs

๐Ÿ“‡ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - Developer-focused MCP server for code analysis, JSON repair, encoding fixes, and import organization across local projects.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "ellmos-ai-ellmos-codecommander-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ellmos-ai-ellmos-codecommander-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

CodeCommander banner

ellmos CodeCommander MCP Server

๐Ÿ‡ฉ๐Ÿ‡ช Deutsche Version

Part of the ellmos-ai family.

License: MIT npm version CodeCommander tests Vitest Node.js LLM Indexing

[!NOTE] For AI Assistants & LLMs: Machine-readable indexing documentation for this repository is available at llms.txt. The server exposes 22 specialized tools under the cc_ prefix.

A developer-focused Model Context Protocol (MCP) server that gives AI assistants code analysis, structural Python editing, JSON repair, encoding fix, import organization, format conversion, file diff, and regex testing capabilities.

21 tools (+1 i18n tool) optimized for developers - the coding companion to FileCommander.

Discoverability: Published on npm as ellmos-codecommander-mcp, visible on Glama, and prepared for the official MCP Registry with server.json under io.github.ellmos-ai/ellmos-codecommander-mcp.


Architecture Overview

graph TD
    Client["MCP Clients<br/>(Claude Desktop / Claude Code / Cursor / Windsurf)"]
    Server["ellmos CodeCommander MCP Server<br/>(stdio transport โ€ข Node.js)"]

    subgraph Tools["Developer Tool Suites (22 Tools)"]
        subgraph CodeIntel["Code & Python Intelligence"]
            C1["cc_analyze_code"]
            C2["cc_analyze_methods"]
            C3["cc_extract_classes"]
            C4["cc_check_indentation"]
            C5["cc_generate_python_code"]
            C6["cc_python_structural_edit"]
        end

        subgraph Imports["Import Management"]
            I1["cc_organize_imports"]
            I2["cc_diagnose_imports"]
            I3["cc_runtime_import_diagnose"]
        end

        subgraph Repair["Text, JSON & Encoding Repair"]
            R1["cc_fix_json"]
            R2["cc_validate_json"]
            R3["cc_fix_encoding"]
            R4["cc_cleanup_file"]
            R5["cc_fix_umlauts"]
        end

        subgraph Utility["Utilities & Conversion"]
            U1["cc_convert_format (JSON/CSV/YAML/TOML/XML/TOON)"]
            U2["cc_diff_files (Unified Diff)"]
            U3["cc_regex_test (Regex Tester)"]
            U4["cc_scan_emoji"]
            U5["cc_generate_licenses"]
        end

        subgraph Export["Export & i18n"]
            E1["cc_md_to_html"]
            E2["cc_md_to_pdf"]
            E3["cc_set_language"]
        end
    end

    Client -->|Stdio JSON-RPC| Server
    Server --> CodeIntel
    Server --> Imports
    Server --> Repair
    Server --> Utility
    Server --> Export

Why CodeCommander?

While FileCommander handles filesystem operations, CodeCommander focuses on code intelligence:

  • Python Code Analysis - AST-based class/method extraction, complexity metrics, import analysis
  • BACH-derived Python Helpers - runtime import diagnostics, structural edits, indentation checks, and template-based code generation
  • JSON Repair - Fix broken JSON automatically (trailing commas, single quotes, BOM, comments)
  • Import Organization - Sort and deduplicate Python imports per PEP 8
  • Encoding Fix - Repair Mojibake and double-encoded UTF-8 (27+ patterns)
  • Umlaut Repair - Fix broken German characters (70+ patterns)
  • Format Conversion - Convert between JSON, CSV, INI, YAML, TOML, XML, and TOON
  • File Diff - Compare two files with unified diff output (LCS algorithm)
  • Regex Tester - Test regular expressions with match details, groups, and replace preview
  • Markdown Export - Convert Markdown to professional HTML/PDF with code blocks, tables, nested lists, blockquotes
  • Cross-platform - Works on Windows, macOS, and Linux

Installation

Prerequisites

Option 1: Install from NPM

npm install -g ellmos-codecommander-mcp

Option 2: Install from Source

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

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

If installed globally via NPM:

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

If installed from source:

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

Using Both Servers Together

FileCommander and CodeCommander are designed to work side by side:

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

Tools Overview

Code Analysis (3 tools)

ToolDescription
cc_analyze_codeFull code analysis: classes, functions, imports, LOC, complexity
cc_analyze_methodsDetailed method analysis: params, decorators, visibility, data flow, BACH guardrails
cc_extract_classesExtract Python classes/functions as separate text blocks, optionally including pycutter-style inline content

Import Management (3 tools)

ToolDescription
cc_organize_importsSort & deduplicate Python imports per PEP 8
cc_diagnose_importsDetect unused imports, duplicates, circular import risks
cc_runtime_import_diagnoseRun isolated Python runtime imports with timeouts, init.py analysis, and circular-import hints

JSON Tools (2 tools)

ToolDescription
cc_fix_jsonRepair broken JSON (BOM, trailing commas, comments, single quotes)
cc_validate_jsonValidate JSON with detailed error position and context

Encoding & Text (3 tools)

ToolDescription
cc_fix_encodingFix Mojibake / double-encoded UTF-8 (27+ patterns)
cc_cleanup_fileRemove BOM, NUL bytes, trailing whitespace, normalize line endings
cc_fix_umlautsRepair broken German umlauts (70+ patterns, HTML entities, escapes)

Scanning (1 tool)

ToolDescription
cc_scan_emojiScan files for emojis with codepoint info

Format & Documentation (2 tools)

ToolDescription
cc_convert_formatConvert between JSON, CSV, INI, YAML, TOML, XML, and TOON formats
cc_generate_licensesGenerate third-party license file (npm/pip)

Developer Utilities (2 tools)

ToolDescription
cc_diff_filesCompare two files with unified diff output (configurable context lines)
cc_regex_testTest regex patterns against text/files with match details, groups, and replace preview

Python Assistance (3 tools)

ToolDescription
cc_check_indentationDetect missing colons, unindented return/yield statements, and mixed tab/space indentation
cc_generate_python_codeGenerate Python functions, classes, dataclasses, CLI stubs, tests, exceptions, and modules from templates
cc_python_structural_editInspect and apply structural Python edits with preview, test-file, syntax-check and backup modes

Export (2 tools)

ToolDescription
cc_md_to_htmlMarkdown to standalone HTML with CSS styling (headers, code blocks, tables, nested lists, blockquotes, images, checkboxes)
cc_md_to_pdfMarkdown to PDF via headless browser (Edge/Chrome). Falls back to HTML if no browser is available

Total: 21 developer tools (cc_set_language is also available for runtime language switching)


Shared Tools

7 tools exist in both FileCommander and CodeCommander for convenience:

FileCommanderCodeCommanderFunction
fc_fix_jsoncc_fix_jsonJSON repair
fc_validate_jsoncc_validate_jsonJSON validation
fc_fix_encodingcc_fix_encodingEncoding repair
fc_cleanup_filecc_cleanup_fileFile cleanup
fc_convert_formatcc_convert_formatFormat conversion (JSON/CSV/INI/YAML/TOML/XML/TOON)
fc_md_to_htmlcc_md_to_htmlMarkdown to HTML export
fc_md_to_pdfcc_md_to_pdfMarkdown to PDF export

Tool Prefix

All tools use the cc_ prefix (CodeCommander) to avoid conflicts with FileCommander's fc_ prefix and other MCP servers.


Security

See SECURITY.md for detailed security information.

Key points:

  • File-modifying tools support preview/dry-run modes where applicable
  • Backup creation is enabled by default for destructive operations
  • No built-in sandboxing - security is delegated to the MCP client
  • Designed for local development use via stdio transport

Development

npm install
npm run dev    # Watch mode
npm run build  # One-time build
npm start      # Start server
npm test       # Run test suite (vitest)

Testing

The project includes a comprehensive test suite covering all 21 developer tools and i18n behavior.

npm test              # Run all tests
npx vitest run        # Same as above
npx vitest --watch    # Watch mode

Tests are verified on Windows, macOS, and Linux.

GitHub Actions runs the build, Vitest suite, and npm package check on Node.js 20, 22, and 24.


Changelog

See CHANGELOG.md for the full version history.


License

MIT - Lukas Geiger (ellmos-ai)


History

This project was originally developed as BACH CodeCommander (bach-codecommander-mcp). It has been renamed to ellmos CodeCommander (ellmos-codecommander-mcp) as part of the ellmos-ai organization.

The legacy package name bach-codecommander-mcp is deprecated. Please use ellmos-codecommander-mcp instead:

npm uninstall -g bach-codecommander-mcp
npm install -g ellmos-codecommander-mcp

ellmos-ai Ecosystem

This MCP server is part of the ellmos-ai ecosystem โ€” AI infrastructure, MCP servers, and intelligent tools.

MCP Server Family

ServerToolsFocusnpm
FileCommander46Filesystem, process management, interactive sessions, cloud-lock-safe operationsellmos-filecommander-mcp
CodeCommander22Code analysis, JSON repair, imports, diffs, regexellmos-codecommander-mcp
Clatcher12File repair, format conversion, batch operationsellmos-clatcher-mcp
n8n Manager18n8n workflow management via AI assistantsn8n-manager-mcp
ControlCenter20MCP stack discovery, profile management, control planeellmos-controlcenter-mcp
Homebase45Local-first LLM memory, knowledge, state, routing, swarm orchestrationellmos-homebase-mcp (alpha)
ServerCommander8Server operations: health checks, log analysis, deploy dry-runs, mail diagnosticsellmos-servercommander-mcp (alpha)
Blender Use3Headless Blender asset QA and FBX reimport verificationellmos-blender-use-mcp (alpha)
Open Compute10Model-agnostic computer use: capture, safety-gated actions, Windows UIAopen-compute-mcp (alpha)

AI Infrastructure

ProjectDescription
BACHLocal-first text-based OS for LLM agents โ€” 113+ handlers, 550+ tools, SQLite memory
open-computeModel-agnostic computer-use core powering Open Compute MCP
clutchProvider-neutral LLM orchestration with auto-routing and budget tracking
rinnsalLightweight agent memory, connectors, and automation infrastructure
ellmos-stackSelf-hosted AI research stack (Ollama + n8n + Rinnsal + KnowledgeDigest)
MarbleRunAutonomous agent chain framework for Claude Code
gardenerMinimalist database-driven LLM OS prototype (4 functions, 1 table)
ellmos-testsTesting framework for LLM operating systems (7 dimensions)

Desktop Software

Our partner organization open-bricks bundles AI-native desktop applications โ€” a modern, open-source software suite built for the age of AI. Categories include file management, document tools, developer utilities, and more.

Liability

Dieses Projekt ist eine unentgeltliche Open-Source-Schenkung im Sinne der ยงยง 516 ff. BGB. Die Haftung des Urhebers ist gemรครŸ ยง 521 BGB auf Vorsatz und grobe Fahrlรคssigkeit beschrรคnkt. Ergรคnzend gilt der Haftungsausschluss der MIT-Lizenz.

Nutzung auf eigenes Risiko. Keine Wartungszusage, keine Verfรผgbarkeitsgarantie, keine Gewรคhr fรผr Fehlerfreiheit oder Eignung fรผr einen bestimmten Zweck.

This project is an unpaid open-source donation under German law. Liability is limited to intent and gross negligence (ยง 521 German Civil Code), supplemented by the MIT License warranty disclaimer. Use at your own risk.

Related MCP Servers

Moxie-Docs-MCPโ˜… Featured

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

๐Ÿ’ป Developer Tools2 views
3KniGHtcZ/codebeamer-mcp

๐Ÿ“‡ โ˜๏ธ ๐ŸŽ ๐ŸชŸ ๐Ÿง - Codebeamer ALM integration for managing work items, trackers, and projects. Provides 17 tools for reading and writing items, associations, references, comments, and risk management data via Codebeamer REST API v3.

๐Ÿ’ป Developer Tools1 views
21st-dev/Magic-MCP

Create crafted UI components inspired by the best 21st.dev design engineers.

๐Ÿ’ป Developer Tools0 views
a-25/ios-mcp-code-quality-server

๐Ÿ“‡ ๐Ÿ  ๐ŸŽ - iOS code quality analysis and test automation server. Provides comprehensive Xcode test execution, SwiftLint integration, and detailed failure analysis. Operates in both CLI and MCP server modes for direct developer usage and AI assistant integration.

๐Ÿ’ป Developer Tools0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

Last checked: 7/29/2026, 1:09:45 AM

Unclaimed listing (imported or pending owner verification). Claim it โ†’
โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.