troll-0.3.2 is not a library.

troll
The port manager for one machine: permanent claims, expiring leases, and a live view of who listens where. One Rust binary providing the CLI, local HTTP API, embedded three-screen web console, and MCP stdio server across Linux, macOS, and Windows.
Install
Prebuilt archives (x86_64-linux, aarch64-macos, x86_64-macos, x86_64-windows + SHA256SUMS.txt) are also published on GitHub Releases.
Quick start
Four surfaces, one locked registry
- Command line (
troll ...): manage claims, leases, named[pools], apps, red zones, 30-day removalhistory(with atomic restore), drift inspection,explain, anddoctor. Add--jsonfor machine output or--llm-guidefor agent instructions. - Web console (
troll serve): local loopback HTTP API and embedded three-screen browser console (Console, Apps, History) with six themes, passive service detection, and one-click copy/restore actions. - MCP server (
troll mcp): Model Context Protocol server over stdio for coding agents (troll setup claude/troll setup codex). - Background service (
troll setup service): writes a systemd user unit on Linux, alaunchduser agent plist on macOS, or a Task Scheduler XML definition on Windows.

Guarantees
- Never kills arbitrary processes: sweeps remove only reclaimable leases from
registry.tomland leave running processes alone (the sole documented signal exception istroll withforwarding a received stop signal unchanged to its own child). - Safe locked writes: file-locked atomic updates with a backup copy on every change.
- Loopback only:
troll servebinds127.0.0.1, enforces an exactHostallowlist, and requires a session token and matchingOriginfor mutations. - Zero
unsafecode across the workspace.
Workspace crates
This binary crate is built on two companion library crates:
troll(this crate) — CLI,troll serveHTTP API + embedded web console,troll mcpstdio server, setup wizard, and OS service installers.troll-core— platform-free registry model, file-locked atomic store, claims, leases, pools, red zones, 30-day history, drift, and sweep engine.troll-probe— read-only OS listener, ephemeral/excluded range, process liveness, and owner-classification probe for Linux, macOS, and Windows.
Documentation
- GitHub repository & full illustrated README
- Command-line guide
- Console guide
- JSON, HTTP & MCP reference
- Runbook
- Architecture
Licence
MIT — see LICENSE.