tidy-mcp
MCP server for Tidy, a backup and sync app. Enables AI agents to manage folder backups, schedules, and git sync operations via natural language.
README
<p align="center"> <img src="https://img.shields.io/badge/TIDY-v0.1.0-8ef0c4?style=for-the-badge" alt="Tidy"> <img src="https://img.shields.io/badge/Python-3.11%2B-57e39a?style=for-the-badge&logo=python&logoColor=white" alt="Python"> <img src="https://img.shields.io/badge/License-MIT-7d8dff?style=for-the-badge" alt="License"> </p>
<h1 align="center">🕹️ TIDY</h1>
<p align="center"> <b>Keep your folders tidy.</b><br> A pixel-styled backup & sync app for <i>any</i> folder or git repository — desktop GUI, headless CLI/TUI, and MCP for AI agents. </p>
<p align="center"> <a href="#✨-features">Features</a> · <a href="#🚀-quickstart">Quickstart</a> · <a href="#🖥️-cli--tui">CLI</a> · <a href="#🤖-mcp-for-ai-agents">MCP</a> · <a href="#🎨-themes">Themes</a> · <a href="#🛠️-development">Development</a> </p>
✨ Features
- 📁 Any folder, any repo — not locked to one tool. Point Tidy at a folder + a git remote and it handles the rest.
- ⏰ Per-repo schedules, many times — one folder can back up at
08:00,12:30,18:00— add as many as you like. - 🔄 True two-way sync —
fetch → pull --rebase → commit → push. Edits from other devices merge cleanly. - 🍞 Tray mini-panel — right-click the tray icon for a tiny control panel. No window needed for quick actions.
- 🎨 5 pixel themes — Neon Grid, CRT Terminal, Game Boy, Watermelon, Paper Desk. Switch live.
- 🖥️ Desktop app + headless CLI/TUI — same engine, two faces. Runs 24/7 on your laptop or a VPS.
- 🤖 MCP server + CLI — Claude, Cursor, Cline, and pi can control Tidy with natural language.
- 📦 One install script + AppImage —
install.sh(laptop or--serverVPS mode) and a portable AppImage.
🚀 Quickstart
Desktop (laptop)
bash install.sh
tidy-gui
Headless (VPS, 24/7)
bash install.sh --server
tidy add /srv/notes --at 18:00
systemctl --user enable --now tidy
AppImage
Download tidy-<version>.AppImage, make it executable, double-click:
chmod +x tidy-0.1.0.AppImage
./tidy-0.1.0.AppImage
🖥️ CLI & TUI
tidy status # state of all repos (human + --json)
tidy add ~/Notes --at 18:00 # register a folder + schedule
tidy remove ~/Notes
tidy schedule ~/Notes --at 21:00 # add another time to a repo
tidy backup all # push everything now
tidy pull ~/Notes
tidy serve # daemon mode → 24/7 engine, no GUI
tidy tui # interactive full-screen terminal UI
tidy gui # desktop pixel GUI (window + system tray mini-panel)
tidy-gui # same as `tidy gui` (direct entry point)
🖥️ Desktop GUI (Phase 5)
tidy gui (or tidy-gui) opens a pywebview window with the pixel dashboard:
- Repo cards — path, remote status, schedule chips (click ✕ to remove, + ADD TIME for another slot)
- Actions — BACKUP + PUSH ALL, PULL ALL, per-repo ▶ PUSH, + ADD REPO (native folder dialog)
- Theme switcher — live pixel theme dots (Neon Grid, CRT Terminal, Game Boy, Watermelon, Paper Desk)
- Activity log — live tail of the JSONL log (polls every 4s)
- System tray — right-click mini-panel: status line, per-repo push, backup/pull all, theme menu, show window, quit
The tray is skipped automatically when no display is available (headless VPS).
🤖 MCP for AI agents
Tidy exposes an MCP server so AI agents can control backups:
| Tool | Example |
|---|---|
list_repos() |
"what's being backed up?" |
add_repo(path) |
"watch my notes folder" |
add_schedule(repo, time) |
"add a 21:00 backup to my vault" |
backup_now(repo) |
"push my notes now" |
pull_now(repo) |
"pull my latest notes" |
get_status() / get_logs(n) |
"is everything ok?" |
set_setting(key, value) |
"switch to the Game Boy theme" |
Register it with Claude Desktop:
{
"mcpServers": {
"tidy": { "command": "tidy-mcp", "args": [] }
}
}
Run the server with tidy-mcp (or python -m tidy.mcp). A ready sample is in
docs/mcp-claude.json; full setup (Claude Desktop, Cursor,
Cline, pi) is in docs/MCP.md.
For pi the same power is exposed as a tidy skill (installed at
~/.agents/skills/tidy/, versioned in skills/tidy/SKILL.md)
that drives the tidy CLI directly.
🎨 Themes
Five built-in pixel themes, switchable live from the GUI, CLI, or MCP:
| Theme | Vibe |
|---|---|
| 🌃 Neon Grid | Synthwave — purple, pink & cyan |
| 🖥️ CRT Terminal | Classic green phosphor + scanlines |
| 🎮 Game Boy | Grey handheld, retro LCD green |
| 🍉 Watermelon | Fresh pink & green, seeded strip |
| 📄 Paper Desk | Clean paper & ink, desk binder |
Design mockups live in designs/.
🛠️ Development
git clone https://github.com/Twarga/Tidy
cd Tidy
./dev.sh # pretty launcher — GUI / TUI / daemon / shell
./dev.sh gui # straight to the desktop GUI
dev.sh bootstraps the venv (with --system-site-packages so PyGObject/webkit work for the GUI), installs the editable package + extras with a spinner, detects whether a display is available, and drops you into a menu:
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
tidy status
This repo ships a devcontainer — open it in GitHub Codespaces or VS Code for a secure, configured development environment with everything preinstalled.
Docs
| Doc | What's inside |
|---|---|
docs/CLI.md |
full tidy command reference |
docs/MCP.md |
MCP setup for Claude Desktop / Cursor / Cline |
docs/MANUAL_TEST.md |
manual QA checklist (theme, tray, catch-up, conflict…) |
CHANGELOG.md |
release history |
CONTRIBUTING.md |
setup, style, testing, releasing |
Testing
pytest # 105 tests — unit + integration against real git pairs
ruff check . # lint
ruff format . # format
Structure
Tidy/
├── src/tidy/ # the engine + CLI + GUI + MCP
├── designs/ # 5 pixel theme mockups
├── packaging/ # systemd units, AppImage build, PyInstaller spec
├── docs/ # CLI/MCP/manual-test reference
├── skills/ # pi skill (installed to ~/.agents/skills/tidy)
├── install.sh # one-command setup (laptop / --server)
├── pyproject.toml # package metadata (tidy, tidy-gui, tidy-mcp)
└── .devcontainer/ # Codespaces dev environment
📄 License
MIT © 2025 Twarga
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。