case file 05Author
getit
File-host downloader with a terminal UI, a scripting CLI and an MCP server so AI agents can drive it.
- Role
- Author
- Stack
- 5 components
- Status
- Packaged for PyPI and Homebrew; used personally
§ 01
The problem
Each file host has its own flow: guest tokens and rate limits, wait times, captchas, passwords, client-side encryption. getit puts seven hosts behind one command, a terminal UI and an MCP server, so a person or an AI agent can run the queue.
§ 02
The build
One command downloads from GoFile, PixelDrain, MediaFire, 1Fichier, UploadFlix, Mega.nz and Anonfile.de, with a dashboard-style TUI for queue management.
result
Published on PyPI as getit-cli with a Homebrew tap. A personal-use tool; no adoption claims.
§ 03
What it does
- 01
Concurrent downloads with smart resume, speed limits and recursive folder support.
- 02
Client-side Mega.nz AES-CTR decryption; MD5/SHA256 integrity checks.
- 03
Built-in MCP server: agents can list remote folders, start, poll and cancel downloads.
- 04
Async engine, SQLite-backed task registry and an event bus for progress streaming.
§ 04
Run getit
A working replica of the real interface, on made-up sample data
§ 05
Architecture
Drawn from the project's own documentation
§ 06
Engineering decisions
- D-01
Put one DownloadService facade behind the CLI, the TUI and the MCP server, so all three get identical behaviour.
- D-02
Make hosts self-registering extractors: adding one is a single file and a decorator, and the registry routes URLs to it.
- D-03
Publish progress through an event bus (progress, complete, error), so progress bars and MCP resource updates share one source instead of being wired to one UI.
- D-04
Limit concurrency with a semaphore in the manager, and keep resumable streaming, decryption and checksum validation in the downloader.
- D-05
Persist tasks in SQLite so MCP tools can poll status and cancel; the changelog notes WAL mode with a busy timeout.
- D-06
Read tokens from environment variables rather than config files; the changelog lists restrictive 600 permissions on config and history files and secret redaction in structured logs.
§ 07
Secured and shipped
- [pass]Credentials and tokens are read from environment variables rather than config files.
- [pass]Integrity verification of downloaded files; password-protected link handling.
- [pass]CI plus automated PR review configured on the repository.
§ 08
What's next
From the project's own roadmap
- [todo]A download-history view; the SQLite task registry was built to support it.
stack
Python / asyncio / Textual / SQLite / MCP
open channel
Have a problem shaped like this one?
Tell me what your team is stuck on and what you need built.