Portroom

AIコーディングエージェントからMacのローカル開発サーバーを操作できます。プロジェクトとポートの一覧表示、サーバーの起動・停止・再起動、ログやスタックトレース付きの現在のエラーの確認が可能です。Portroomアプリに組み込まれており、14日間のトライアル付きのPro機能です。

ドキュメント

Agent sessionMCP · portroom

›The rooms page on harbor-hotel shows a server error. Fix it.

portroom · project_errors("harbor-hotel")

GET /rooms-alt/data/rooms-all.json → 500, 2 times

OSError: rooms-all.json is not valid JSON

at loadRooms (./server/rooms.py:41)

A trailing comma in data/rooms-all.json breaks the JSON.

±Edited data/rooms-all.json, line 212

portroom · restart_project("harbor-hotel")

Running on 8769 · https://harbor-hotel.localhost

Fixed. /rooms loads again, and the log has no new errors.

A made-up session. The portroom calls are Portroom’s real tools; the file edit is the agent’s own.

  • One command to connect The same program for every tool: portroom mcp, inside Portroom.app.
  • You see what it does MCP lights up in the top bar while an agent is connected, with its last call.
  • MCP can’t change what runs Through MCP, folders, start commands and variables stay yours to change.

The agent asks. Portroom does it, and answers.

The Model Context Protocol lets an agent call tools on your Mac. Portroom’s tools are the things you’d do in its window: list, start, stop, read the errors.

  1. 01Your agentRuns portroom mcp when it starts, as a small helper program on your Mac. Nothing to keep running yourself.
  2. 02portroom mcpPasses each call to the Portroom app over a local socket. Read-only calls work even while the app is closed.
  3. 03PortroomStarts, stops and reads servers exactly as its own window does, so you and the agent always see the same state.

No server in the cloud and no account: the agent and Portroom talk on this Mac. What the agent then does with a log is up to the agent and its settings.

Setup

Connect youragent in one line.

Every tool runs the same server, portroom mcp inside Portroom.app. Only the way to add it differs. Settings ▸ MCP in the app has these commands with a copy button.

Run this once in Terminal.

claude mcp add portroom --scope user -- /Applications/Portroom.app/Contents/Resources/portroom mcp

Who’s connected

While an agent is connected, MCP lights up in Portroom’s top bar. Settings ▸ MCP names the agent and its last call, and turns MCP off.

Works with the agent you use

  • Claude Code
  • Cursor
  • VS Code Copilot
  • Windsurf
  • Zed
  • Codex
  • Gemini CLI
  • Cline
  • JetBrains AI

Any tool that can run a local MCP server connects the same way.

Names and logos belong to their owners and only show what Portroom works with.

What an agent can call.

Nine tools, in six kinds. Each answers the way you’d read the window: the status, the port, the reason.

list_projects · project_status

Every project with its status, port and URLs, running or not. One project with its PID and last error.

start_project · stop_project · restart_project

Starts a server and waits until it listens, or says why it didn’t: a taken port, a missing tool, a crash.

project_errors

The run’s errors picked out of the log, with stack traces, 5xx responses and why it crashed.

project_logs

The last lines of a project’s log, up to 1000 of them, for anything the errors don’t explain.

add_project

Adds a project folder. Portroom picks the start command, as New project does, not the agent.

update_project

Renames a project, gives it a new slug or edits its notes. Not its folder, command or variables.

Boundaries

Through MCP, an agent starts and stops your servers.

What a project runs is decided by its folder, its start command and its variables. Those stay yours: through MCP an agent can start and stop a project, but not change what starting it does. These are the MCP tools’ limits. An agent you let run Terminal commands can also run the portroom command line, which can, like anything else you allow it in Terminal.

Through MCP

An agent can

  • List projects, their ports and URLs
  • Start, stop and restart them
  • Read the errors and the log
  • Add a folder; Portroom picks the command
  • Rename a project, edit its notes

Through MCP

It can’t

  • Change a folder, command or variables
  • Choose the start command
  • Remove a project
  • Kill a stray process, or whatever holds a port
  • Read a log outside Portroom’s folder

What a server prints reaches the agent marked as the server’s output, not as instructions. A project an agent added says so in its log and in a message in the window. Turn MCP off in Settings ▸ MCP, and every call gets an error instead.

What to ask it.

Ask in plain language. The agent picks the tools; you see each call in its session.

  • Why does harbor-hotel return 500 on /checkout?
    1. project_errors The stack trace and the failing requests. The agent reads the code and fixes it.
  • Start the shop and the API, then open the shop.
    1. start_project 2. start_project 3. list_projects Each start waits for its port; the pretty URL comes from the list.
  • I changed the env. Restart ledgerly and check it.
    1. restart_project 2. project_status Running, or the reason it isn’t.
  • Add the project in ~/Developer/atlas-docs.
    1. add_project Portroom picks the command, and the window says the agent added it.
  • What’s running right now, and on which ports?
    1. list_projects Every project with its status, its port and its URLs.
  • Blank page, no errors. What does the server say?
    1. project_errors 2. project_logs No errors this run, so it reads the last lines of the log.
  • Stop everything but the API, I need the memory.
    1. list_projects 2. stop_project It stops the others one by one. A stray server it can’t touch.
  • Rename summit-roofing, and note it needs Node 20.
    1. update_project A new name and a note. Its command stays as it was.

The same from Terminal or a script.

The portroom command lives inside the app. It asks the running app, so the window and the terminal always agree.

$ portroom list

Every project and whether it runs

$ portroom status <slug>

One project as JSON: port, URLs, PID, last error

$ portroom start <slug>

Starts it and waits until it listens

$ portroom stop <slug>

Stops it, even while it’s still starting

$ portroom restart <slug>

Stops it and starts it again

$ portroom logs <slug> -n 50

The last lines of its log

$ portroom add <slug> <name> <folder> [cmd]

Adds a project; {port} in the command becomes its port

$ portroom edit <slug> --name …

Changes name, slug, notes, folder or command

$ portroom json

Everything as JSON, for scripts

Type just portroom

Link it into your PATH once. The setup offers to do it for you; uninstalling takes the link back.

ln -s /Applications/Portroom.app/Contents/Resources/portroom /opt/homebrew/bin/portroom

start, stop, restart, add and edit open Portroom in the background if it’s closed. list, json and status only look.

Settings ▸ MCP: the server switch, who’s connected and their last call, and the commands to connect each tool.

Settings ▸ MCP: the switch, who’s connected and their last call, and the command for each tool.

Let your agent run the servers.

MCP and the command line are in Pro: 14 days to try, then $49 once.