Phosphor

io.github.Kirusshenkin由 GitHub 帳號 Kirusshenkin 發布v0.3.0更新於 Oct 24, 2026

Hosts, metrics, Docker and authorized_keys over a macOS terminal's live SSH connections

概覽

AI 產生的概覽

Phosphor 的 MCP 元件讓助理透過 macOS 應用程式既有的 SSH 連線列出主機、讀取伺服器指標、檢視 Docker 容器與日誌,並在授權範圍內執行指令。

可以做什麼
  • 主機管理:列出已設定的 SSH 主機,並在人工確認後新增、修改或移除主機項目。
  • 讀取伺服器狀態:依 /proc 快照取得每核負載、記憶體、磁碟、網路以及各容器的 CPU 與記憶體。
  • 檢視 Docker:列出容器,查看統計、掛載、環境變數,並依 tail 與篩選條件追蹤日誌。
  • 執行操作:在使用者已授權的模式下執行指令、重新啟動容器。
  • 管理 authorized_keys:讀取與編輯金鑰項目,指紋在本機計算,寫入為原子操作。
適用情境
適合已在 Mac 上執行 Phosphor、想讓助理檢查伺服器健康狀態、查看容器日誌或在自有主機上做有限操作的情境,不必把 SSH 金鑰或原始 shell 交給模型。以唯讀監控為主,寫入權限需依主機個別開啟。
執行需求
僅限 macOS。需安裝並執行 Phosphor 應用程式,並在應用程式內依工作階段以 Touch ID 授予 MCP 存取權。用戶端需註冊隨應用程式附帶的 phosphor-mcp stdio 元件,它透過使用者家目錄下的 Unix socket 與應用程式通訊,本身不攜帶憑證。每台主機預設停用,需設為唯讀、確認或完整模式。
安裝前請注意
當主機設為確認或完整模式時,可執行指令、重新啟動容器並編輯 authorized_keys;所有主機預設停用,應授予最小權限,正式環境伺服器建議保持唯讀。主機清單的修改一律需要人工確認。遭入侵的伺服器可在模型讀取的日誌行中注入內容。應用程式為臨時簽章,安裝時會出現 macOS 隔離警告,請驗證發行檔的雜湊值。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Phosphor,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Phosphor

A macOS terminal that also runs your servers.

Shell, Docker, metrics, keys and files — over one SSH connection per host. Unlocked with your fingerprint. Green on black, because that is how it should look.

SSH client · Docker manager · server monitor · SFTP · authorized_keys editor · MCP server for Claude Code and Claude Desktop · macOS 26 · Swift 6 · MIT

[Terminal]


The problem

You keep four windows open to do one job. A terminal for the shell. A second terminal for docker logs -f. A third for htop. A browser tab for whatever dashboard someone installed on the box. Each of them logs in separately, each one asks for the key passphrase again, and none of them knows what the others are looking at.

Phosphor opens one SSH connection per host and multiplexes everything through it — the interactive shell, container logs, docker commands, /proc snapshots, SFTP transfers, port forwards. One login. One tunnel through your proxy. One place where the state lives.

And because that state is already in the app, it also exposes an MCP server: Claude Code and Claude Desktop can use your servers through your connections, your keys and your access policy — with every call written to an audit log.


What it does

Docker, without leaving the terminal

[Docker]

The container list is a sidebar, not a separate app. Inspect, stats, mounts, environment and live logs with --tail and a filter, streamed over the SSH connection you already have. Environment values whose name looks like a secret (PASS, KEY, TOKEN, SECRET) are masked in the UI and never copied into the audit log.

No Docker Engine API to expose, no socket to tunnel: it shells out to docker with JSON output, which works on every box where Docker already runs.

Metrics that cost one channel

[Metrics]

Per-core load, memory with the cache broken out, disks, network, and per container CPU and memory — from /proc snapshots taken over a single long-lived channel. No agent to install on the server, no swarm of exec channels. Polling stops when the window is hidden, and every buffer has a ceiling.

Hosts, groups and tags

[Hosts]

One group per host, as many tags as you like. The group carries the settings — how to reach it, which key, which theme, what MCP is allowed to do — and tags are just for finding things. Import ~/.ssh/config and keep going.

Unlock with a fingerprint

[Touch ID]

Phosphor has no account and no password of its own. There is a profile on this Mac, and your fingerprint opens it. Passwords, passphrases and TOTP seeds live in the Keychain behind biometrics; keys can live in the Secure Enclave, where they cannot be copied off the machine at all. Risky actions ask again.

