
BACH CodeCommander
io.github.lukisch由 GitHub 帳號 lukisch 發布v1.3.0更新於 Oct 24, 2026
17 tools for code analysis, JSON repair, encoding fix, format conversion, diff, and regex.
概覽
本機 stdio MCP 伺服器,讓助理進行程式碼分析、Python 結構化編輯、JSON 修復、編碼修正、格式轉換、檔案比對與正規表達式測試。
- 可以做什麼
- 分析 Python、JavaScript 與 TypeScript 程式碼:類別、方法、函式、匯入與複雜度
- 整理與診斷匯入陳述,並對 Python 執行隔離的執行期匯入檢查
- 修復與驗證 JSON,修正亂碼與損壞的德文變音符號,清理檔案
- 在 JSON、CSV、INI、YAML、TOML、XML 與 TOON 之間轉換,並產生統一差異比對
- 測試正規表達式(含分組與取代預覽),依範本產生 Python 程式碼
- 將 Markdown 匯出為 HTML 或 PDF,並切換伺服器執行期語言
- 適用情境
- 適合使用 Python 或 JS/TS 專案的開發者與編碼助理,用於結構化程式碼檢查、先預覽再套用的安全編輯、設定檔格式轉換,或快速修復損壞的 JSON 與編碼問題。它偏向本機離線的重構與清理輔助工具,而非通用檔案管理器。
- 執行需求
- 透過 npx 或全域 npm 安裝,以 stdio 在本機執行;需要 Node.js 20 以上與 npm 9 以上。未宣告任何驗證、API 金鑰或環境變數。PDF 匯出依賴本機的無頭 Edge 或 Chrome 瀏覽器,缺少時改以 HTML 輸出。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 BACH CodeCommander,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[ellmos CodeCommander MCP emblem]
ellmos CodeCommander MCP Server
English | Deutsch | Español | 简体中文 | 日本語 | Русский | Français | हिन्दी | العربية | বাংলা | Português
The README navigation lists the available documentation languages. Section 11 separately describes the runtime languages used for tool output messages and diagnostics. This does not claim that MCP discovery or schema descriptions, the GUI, CLI, or API are translated.
Part of the ellmos-ai family.
[License: MIT] [npm version] [CI Tests] [Tests] [Node.js] [Platform] [Privacy] [Security] [Security: RunAsInvoker] [Security SLA] [Contributing] [Third-Party Audited] [Marketing Log] [Attribution: NOTICE] [Verified: 2026-10-09] [Ecosystem] [Umbrella] [LLM Indexing]
[!NOTE] For AI Assistants & LLMs: Machine-readable indexing documentation for this repository is available at
llms.txt. The server exposes 23 specialized tools under thecc_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.
23 tools 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. Registry and directory manifests server.json, glama.json, smithery.yaml, and llms.txt are maintained in full parity.
Quick Navigation
- Overview & Highlights
- Target Personas & Discoverability
- Comparative Matrix vs. Alternatives
- Architecture & System Overview
- Safe Structural Edit Lifecycle
- Governance & Runtime Invariants
- Developer Tool Suite (23 Tools)
- Shared Tools with FileCommander
- Installation & Quickstart
- Configuration & MCP Client Setup
- Multi-Language Support (i18n)
- Development & Quality Assurance
- Sibling Ecosystem & Partner Matrix
- Third-Party Licenses & Transparency
- Security Policy & Response SLA
- Changelog & Version History
- License & Legal Attribution
- Statutory Notice, Liability Limitation & SLA (§ 521 BGB)
1. Overview & Highlights
While FileCommander handles filesystem operations and system processes, CodeCommander focuses specifically on code intelligence and developer precision:
- Python, JavaScript & TypeScript Analysis — Extension-dispatched classes, methods, functions, complexity metrics, and import analysis; JS/TS analysis is regex-based and read-only.
- BACH-derived Python Helpers — Runtime import diagnostics, structural edits, indentation checks, and template-based code generation.
- Explicit Language Gates — Python-only path tools reject non-
.pyfiles explicitly instead of producing Python-shaped false findings. - JSON Repair & Validation — Automatically repair broken JSON (trailing commas, single quotes, BOM, comments) with precise error locations.
- PEP 8 Import Organization — Sort and deduplicate Python imports per PEP 8 guidelines.
- Encoding & Mojibake Repair — Fix Mojibake and double-encoded UTF-8 (27+ patterns) and broken German characters (70+ umlaut patterns).
- Universal Format Conversion — Convert between JSON, CSV, INI, YAML, TOML, XML, and TOON formats losslessly.
- Unified File Diff — Compare two files with LCS unified diff output and configurable context lines.
- Regex Testing Workbench — Test regular expressions with match details, capturing groups, and replace previews.
- Markdown Export — Convert Markdown to standalone HTML or PDF with syntax-styled code blocks, tables, and blockquotes.
- Cross-Platform Native — Full support on Windows, macOS, and Linux.
2. Target Personas & Discoverability
CodeCommander MCP is engineered to address key bottlenecks in modern autonomous AI coding, local multi-agent swarms, and safety-compliant developer tooling:
Target Audience & Stakeholder Personas
-
[PERSONA-01]([PERSONA-1]) Autonomous AI Coding Agents & LLM Pair-Programmers- Profile: Agents such as Claude Code, Antigravity, Codex, Cursor, and Windsurf performing automated code refactoring, test repair, and feature development.
- Pain Point: Standard LLM code outputs frequently suffer from hallucinated imports, broken indentation in complex Python control flows, invalid JSON configs, or syntax corruption during naive chunk edits.
- Solution: Native AST extraction (
cc_extract_classes,cc_analyze_methods), preview-safe structural editing with unified diffs (cc_python_structural_edit), automatic indentation checking (cc_check_indentation), and deterministic JSON repair (cc_fix_json).
-
[PERSONA-02]([PERSONA-2]) Full-Stack & Python/TypeScript Software Engineers- Profile: Developers maintaining polyglot projects, CLI utilities, and data pipelines requiring cross-language AST analysis and rapid configuration format transitions.
- Pain Point: Tedious manual format conversions (JSON ↔ YAML ↔ TOML ↔ TOON ↔ XML), broken German umlauts or Mojibake from legacy encodings, and circular runtime imports.
- Solution: Universal format converter (
cc_convert_format), non-destructive encoding and umlaut repair (cc_fix_encoding,cc_fix_umlauts), isolated runtime import diagnostics (cc_runtime_import_diagnose), and interactive regex tester (cc_regex_test).
-
[PERSONA-03]([PERSONA-3]) Enterprise AI Safety, SecOps & Code Governance Officers- Profile: Security auditors, compliance engineers, and enterprise architects evaluating MCP toolchains for developer workstations and CI/CD runners.
- Pain Point: Risk of confidential code leakage via cloud telemetry, unauthorized process elevation, or destructive in-place file overwrites by AI assistants.
- Solution: 100% Zero-Egress local stdio transport (
INV-LOCAL-01), unprivileged user-space execution (INV-SEC-02), mandatory timestamped.bakbackups before mutations (INV-BAK-04), dry-run diff preview safety (INV-PREV-03), and isolated subprocess timeouts (INV-ISOL-05).
-
[PERSONA-04]([PERSONA-4]) Open-Source Ecosystem Architects & MCP Tool Developers- Profile: Maintainers building, publishing, and indexing MCP servers across Glama, Smithery, npm, and GitHub.
- Pain Point: Fragmented directory manifests, missing third-party license disclosures, and lack of machine-readable indexing context for AI agents.
- Solution: 100% manifest parity across
package.json,server.json,glama.json,smithery.yaml, andllms.txt, verified by automated contract tests and a complete open-source license audit (THIRD_PARTY_LICENSES.md).
High-Intent Search Queries (SEO & Discoverability)
mcp code analysis servermodel context protocol python ast toolsmcp server codecommanderpython structural edit mcpclaude code developer mcp servermcp json repair and encoding fixlocal-first mcp tools for codingmcp python runtime import diagnoseformat converter mcp json yaml toml toonoffline code intelligence mcp server
3. Comparative Matrix vs. Alternatives
The following matrix compares CodeCommander MCP against alternative developer tooling approaches across 10 critical operational dimensions:
4. Architecture & System Overview
5. Safe Structural Edit Lifecycle
6. Governance & Runtime Invariants
ellmos-codecommander-mcp guarantees 10 core architectural and runtime invariants across all platforms:
7. Developer Tool Suite (23 Tools)
Code Analysis (3 tools)
Import Management (3 tools)
JSON Tools (2 tools)
Encoding & Text (3 tools)
Scanning (1 tool)
Format & Documentation (2 tools)
Developer Utilities (2 tools)
Python Assistance (3 tools)
Export (2 tools)
Runtime Language Management (2 tools)
Total: 23 developer tools available under the cc_ prefix.
8. Shared Tools with FileCommander
7 tools exist in both FileCommander and CodeCommander for convenience:
All tools in CodeCommander use the cc_ prefix to guarantee seamless coexistence with FileCommander's fc_ namespace.
9. Installation & Quickstart
Prerequisites
- Node.js 20 or higher
- npm 9 or higher
Option 1: Install from NPM (Recommended)
Option 2: Install from Source
10. Configuration & MCP Client Setup
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
Global NPM Install:
From Source Build:
Coexistence with FileCommander
FileCommander and CodeCommander are designed to run concurrently:
11. Multi-Language Support (i18n)
CodeCommander supports these 11 languages for messages returned by tools, including diagnostic messages at runtime:
de— German (default)en— Englishes— Spanishzh— Simplified Chineseja— Japaneseru— Russianfr— Frenchhi— Hindiar— Arabicbn— Bengalipt— Portuguese
These codes select the language of runtime tool output and diagnostic messages. They do not translate MCP discovery or schema descriptions, the GUI, CLI, or API; README navigation lists documentation languages separately.
CC_LANGUAGE selects the initial language when the server starts. During an active MCP session, use cc_set_language to switch languages; cc_get_language reports the active code and supported codes. If CC_LANGUAGE is unset or unsupported, the fallback is German (de). No --lang option is documented.
12. Development & Quality Assurance
The test gates are deliberately separated and automated in CI across Ubuntu, macOS, and Windows on Node.js 20, 22, and 24 (totaling 322 automated assertions, 100% green). Contribution workflow and development guidelines are detailed in CONTRIBUTING.md.
13. Sibling Ecosystem & Partner Matrix
Part of the ellmos-ai and open-bricks family of local-first tools:
MCP Server Family
Sibling Developer, File & Document Tools
14. Third-Party Licenses & Transparency
This project strictly adheres to open-source transparency:
- All runtime and development dependencies are audited in
THIRD_PARTY_LICENSES.mdand plain-text companionTHIRD_PARTY_LICENSES.txt. - The current production dependency audit (
npm audit --omit=dev --json, checked 2026-09-20) reports 5 vulnerable package nodes (3 high, 2 moderate); remediation is tracked in TASKPLAN #2198. - Distributed exclusively under permissive open-source licenses (MIT, BSD-2-Clause, BSD-3-Clause, Apache-2.0).
- Comprehensive discoverability, personas, and marketing metrics are documented in
MARKETING-LOG.txt. - Zero proprietary tracking, zero telemetric beacons, and zero viral copyleft dependencies.
15. Security Policy & Response SLA
Please review SECURITY.md for full vulnerability disclosure procedures.
- Zero-Egress Guarantee: Completely local execution over stdio.
- Preview & Backup Safety: Destructive operations create
.bakbackups and support non-mutating preview. - Unprivileged User Mode: Runs under standard unprivileged user permissions (
RunAsInvoker). - Dedicated Response Channels: Contact
[email protected]and[email protected]with a guaranteed 48-hour initial response SLA and 5-day triage commitment.
16. Changelog & Version History
See CHANGELOG.md for release notes and version history.
17. License & Legal Attribution
This project is licensed under the MIT License — Copyright © 2026 Lukas Geiger (ellmos-ai).
See NOTICE for open-bricks umbrella attribution, CONTRIBUTING.md for development guidelines, and THIRD_PARTY_LICENSES.md / THIRD_PARTY_LICENSES.txt for the Level 1 SBOM invariant inventory.
18. Statutory Notice, Liability Limitation & SLA (§ 521 BGB)
Dieses Projekt ist eine unentgeltliche Open-Source-Schenkung im Sinne der §§ 516 ff. BGB (Gefälligkeitsrecht). Die Haftung des Urhebers und der Mitwirkenden 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.
Sicherheitsrelevante Vorfälle und Schwachstellen werden über das verbindliche 48-Stunden-SLA unter [email protected], [email protected] und [email protected] entgegengenommen und innerhalb von 5 Werktagen triagiert.
This project is an unpaid open-source donation under German law (§§ 516 et seq. BGB). Liability is strictly limited to intent and gross negligence (§ 521 German Civil Code). The MIT license disclaimer applies complementarily. Use at your own risk. No warranty, no maintenance guarantee, no fitness-for-purpose assumed.
Security incidents and vulnerabilities are handled under a binding 48-hour response SLA via [email protected], [email protected] and [email protected] with formal triage within 5 business days.
來源:README.md,提交 010fcda
工具
0版本歷史
1- v1.3.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分