Fleetloom
# Fleetloom
Your AI assistant knows your code. Now it knows your servers.
**Website:** [fleetloom.theemate.com](https://fleetloom.theemate.com) · **Docs:** [how it works](https://fleetloom.theemate.com/docs/how-it-works/) · [all docs](https://fleetloom.theemate.com/docs/) · **Feedback:** [Discussions](https://github.com/Rouche01/fleetloom/discussions/1)
Fleetloom is an MCP server and CLI. Ask Cursor, Claude, or any MCP client where a service should run, and Fleetloom checks your real hosts over SSH and answers with a named host and the reasons — or tells you that you need another machine. It also works on its own from the terminal. **AI explains. Fleetloom calculates:** the model never picks the host; recommendations come from deterministic checks, and the model only puts them into words.
**Requirements:** hosts you can reach with local `ssh`, ideally running Docker (for container inventory/stats). **Tailscale is optional** — great for access + `discover`, but not required for `status` / `place`.
**Safety:** remote access is **read-only** (probe commands over `ssh`; nothing installed or uploaded). Details: [safety](https://fleetloom.theemate.com/docs/safety/).
### Demo
`fleetloom status` → ask Cursor where to deploy a real project (TokenLedger) → deterministic placement on the fleet:
<video src="site/public/assets/demo/demo.mp4" controls poster="site/public/assets/demo/demo-poster.jpg" width="720"></video>
[Watch the demo](site/public/assets/demo/demo.mp4) · [stills](site/public/assets/demo/)
## Stack
- **Core / CLI:** Go (`cmd/fleetloom`, `internal/…`)
- **MCP server:** thin TypeScript wrapper (`@fleetloom/mcp`) around the Go CLI’s `--json` output — works in Cursor, Claude Desktop/Code, VS Code, Windsurf, and other MCP clients
- Placement stays **deterministic**; natural-language intent may later fill a structured `WorkloadRequest`, but never picks the host
## Status
Go core + CLI + MCP adapter (`@fleetloom/mcp` on npm) are in place. Packaging: GitHub Releases, Homebrew, and npx. Site: [fleetloom.theemate.com](https://fleetloom.theemate.com). See [install](https://fleetloom.theemate.com/docs/install/) and [MCP](https://fleetloom.theemate.com/docs/mcp/). Maintainer release checklist: [docs/release.md](docs/release.md).
## Install
Full options (Homebrew, Release binary, `go install`): [install docs](https://fleetloom.theemate.com/docs/install/).
```bash
brew install --cask Rouche01/fleetloom/fleetloom
fleetloom status --demo # bundled sample fleet, no SSH
fleetloom init # ~/.config/fleetloom/servers.json — edit your hosts
fleetloom status # needs working SSH to inventory hosts
```
### MCP server
Works with any MCP client. Fastest path in Cursor:
1. Install the CLI (above) and ensure `fleetloom` is on your `PATH`
2. Click **Add to Cursor**:
[](cursor://anysphere.cursor-deeplink/mcp/install?name=fleetloom&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBmbGVldGxvb20vbWNwQDAuMi42Il0sImVudiI6eyJGTEVFVExPT01fQklOIjoiZmxlZXRsb29tIiwiRkxFRVRMT09NX0lOVkVOVE9SWSI6In4vLmNvbmZpZy9mbGVldGxvb20vc2VydmVycy5qc29uIn19)
Claude Desktop, Claude Code, VS Code, Windsurf, and troubleshooting (`spawn npx ENOENT`): [MCP docs](https://fleetloom.theemate.com/docs/mcp/).
## Quick start
```bash
fleetloom init
# edit ~/.config/fleetloom/servers.json
fleetloom status
fleetloom status --json
fleetloom place \
--name batch-worker \
--tag cpu-heavy --tag internal-only \
--min-ram-mb 2048 --min-disk-gb 20
fleetloom list-servers
fleetloom list-servers --live --json
# Optional: draft inventory from Tailscale (review before adopting)
fleetloom discover
fleetloom discover --write discovered.servers.json
```
From a repo checkout (dev):
```bash
go test ./...
go run ./cmd/fleetloom version
go run ./cmd/fleetloom init
go run ./cmd/fleetloom status -i servers.json
```
## Server inventory
Fleetloom reads a typed JSON inventory of SSH hosts (`servers.json`).
Full field-by-field guide: [inventory](https://fleetloom.theemate.com/docs/inventory/).
## Interfaces
- **CLI:** `fleetloom status`, `fleetloom place`, `fleetloom list-servers`, `discover`, `init` — [install](https://fleetloom.theemate.com/docs/install/)
- **MCP:** `npx -y @fleetloom/mcp@0.2.6` → status/place/doctor/maintenance/headroom/rebalance/advise-deploy and more — [MCP docs](https://fleetloom.theemate.com/docs/mcp/)
## Design principles
- Central controller over SSH first (no agent on every host yet); Tailscale optional
- Read-only remote probes — see [safety](https://fleetloom.theemate.com/docs/safety/)
- Deterministic capacity/placement rules first; optional natural-language inference only at the edge
- Thin product: do not reinvent Beszel/Netdata
- Shared vocabulary: host, workload, drift, and related concepts are named in the [data model](https://fleetloom.theemate.com/docs/data-model/) (Go types remain the source of truth); JSON Schema + optional JSON-LD context in [`schemas/`](schemas/)
TDQS
Scored across 12 tools
Most tools have distinct resource/action roles: place_service vs place_workloads, find_service, advise_deploy, and suggest_rebalance are well separated. The main ambiguity is among several read-only host-reporting tools (fleet_status, fleet_headroom, explain_host, compare_hosts, fleet_doctor), whose boundaries depend on reading the descriptions.
All names use snake_case and are readable, but conventions are mixed: most action tools use verb_noun (place_service, find_service, list_servers), while reporting tools use fleet_noun (fleet_status, fleet_headroom, fleet_maintenance, fleet_doctor). This is consistent within groups but not a single predictable pattern.
Twelve tools is well within a reasonable range for a fleet placement/advisory server, and each appears to cover a distinct planning, discovery, diagnosis, or reporting responsibility. The count does not feel padded or thin.
The advisory surface is broad—placement, discovery, host comparison, diagnostics, maintenance, headroom, rebalance suggestion, and deploy brief—but there is no tool to execute deployment, apply a move, or write the referenced Compose/proxy files. For actual fleet changes, agents hit a manual dead end; for read-only planning, coverage is reasonably complete.