Use Visor
AI tools (MCP)
Visor can run an MCP server, so Claude Code, Codex, Cursor and other AI tools can read and manage supervisord through Visor, on this computer and on the servers you allow.
Ask your AI tool what’s failing in supervisor?, show me horizon’s last errors, which worker uses the most memory? or restart the queue workers on staging. It calls Visor’s tools, and Visor does the work with the same checks, backups and confirmations as its own buttons.
Turn it on
Open MCP server in the sidebar and turn on Enable MCP server. It’s off by default.


- Port: 4567 by default. Visor listens on
127.0.0.1only, never on your network, athttp://127.0.0.1:4567/mcp. - Access token: AI tools send it with every request. It’s kept in your Keychain (or keyring on Linux), never in a file, with Show, Copy and Regenerate… beside it.
- The badge beside the title says Running, or Off while the server is turned off. Port in use means another app has the port: choose another one. Not running means it couldn’t start for another reason.
Connect your AI tool
The Connecting card has the command or config for each tool, with your token filled in. Run it once. The commands below show <token> where yours goes.
Claude Code. Click Add to Claude Code (shown when Visor finds the claude command). It shows the command and runs it when you confirm. Or run it yourself:
claude mcp add --scope user --transport http visor http://127.0.0.1:4567/mcp --header "Authorization: Bearer <token>"Codex. Put the token in a variable, then add the server:
export VISOR_TOKEN=<token>
codex mcp add visor --url http://127.0.0.1:4567/mcp --bearer-token-env-var VISOR_TOKENOr add these lines to ~/.codex/config.toml:
[mcp_servers.visor]
url = "http://127.0.0.1:4567/mcp"
http_headers = { Authorization = "Bearer <token>" }Cursor, VS Code and other tools. Use the JSON:
{
"mcpServers": {
"visor": {
"url": "http://127.0.0.1:4567/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}After a new token. Regenerate… disconnects every AI tool that uses the old token. In Claude Code, click Add to Claude Code again: it replaces the old entry. To do it by hand, run claude mcp remove --scope user visor, then the add command above. For other tools, copy the new command or config from the Connecting card. Then start a new session, or reconnect (in Claude Code, /mcp).
Access per machine
The Access card lists this computer and every saved server, each with a level:
| Level | What AI tools may do there |
|---|---|
| Off | Nothing. The machine is invisible to AI tools. |
| Read | Status, processes, CPU and memory, logs, issues, activity, configs, checks and Doctor. |
| Control | Read, plus start, stop, restart, signals and applying changes. |
| Change configs | Control, plus saving, creating, removing and restoring configs. |
- This computer starts at Control. Servers start at Off.
- Ask in Visor before changes, per machine, makes Visor ask you before each change.
- Production servers always ask, and the switch can’t be turned off for them. Read only servers go no higher than Read.
- A server whose tab isn’t open opens as a tab when an AI tool needs it and its access allows. A server that needs a password or a host key from you opens only from Visor, the first time.
When Visor asks you
When a change needs your answer, Visor comes forward with the question, such as Claude Code wants to restart mailer-worker:mailer-worker_00 on This Mac.


- Choose Deny, Allow for 10 minutes or Allow.
- It appears in the main window, or in the menu-bar popover when the window is closed. A notification points to it, and Esc denies.
- If nobody answers within a minute, Visor says no. The AI tool is told The person declined in Visor.
- Allow for 10 minutes covers that one AI tool, that machine and that kind of change. It isn’t offered on production servers or for KILL, which always ask. Visor knows a tool by the name the tool gives itself, so any tool with the token can claim that name.
Tools
Visor has 26 tools in three levels. Available tools on the MCP server page lists them all.
- Read (17 tools): the list of servers, status and the machine’s CPU cores and memory, processes, one process in depth, CPU and memory, logs (paged, or errors only with their stack traces), log search, supervisord’s log, issues, activity, configs, reading a config, Visor’s explanation and checks, what applying would do, drafting a program from a template, backups, and Doctor or the server report.
- Control (5 tools): start, stop and restart a process, a group or a config file’s processes, send a signal, and apply changes.
- Change configs (4 tools): save, create, remove and restore configs, checked and backed up as in Visor.
Logs, log search and supervisord’s log stop at 64 KB per reply. A search cut short says how many matches it left out.
Every tool takes an optional server, a server’s name or its id from list_servers. Leaving it out means this computer.
What AI tools never get
supervisord.confitself. Only program configs in the include folder can change.- Stop all and Restart all, restarting or shutting down supervisord, and clearing logs.
- Passwords, Visor’s settings, and adding or editing servers.
Security and privacy
- Local only. The server listens on
127.0.0.1. Requests without the token are refused, and so is any request with anOriginheader. That shuts out web pages, including browser-based AI tools. - The token is read from your Keychain or keyring only once you use MCP. Regenerate… cuts off every tool that has the old one.
- Rate limits. A runaway agent is held to one change per second per machine and 30 calls per 10 seconds. An allowed change waits out the gap instead of failing.
- Environment values are hidden. Values in
environment=lines, commented ones too, show as «hidden» unless you turn on Let AI read environment values under Privacy. When an AI tool saves a file, the lines it left as it read them keep their real values. A hidden line it changed is refused. - What leaves your computer. Logs and configs an AI tool reads are sent to your AI provider. Visor can’t filter secrets out of logs. Set machines whose logs you don’t want shared to Off.
- What an AI tool reads is untrusted. A log line or a config on a server can hold text written to steer an AI tool. The tool can then act on another machine, within that machine’s access. Give Control or Change configs only where you’d accept that, and keep Ask in Visor before changes on.
- Shared computers. Other user accounts on the same computer can see the token while Add to Claude Code runs, and another account could take the port while Visor is off. On a computer you share with people you don’t trust, add the tool by hand, and Regenerate… if in doubt.
- A record. Recent calls lists the last 100 calls since Visor started: client, tool, machine and result. Changes show in Activity as via Claude Code (or the tool’s name) and don’t send notifications.
Troubleshooting
- Port in use. Another app has the port. Pick another one on the MCP server page, then run the command for your AI tool again.
- 401 or “unauthorized”. The token changed. See After a new token above.
- The tool can’t see a server. Set its access above Off (see Remote servers to add one), and open its tab once in Visor if it needs a password or a host key.
- The person declined in Visor. You chose Deny, or nobody answered within a minute.
The text is under CC BY 4.0: reuse it with credit to Touhidur Rahman and a link to this page. The code examples are free to copy.