A small native macOS app for the thing you do before writing any code: starting
npm run dev in one folder, php artisan serve and a queue worker in another —
and then remembering which of them is still up.
macOS 14+ · Apple silicon & Intel · Swift and SwiftUI, no dependencies · needs tmux
Everything here exists because the alternative was four terminal tabs and a guess.
Every service is a tmux session. Quit Harbor and your dev server keeps serving; open it again and it is adopted, not started twice. An update never touches them.
You never type a port into Harbor. It walks the pane's process tree and asks lsof what is
actually listening — so :3000 on a row means something really is on 3000.
For what pattern matching cannot see — a monorepo, a PM2 config, a socket server, a cron process — Claude reads the project and proposes its services, naming the file each came from. You tick the ones you want.
A column of project chips on the right edge of the screen, above every app and on every Space. Hover for the services, press play without losing focus in your editor.
A service that exits keeps its output and exit code. If the port was taken, the row names the process holding it and offers to kill it — optionally restarting itself three times first.
From anywhere: type a project or service name, Enter starts or stops it. The same list lives in the menu bar, under a buoy that fills in while something is running.
Harbor is an MCP server as well as an app, so Claude Code stops guessing about dev servers.
claude mcp add --scope user harbor -- /Applications/Harbor.app/Contents/MacOS/Harbor mcp
list_services answers with status, port and URL for the project the agent is working in —
so it never starts a second copy of a server you already have up.
start_service brings one registered service up and waits until it listens or fails, then
hands back the port and the last lines of output. read_logs reads the pane itself.
No command of its own, no editing your services, no freeing a port, no killing a pid. An unknown service is a refusal that tells it to ask you.
A service an agent started carries an agent badge in the window and in the strip — and it keeps running after the agent's session ends, like everything else here.
Three decisions the whole app rests on.
Named from a stable hash of the project path, so the same folder maps to the same session on every launch. That is how Harbor finds services it did not start in this run instead of starting a second copy of your dev server.
Every two seconds: one list-panes for liveness and exit codes, one ps for the
process tree, one lsof for the ports. Nothing is drawn again unless the value moved.
Give a service a health path and the dot turns green only when the URL responds — not when the port opens. While a framework is still booting, yellow is the truth.
# a service, really tmux -S /tmp/harbor-501.sock new-session -d -s hb-3b92hjqj-5de35ab8 \ 'cd backend && npm run dev' # what Magic answers, in 20 seconds backend npm run dev dir note-app-backend health /health client npm run dev dir note-app-client note the backend needs MySQL and Redis, migrations via npm run migrate note all four Nuxt apps default to port 3000, so they collide if started together
Clone and run one script. It installs tmux with Homebrew if you do not have it.
git clone https://github.com/erenbekman/harbor.git cd harbor ./install.sh