ELTIGA.

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

  1. 01

    Concurrent downloads with smart resume, speed limits and recursive folder support.

  2. 02

    Client-side Mega.nz AES-CTR decryption; MD5/SHA256 integrity checks.

  3. 03

    Built-in MCP server: agents can list remote folders, start, poll and cancel downloads.

  4. 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

getit architectureThree rows. First, the download path: the CLI, the TUI or the MCP server call one DownloadService, which hands the URL to an async DownloadManager; the extractor registry routes the URL to a host extractor, and the FileDownloader streams, resumes, decrypts and verifies the file. Second, state and progress: a SQLite task registry stores task state, an event bus publishes progress, completion and error events, and the CLI progress bars, the TUI and the MCP resource subscribe. Third, the MCP surface: an agent calls the download, list_files, get_download_status and cancel_download tools, which go through the same DownloadService, and can watch a live active-downloads resource.Download path · URL in, file outCLI, TUI or MCPsame call into one serviceDownload Servicefacade; records the taskManagerasync; semaphore limits concurrencyExtractorregistry routes the URL to a hostextractorDownloaderstreams, resumes, decrypts, checksumsState and progressTask registrySQLite; task metadata and progressEvent busdownload_progress, download_complete,download_errorSubscribersCLI progress bars, TUI, MCP resourceupdatesMCP server · for AI agentsAgentClaude Desktop, Cursor, WindsurfMCP toolsdownload, list_files,get_download_status, cancel_downloadDownload Servicesame path as the CLI and TUILive queueactive-downloads://list
Mechanism: three interfaces share one service, hosts plug in as self-registering extractors, and progress flows through an event bus rather than being wired to any one UI.

§ 06

Engineering decisions

  1. D-01

    Put one DownloadService facade behind the CLI, the TUI and the MCP server, so all three get identical behaviour.

  2. D-02

    Make hosts self-registering extractors: adding one is a single file and a decorator, and the registry routes URLs to it.

  3. 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.

  4. D-04

    Limit concurrency with a semaphore in the manager, and keep resumable streaming, decryption and checksum validation in the downloader.

  5. D-05

    Persist tasks in SQLite so MCP tools can poll status and cancel; the changelog notes WAL mode with a busy timeout.

  6. 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.