A new server, set up by a recipe

[Provisioning]

Connect to a fresh box and Phosphor probes it: what is installed, what is listening, whether anyone has been here before. If it is empty, it offers a recipe — packages and unattended upgrades, Docker with log size caps, nginx, certbot, a firewall that only opens 22/80/443, and finally disabling password login. Every step is idempotent, every step shows the exact commands, and the lockout guard means password login is closed only after a second key-based connection has proved it works.

Keys you can actually see

[Keys]

authorized_keys as a table instead of a text file: fingerprints computed locally, weak RSA flagged, options shown, disabled entries kept as comments. The key you are currently connected with cannot be removed without an explicit confirmation, writes are atomic, and a backup stays on the server.

Files on both sides

[SFTP]

Two panes, drag between them or in from Finder. Same SSH connection, same proxy. A dropped transfer resumes where it stopped.

Make it yours

[Theme]

Themes are plain JSON in themes/ — keep them in git, trade them with people, import .itermcolors, alacritty and base16. Palette, font, ligatures, line height, background image, scanlines, glow, vignette, window opacity. Bind a theme to a group so production is unmistakably red.

And there is a cat in the corner. Or a sugar glider. It sleeps while the app is locked, it never covers your output, and one switch turns it off forever.


Give an agent your servers without giving it your keys

Phosphor is also a Model Context Protocol server. Register one command and Claude Code, Claude Desktop, Cursor or any other MCP client can list your hosts, read metrics, inspect containers, follow logs and — when you allow it — run commands, restart containers, manage authorized_keys, and add, change or remove hosts in your own list. Anything that edits the list asks you first, in every mode.

The difference from handing a model a shell: the app holds the connection, the agent holds nothing.

Shell tool with raw sshCredentials in an MCP configPhosphor
Where the key liveson disk, agent-readableon disk, agent-readableKeychain / Secure Enclave, behind Touch ID
What is reachableeverythingeverythingonly hosts you enabled, in the mode you set
rm -rf /runsrunsrefused by a deny-list that overrides every mode
Human in the loopnonenoneper-write confirmation, grants expire in 15 min
Trail afterwardsshell history, maybenonean audit log with no writing tool
Secrets in outputwhatever is on screenwhatever is on screenmasked before the model sees them
Runaway loopunboundedunboundedrate-limited writes
sh
claude mcp add phosphor /Applications/Phosphor.app/Contents/MacOS/phosphor-mcp

In the MCP registry it is io.github.Kirusshenkin/phosphor; every release also ships a .mcpb bundle with a published SHA-256 for clients that install that way.

Thirteen tools, seven of them read-only. Every host starts disabled — nothing is reachable until you choose read-only, confirm or full for it, and production servers are meant to stay read-only. A compromised server can put anything it likes into a log line the model reads; it still cannot grant itself a mode, get past the deny-list, or erase the record of trying.

Full details: docs/MCP.md — tool catalogue, policy, audit, and the exact error the agent gets when the app is closed, locked or refusing.

Principles

No integrations. The only network traffic the app makes is SSH to your own servers and the update feed. No telemetry, no accounts, no third-party services, nothing phoning home.

Secrets stay secret. Never in a log line, a crash report, an MCP audit entry or an error message. Terminal scrollback is not written to disk by default.

Errors tell you what to do. "Could not connect" is a bug. "The proxy at 127.0.0.1:10808 is not answering — is V2Box running?" is an error message. The app distinguishes a dead proxy from an unreachable server from a refused credential, because otherwise diagnosis is guesswork.

It stays fast because it is open all day. Bytes from the network are batched into ~16 ms windows before they reach the emulator, the draw path allocates nothing, every buffer is bounded, polling stops when the window is not visible, and animations only ever touch transform and opacity.

Strict Swift 6 concurrency, in every target, with no escape hatches. Network, parsing and disk work live in actors; only view models are on the main actor.

Two languages. English and Russian, both through a String Catalog. Not one hardcoded interface string — a linter checks.


Status

Builds, runs, 179 tests green. Eleven screens: lock, hosts, terminal with persistent sessions, files, Docker, monitor, keys, provisioning, AI activity and settings. Interface in Russian and English.

What works against a real server: SSH over one multiplexed connection per host, container listing with actions and streaming logs, /proc metrics, reading and editing authorized_keys, provisioning recipes, both file panes, and an interactive shell that rides the same socket.

