Gencodedoc
概览
作者提供的说明(英文原文)
Versioning de code et génération de documentation intelligents. Supporte CLI, API REST, et MCP.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i2 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 22/周 · ★ 1
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:2 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"gencodedoc": {
"command": "uvx",
"args": [
"gencodedoc"
]
}
}
}在终端中运行这条命令
claude mcp add gencodedoc -- uvx gencodedoc或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"gencodedoc": {
"command": "uvx",
"args": [
"gencodedoc"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"gencodedoc": {
"type": "stdio",
"command": "uvx",
"args": [
"gencodedoc"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 fkom13 验证,该账户拥有此仓库
- ! 注意
仍在维护
代码最后更新于9个月前,已超过 6 个月
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5742 个服务器的 65%
- 发布到注册中心的时间比此分类中其他 5742 个服务器的 1% 更新
- 基础检查结果等于或优于此分类中其他 5742 个服务器的 12%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Gencodedoc 安全吗?
它在 2 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于9个月前,最新版本(2.0.1)于12个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
🚀 GenCodeDoc
Smart documentation generator and intelligent versioning system with full MCP support
*Intelligent versioning and documentation for modern development workflows*
Quick Start • Features • MCP Tools • Documentation
⚡ Quick Start
# 1. Install
cd /path/to/gencodedoc poetry install
2. Initialize your project
poetry run gencodedoc init --preset python
3. Create your first snapshot
poetry run gencodedoc snapshot create -m "Initial version" -t v1.0
4. Generate documentation (Smart Split)
poetry run gencodedoc doc generate --limit 5000
5. Visualize Tree
poetry run gencodedoc tree
🎯 For AI Assistants (Claude/Gemini): See MCP Integration
✨ Features 🎯 Core Features 📸 Smart Snapshots - Create intelligent snapshots with ~70% space savings via SHA256 deduplication 🔄 Intelligent Autosave - 3 modes (timer/diff/hybrid) with configurable thresholds 📝 Beautiful Documentation - Generate Markdown docs with syntax highlighting, directory trees, and smart splitting 🔍 Advanced Diff - Compare versions with unified, JSON, or AST-based diffs 🗜️ Efficient Storage - zstd compression (~3x reduction) + SQLite with optimized indexes 🎨 Project Presets - Pre-configured for Python, Node.js, Go, and Web projects 🔌 MCP Integration (Model Context Protocol) 26 MCP Tools - Full CLI functionality exposed via MCP for AI Assistants 3 Transports - stdio (Gemini CLI) + SSE (Claude Desktop) + REST API Multi-Project - Manage multiple projects simultaneously Code Intelligence - File history, search, and changelog generation Live Status - Real-time project statistics and snapshot management 📦 Installation Prerequisites Python 3.10+ Poetry (dependency manager) Install Poetry Bash
Linux/macOS
curl -sSL https://install.python-poetry.org | python3 -
Windows (PowerShell)
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py - Install GenCodeDoc Bash
Clone or navigate to the project
cd /home/fkomp/Bureau/oracle/utilitaires/gencodedoc/gencodedoc
Install dependencies
poetry install
Verify installation
poetry run gencodedoc --help 🎯 Usage 📋 CLI Usage Initialize a Project Bash
Basic initialization
gencodedoc init
With Python preset (recommended for Oracle projects)
gencodedoc init --preset python
Available presets: python, nodejs, go, web
Snapshot Management Bash
Create snapshot
gencodedoc snapshot create --message "Feature X completed" --tag v1.0
List snapshots
gencodedoc snapshot list --limit 10
Show snapshot details
gencodedoc snapshot show v1.0
View file content at specific version (NEW)
gencodedoc snapshot cat v1.0 src/main.py
List files in a snapshot (NEW)
gencodedoc snapshot files v1.0 --pattern "*.py"
Compare versions
gencodedoc snapshot diff v1.0 v2.0
Restore snapshot (full or partial)
gencodedoc snapshot restore v1.0 --force gencodedoc snapshot restore v1.0 --filter "src/*.py" # Partial restore
Export snapshot (NEW)
gencodedoc snapshot export v1.0 ./dist-v1 --archive # Creates .tar.gz
Delete snapshot
gencodedoc snapshot delete old-version --force
Cleanup orphaned data (NEW)
gencodedoc snapshot cleanup Documentation Generation Bash
Full documentation
gencodedoc doc generate
Custom output
gencodedoc doc generate --output docs/API.md
Specific paths only
gencodedoc doc generate --include src/api/ --include README.md
Structure preview
gencodedoc doc preview --max-depth 3
Project statistics
gencodedoc doc stats Configuration Bash
View configuration
gencodedoc config show
Edit configuration
gencodedoc config edit
Set specific values
gencodedoc config set autosave.enabled true gencodedoc config set autosave.mode hybrid
Apply preset
gencodedoc config preset python
Manage ignore rules
gencodedoc config ignore --add-dir dist gencodedoc config ignore --add-ext .tmp gencodedoc config ignore --list-all
Customizable Presets
Presets are now defined in YAML files (gencodedoc/config/presets/*.yaml)
and can be modified directly in the source code.
Project Status Bash
Show project status
gencodedoc status 🔌 MCP Integration GenCodeDoc exposes 22 powerful tools via the Model Context Protocol, compatible with Claude Desktop, Gemini CLI, and any MCP-compatible client.
🎯 Transport Modes Transport Use Case AI Assistants Port stdio CLI integration Gemini CLI, custom scripts stdin/stdout SSE Web/Desktop apps Claude Desktop, web UIs 8000 (HTTP) REST API integration Any HTTP client 8000 (HTTP) 🚀 Setup for Gemini CLI (stdio)
- Find your Poetry venv path:
Bash
cd /home/fkomp/Bureau/oracle/utilitaires/gencodedoc/gencodedoc poetry env info --path
Copy the path and append /bin/python
- Add to ~/.config/gemini-desktop-app/settings.json:
JSON
{ "mcpServers": { "gencodedoc": { "command": "/path/to/your/venv/bin/python", "args": ["-m", "gencodedoc.mcp.server_stdio"], "env": { "PROJECT_PATH": "/home/fkomp/Bureau/oracle/utilitaires/gencodedoc/gencodedoc" } } } }
- Restart Gemini CLI and you`re ready! 🎉
🚀 Setup for Claude Desktop (SSE)
- Start the SSE server:
Bash
Terminal 1: Start server
poetry run python -m gencodedoc.mcp.server_sse
Server runs on http://127.0.0.1:8000
- Add to Claude Desktop config:
Location:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json Config:
JSON
{ "mcpServers": { "gencodedoc": { "url": "http://127.0.0.1:8000/mcp/sse", "transport": "sse", "description": "GenCodeDoc - Smart documentation and versioning" } } }
- Restart Claude Desktop and the server must remain running!
🚀 REST API Bash
Start REST server
poetry run python -m gencodedoc.mcp.server
Available endpoints
GET http://127.0.0.1:8000/ # Server info GET http://127.0.0.1:8000/mcp/tools # List tools POST http://127.0.0.1:8000/mcp/execute # Execute tool 🛠️ MCP Tools (26 Tools)
🧠 Code Intelligence (3 tools)
| Tool | Description | Key Parameters |
|---|---|---|
get_file_history | Track file changes across versions | file_path |
search_snapshots | Search text in all snapshots | query, case_sensitive, file_filter |
generate_changelog | Generate Keep-a-Changelog | from_ref, to_ref |
📸 Snapshot Management (11 tools)
| Tool | Description | Key Parameters |
|---|---|---|
create_snapshot | Create a new snapshot | message, tag, include_paths |
list_snapshots | List all snapshots | limit, include_autosave |
get_snapshot_details | Get full snapshot info | snapshot_ref |
restore_snapshot | Restore a snapshot (full or partial) | snapshot_ref, force, file_filters |
restore_files | Restore specific files | snapshot_ref, file_filters |
delete_snapshot | Delete a snapshot | snapshot_ref |
diff_versions | Compare two versions | from_ref, to_ref, format, file_filters |
get_file_at_version | Get content of a single file | snapshot_ref, file_path |
list_files_at_version | List files in a snapshot | snapshot_ref, pattern |
export_snapshot | Export snapshot to folder/archive | snapshot_ref, output_path, archive |
cleanup_orphaned_contents | Cleanup unused data | none |
📝 Documentation (3 tools)
| Tool | Description | Key Parameters |
|---|---|---|
generate_documentation | Generate Markdown docs | output_path, split_limit, ignore_tree_patterns |
preview_structure | Show directory tree | max_depth, ignore_add, limit, page |
get_project_stats | Get project statistics | none |
🎯 Project Management (2 tools)
| Tool | Description | Key Parameters |
|---|---|---|
init_project | Initialize gencodedoc | project_path, preset |
get_project_status | Get project status | project_path |
⚙️ Configuration (4 tools)
| Tool | Description | Key Parameters |
|---|---|---|
get_config | View configuration | project_path |
set_config_value | Modify config value | key, value |
apply_preset | Apply preset config | preset (python/nodejs/go/web) |
manage_ignore_rules | Manage ignore rules | add_dir, add_file, add_ext, list_all |
🔄 Autosave (3 tools)
| Tool | Description | Key Parameters |
|---|---|---|
start_autosave | Start automatic versioning | project_path, mode |
stop_autosave | Stop automatic versioning | project_path |
get_autosave_status | Get status of all autosaves | none |
🤝 Contributing Contributions welcome! 🎉
🐛 Report bugs via GitHub Issues 💡 Suggest features via Discussions 🔧 Submit Pull Requests
Development workflow:
- Fork the repo
- Create a feature branch (
git checkout -b feature/amazing) - Make your changes
- Run tests (
make test) - Submit PR
📄 License MIT License - See LICENSE file
🐛 Issues: GitHub Issues 💬 Discussions: GitHub Discussions 🌐 Website: esprit-artificiel.com 📧 Email: support@esprit-artificiel.com
Made with ❤️ for developers who love smart versioning and beautiful docs
💡 Pro Tip: Use GenCodeDoc with Gemini CLI or Claude Desktop for AI-powered version control!
⭐ Star this repo if you find it useful! 🤖 "Start autosave in hybrid mode for this project" → Calls: start_autosave(project_path="...", mode="hybrid")
🤖 "Stop all autosaves and show me their status" → Calls: stop_autosave(...) + get_autosave_status() ⚙️ Configuration Configuration File (.gencodedoc.yaml) YAML
project_name: "my-project"
Files/directories to ignore
ignore: dirs:
- node_modules
- venv
- .venv
- pycache
- .git
- dist
- build files:
- "*.log"
- package-lock.json
- .DS_Store extensions:
- .pyc
- .pyo
- .exe
- .jpg
- .png
- .pdf patterns: [] # gitignore-style patterns
Intelligent autosave
autosave: enabled: false # Set to true to enable mode: hybrid # timer | diff | hybrid (recommended)
Timer mode: fixed interval
timer: interval: 300 # seconds (5 minutes)
Diff mode: threshold-based
diff_threshold: threshold: 0.05 # Save if 5% of files changed check_interval: 60 # Check every 60 seconds ignore_whitespace: true ignore_comments: false
Hybrid mode: combines timer + diff (RECOMMENDED)
hybrid: min_interval: 180 # Minimum 3 minutes between saves max_interval: 600 # Maximum 10 minutes between saves threshold: 0.03 # Save if 3% of files changed
Retention policy
retention: max_autosaves: 50 # Keep max 50 autosaves compress_after_days: 7 # Compress after 7 days delete_after_days: 30 # Delete after 30 days keep_manual: true # Always keep manual snapshots
Documentation output
output: default_name: "{project}_doc_{date}.md" include_tree: true include_code: true tree_full_code_select: false # Full tree, selected code only language_detection: true max_file_size: 1000000 # 1 MB max per file
Diff output format
diff_format: default: unified # unified | json |