Skip to main content

CloneX: GitHub multi-repo maintenance tool with CLI, GUI, and MCP entrypoints

Project description

CloneX

一条命令同步你的所有 GitHub 仓库

CloneX 用一个 Gist 管理仓库分组,然后一条命令把本地仓库树同步出来:按组克隆、追加新仓库、生成 IDE workspace。

核心功能

  • Gist 驱动分组:自动发现或创建 REPO-GROUPS.md Gist,作为仓库分组事实来源
  • 自动追加未分类:GitHub 上新增但未写入 Gist 的仓库自动进入 未分类
  • 按组批量克隆:按 Gist 分组创建本地目录,支持仓库级并行和单仓库 Git 并行连接
  • IDE workspace:每个分组自动生成 <group>.code-workspace,方便 VS Code / Cursor / Windsurf 一键打开

前置条件

  • GitHub CLIgh)已安装并登录:gh auth login
  • Python >= 3.10

安装

pip install clonex

使用

clonex

就这样。默认值已经够用:

  • 输出目录:./clonex-repos
  • 并行数:10 仓库 × 20 连接
  • 认证:自动读取 gh 登录状态

CloneX 不做自动分类。新仓库会进入 未分类,分组由你编辑 Gist 决定。

GUI

待完善,暂未发布

MCP Server

待完善,暂未发布

项目结构

src/clonex/
├─ cli.py          # CLI 入口
├─ ui/             # GUI 入口与界面
├─ mcp/            # MCP Server 与工具注册
├─ application/    # 用例编排层
├─ core/           # 克隆、更新、workspace、并行执行
├─ domain/         # 分组解析、渲染与领域模型
└─ infra/          # GitHub API、Gist、认证、日志、路径

依赖方向:ui / mcp → application → core / domain → infra

依赖

  • Python>=3.10
  • GitHub / 存储pygithubrequestskeyringchardet
  • GUI 可选PyQt6PyQt6-WebEngineqt-material
  • MCP 可选mcp>=1.0

文档

文档 用途
docs/ARCHITECTURE.md 架构全景与分层约束
docs/MCP-GUIDE.md MCP Server 使用与调试
docs/BUILD.md GUI 构建细节
docs/GIST-CONFIG-GUIDE.md Gist 云同步配置

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clonex-0.1.0.tar.gz (70.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clonex-0.1.0-py3-none-any.whl (83.3 kB view details)

Uploaded Python 3

File details

Details for the file clonex-0.1.0.tar.gz.

File metadata

  • Download URL: clonex-0.1.0.tar.gz
  • Upload date:
  • Size: 70.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clonex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab83c4052fb13572388ef6f424dd9ea1de83b221d337c51904c42fd2370a873b
MD5 0cd4c356ba47450ec71b46f6a9e98608
BLAKE2b-256 17bb72ace792e8d8d2f88b270931adb2191f8019b13b2d9ac68808733fe7cfa0

See more details on using hashes here.

File details

Details for the file clonex-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: clonex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 83.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clonex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d058dfb737770494a02c8ca30d95cd33ea99878d46f8273e4ed54153216af80
MD5 66f7727e336e292799df93293314fa72
BLAKE2b-256 8f0378d75753190467a3d0f88316092394f27e43a0e57423590ef6d3794bb1ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page