MCP works end to end: an phosphor-mcp shim ships inside the bundle, speaks JSON-RPC over stdio and proxies to a local socket the app owns. Every host starts disabled, writes need a decision from a person, a deny-list overrides every mode, and the audit log has no writing tool — the model can act but cannot erase its trail.

Hosts import from ~/.ssh/config, from known_hosts and from a Termius vault, whose plaintext dump is deleted once the hosts are inside the encrypted profile.

What is not built yet: the native Citadel transport (the process-based one is tested and works), the pet in the corner, and in-app updates through Sparkle.

Idle CPU is zero — no timers, polling pauses when the window is in the background.

Install

sh
curl -fsSL https://github.com/Kirusshenkin/terminalOs/releases/latest/download/Phosphor.zip -o Phosphor.zipunzip -q Phosphor.zip -d /Applicationsxattr -dr com.apple.quarantine /Applications/Phosphor.app

Or download Phosphor.zip from the release page and drag the app into Applications.

macOS will warn you the first time. The app is ad-hoc signed — there is no Apple Developer certificate behind it — so everything downloaded from the internet lands in quarantine. This is not damage:

  1. Double-click the app, dismiss the warning.
  2. System Settings → Privacy & Security → scroll down → Open Anyway.
  3. Confirm. It never asks again.

The xattr command above does the same thing in one step.

Every release ships SHA256SUMS.txt; verify with shasum -a 256 -c SHA256SUMS.txt.

There is no in-app updater yet — check the releases page. The version you are running is in the About panel.

Getting started

A guided walkthrough of the first run: docs/GUIDE.ru.md (Russian), docs/GUIDE.en.md (English).

For AI agents

Each release carries latest.json, so nothing has to be scraped:

sh
curl -fsSL https://github.com/Kirusshenkin/terminalOs/releases/latest/download/latest.json
json
{  "version": "0.1.0",  "url": "https://github.com/.../Phosphor-0.1.0.zip",  "sha256": "…",  "mcp": { "command": "/Applications/Phosphor.app/Contents/MacOS/phosphor-mcp",           "transport": "stdio" }}

The bundle contains an MCP stdio shim. Register it and Phosphor exposes its tools:

json
{  "mcpServers": {    "phosphor": {      "command": "/Applications/Phosphor.app/Contents/MacOS/phosphor-mcp"    }  }}

The shim talks to the running app over a Unix socket in the user's home directory; it carries no credentials of its own. If the app is closed or locked it says so and every tool call fails closed — MCP access is off by default and has to be granted in the app, per session, with a fingerprint.

Releasing

Tag and push:

sh
git tag v0.1.0 && git push origin v0.1.0

.github/workflows/release.yml runs the tests, then .github/scripts/package.sh — which is the same script used locally, so a release can always be reproduced on your own machine:

sh
MARKETING_VERSION=0.1.0 BUILD_NUMBER=1 ./.github/scripts/package.sh

It produces dist/Phosphor-<version>.zip, a copy named Phosphor.zip (only an exact filename works behind /releases/latest/download/), SHA256SUMS.txt and latest.json. The workflow unzips the archive again and runs codesign --verify on it before publishing: a bundle whose signature does not survive the round trip will not open on anyone's machine.

Build

Requires macOS 26+ and a Swift 6.3 toolchain.

sh
git clone https://github.com/Kirusshenkin/terminalOs.gitcd terminalOsswift buildswift test./.github/scripts/check.sh     # format, lint, build, tests — before every commitgit config core.hooksPath .github/hooks   # once: blocks commits with real addresses or keys

Layout

Sources/          PhosphorCore, VaultKit, HostsKit, SSHKit, DockerKit,                  MetricsKit, KeysKit, ThemeKit, ProvisionKit, PhosphorUIdesign/           UI artboards (.dc.html), one per screendocs/PLAN.md      The full architecture plan, in Russiandocs/images/      Screenshots rendered from the artboards

Contributing

The plan comes first — requirements land in docs/PLAN.md before any code. Conventions worth knowing before a pull request: code, names and commit messages in English; user-visible strings in both English and Russian through Strings, never hardcoded; strict Swift 6 concurrency in every target; no swallowed errors, and every message says what happened and what to do; no secrets in logs, errors or the audit; bounded buffers and nothing allocated in the draw path.

Security

Please report vulnerabilities privately — see SECURITY.md. The threat model is docs/PLAN.md §15.

License

MIT

來源:README.md,提交 4595d30

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v0.3.0最新Oct 8, 2026
  2. v0.2.3Oct 5, 2026
  3. v0.2.2Oct 4, 2026
  4. v0.1.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分