
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 分