UTM Watch

io.github.DarrickBM由 GitHub 帳號 DarrickBM 發布v0.7.1更新於 Nov 12, 2026

Read-only history of UTM VMs on a Mac: CPU, memory, disk, network, ping, incidents (macOS only).

發布方自己的服務:watch.diy – DIY Store Finder

概覽

AI 產生的概覽

唯讀 MCP 伺服器,讓助理查詢 Mac 上 UTM 虛擬機的歷史紀錄,說明卡頓與資源使用情況。

可以做什麼
  • 找出異常事件,並依虛擬機彙總某段時間內發生什麼事
  • 查看某一時刻的全部紀錄,或某台虛擬機、Mac、網路的單一指標隨時間變化
  • 列出虛擬機啟動與停止、記憶體壓力、置換、CPU 上限、Wi-Fi 變化等事件
  • 讀取所有虛擬機、Mac 與網路的最新取樣
  • 列出叢集中的各台 Mac,並依名稱或 UUID 查詢任一台
適用情境
當有人反映某台虛擬機或遠端連線變慢,希望助理查閱歷史紀錄而不是憑空猜測時適用。也適合在執行 UTM 的 Mac 上查看目前虛擬機負載、磁碟用量與網路品質。
執行需求
需要 Apple 晶片的 Mac 並安裝 UTM Watch 應用程式;MCP 伺服器程式隨應用程式包提供,透過標準輸入輸出在本機執行。應用程式需要存取其他應用程式資料、控制 UTM 及本機網路等 macOS 權限。叢集查詢需要已加入的 hub。
安裝前請注意
對歷史資料唯讀,但應用程式會要求較廣的權限,包括存取其他應用程式的資料與控制 UTM,可能還需要完整磁碟存取權。叢集模式每十秒把本機歷史上傳到 hub,跨網路叢集使用需要 Tailscale 驗證金鑰。可在應用程式的 AI 診斷設定中關閉存取。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

UTM Watch: a VM monitor for UTM on Mac

See what each of your UTM virtual machines is doing, and find out why one was slow.


[Star this repo]

[macOS 14+]   [Apple silicon]   [MCP server]   [License: MIT]

Install · Features · AI diagnosis · Fleet · Terminal tool · How it works

[UTM Watch detail window with a pinned moment]

Why UTM Watch

UTM shows whether a VM is on or off. Activity Monitor shows two processes with the same name. Neither tells you which VM is eating the CPU, how close you are to running out of memory, or whether the lag your remote user felt came from the VM, the Mac, or the Wi-Fi. UTM Watch does.

QuestionUTMActivity MonitorUTM Watch
Which VM is using the CPU?NoProcess names onlyEvery VM by name
How full is each VM's disk?NoNoYes, read from the disk image
What happened at 3:12 pm?NoNoRecorded history you can scrub
Was it the VM, the Mac or the network?NoNoPing and link quality next to VM load

Features

  • Every VM by name, with CPU, memory, how full its disk is, network and ping, live in the menu bar.

  • A quick look without opening a window: hover the menu bar item for every VM and the Mac at a glance. Click it for the full window.

    [The menu bar item with its hover brief below]

  • Recorded history you can scrub back through, to see exactly what was happening at a past moment.

  • The whole connection path: ping to each VM, to your router and to the internet, plus Wi-Fi or Ethernet link quality, so you can tell a slow VM from a slow network.

  • Fleets: several Macs report to one hub, and one window shows every Mac and its VMs. Free, with no accounts.

  • AI diagnosis through a read-only MCP server: ask an agent such as Claude why a VM was slow, on this Mac or any Mac in the fleet, and it reads the history and tells you.

  • Works with both UTM backends: Apple Virtualization and QEMU, with macOS, Linux and Windows guests.

UTM Watch is an independent project. It is not affiliated with or endorsed by the UTM project.

Install

Requires an Apple silicon Mac. Built and tested on macOS 26; set to run on macOS 14 or later, but older versions are untested.

One command (recommended). Installs the menu bar app into /Applications and the utmwatch terminal tool, then starts the app:

bash
curl -fsSL https://raw.githubusercontent.com/DarrickBM/utm-watch/main/install.sh | bash

The script is short; read it first if you prefer: install.sh.

Or by hand. Download UTMWatch-<version>-macos-arm64.dmg from the latest release, open it, and drag UTM Watch into Applications. The app is not notarized by Apple, so the first time macOS will refuse to open it. Go to System Settings, then Privacy & Security, and click Open Anyway, or run this once:

bash
xattr -dr com.apple.quarantine /Applications/UTMWatch.app

First launch. macOS asks for three permissions: access to data from other apps (UTM's VM files), control of UTM, and the local network (pings to your router and VMs). The app keeps working if you deny one, with less detail.

[!IMPORTANT] After an update, give the permissions again. macOS treats the updated app as new. It asks for control of UTM again, and it may refuse UTM's VM files until you turn Full Disk Access for UTM Watch off and on again in System Settings › Privacy & Security, then quit UTM Watch and open it again. If it keeps refusing, use Reset and ask again… in UTM Watch's Settings › Permissions. Until then VMs show without their names, limits or disk usage.

What is in the box

PartWhat it does
Menu bar app (UTMWatch.app)Live figures in the menu bar, a hover brief, and a detail window with trend tracks and recorded history.
Terminal tool (utmwatch)The same live table in a terminal, or one JSON snapshot for scripts.
MCP server (utmwatch-mcp, inside the app)Read-only tools over the recorded history, for AI agents.

History is stored in ~/Library/Application Support/UTM Watch/history.sqlite.

AI diagnosis with an MCP server

The app bundle contains utmwatch-mcp, a read-only Model Context Protocol server over standard input/output. An agent on this Mac can use it to read the recorded history and work out why a VM was slow. Connect Claude Code with:

bash
claude mcp add utm-watch -- /Applications/UTMWatch.app/Contents/MacOS/utmwatch-mcp

Then ask, for example: "A user says connecting to one of my VMs is sometimes slow. Use utm-watch to find out why."

[Claude answering why the VMs were slow, from UTM Watch's history]

ToolWhat it answers
find_incidentsWhen were VMs slow? Start here when someone reports slowness without a time.
summarizeWhat happened over a time range, VM by VM.
get_momentEverything recorded at one moment.
get_metricsOne metric over time for a VM, the Mac or the network.
list_eventsVM starts and stops, memory pressure and swap, VMs at their CPU limit, Wi-Fi and link changes, sleep and wake.
get_statusThe latest sample: every VM, the Mac and the network now.
list_macsEvery Mac in the fleet (on a Mac that has joined one).

Access can be switched off in the app's Settings under AI diagnosis.

Monitor several Macs as a fleet

[The Fleet window on the hub Mac: every Mac with its VMs]

UTM Watch on one Mac needs nothing below. With several Macs, one of them hosts a hub and the others report to it; the hub Mac can then open Open Fleet from the menu bar item and see every Mac's VMs, and click a Mac for its history. The other Macs only report: they cannot see the fleet.

  1. On the Mac that will host the hub: Settings › Fleet › Host the hub on this Mac, then New pairing code.
  2. On each other Mac: Settings › Fleet, paste the code, Join. A code adds one Mac and works once, for 15 minutes.

A Mac that joins uploads its last 24 hours, then new history every ten seconds. If the hub cannot be reached it keeps recording and fills the gap later. The hub Mac has to stay on and logged in.

Macs on other networks. On the hub Mac, under "Connect Macs on other networks", paste an auth key from your own Tailscale account (reusable, tagged, pre-approved). UTM Watch then carries its own hidden Tailscale node: nothing appears in the menu bar or in System Settings, and a Tailscale you already run is left alone. Pairing codes made after that work from any network.

A hub on a server. The same hub runs on Linux:

sh
docker build -f Hub/Dockerfile -t utm-watch-hub . && docker run -d -p 127.0.0.1:8787:8787 -v hub-data:/data utm-watch-hubdocker exec <container> utmwatch-hub token create --enroll     # a pairing tokenutmwatch fleet enroll --hub http://hub-address:8787 --code <token>

AI diagnosis across the fleet. On a Mac that has joined, the MCP server offers list_macs, and every tool takes an optional mac (a name or UUID). Without mac a tool answers for the Mac it runs on, from its own database, exactly as before; that keeps working when the hub is down.

utmwatch fleet status, leave, view and sim are command-line equivalents and testing aids. The design is in docs/DESIGN-fleet.md.

Terminal tool

utmwatch lists every running virtual machine on this Mac by its UTM name with live CPU, memory and network usage, and tells you how much memory and how many cores are still allocatable.

utmwatch · 2 VM · 4.2 cores · refresh 2s                                 00:34:00
VM          State     Backend             CPU          Memory       ↓ Down         ↑ Up         Total ↓/↑macOS 26    running   Apple     1.1 / 6 cores      8.1 / 8 GB    24.9 KB/s    46.2 KB/s   662 MB / 1.3 GBmacOS 26 B  running   Apple     2.8 / 4 cores      8.1 / 8 GB   121.3 KB/s   128.0 KB/s   7.3 GB / 2.0 GB──────────────────────────────────────────────────────────────────────────────────────────────────────────Headroom  macOS VMs 2/2 (full)  ·  Allocatable 8.7 GB (free now 8.5 GB)  ·  Cores allocated 10/14Host      Memory pressure normal  ·  Swap 3.1 GB / 4.0 GB  ·  Used 39.5 GB of 48.0 GB (23.3 GB outside VMs)
FlagMeaning
--interval 1|2|5Refresh interval in seconds (default 2)
--oncePrint one table and exit (two samples, interval apart)
--jsonWith --once: print the snapshot as JSON (for scripts, Hermes, etc.)
--units mb|mbpsNetwork in MB/s (default) or Mbps
--hide-stoppedStart with stopped VMs hidden
--no-utmSkip the UTM AppleScript query; names come from .utm bundles only
--swap-directionsTreat vmenet in/out the other way round (see Traffic direction)
--log <path>Append collector errors to a file

Keys while running: 1 2 5 change the interval (takes effect immediately), s cycles the sort (name, CPU, memory, network), h hides/shows stopped VMs, u toggles MB/s and Mbps, r re-reads the VM list now, q quits.

How it works

UTM Watch reads each VM's process for CPU and memory, its vmenetN interface for network, and its disk image for disk usage, all read-only and without anything installed in the guest. It matches processes to VMs through the disk image each process holds open, and gets names and states from UTM's AppleScript interface. Only NAT ("Shared") networking is supported in this version; bridged VMs show no network.

docs/HOW-IT-WORKS.md explains what each number means, how VMs are identified, the permissions involved and the implementation details.

Build from source

Requires macOS 26 on Apple silicon and the Swift toolchain from Xcode or the Command Line Tools. The terminal tool and the app have no third-party dependencies and need no root.

bash
swift build -c release.build/release/utmwatch

Self-checks for the pure logic (Command Line Tools ship no XCTest, so this is a plain executable):

bash
swift run selftest

Scripts/make-app.sh builds and signs build/UTMWatch.app (with your Apple Development certificate if you have one, otherwise ad hoc); Scripts/make-release.sh produces the downloadable archives in dist/. Design notes are in docs/DESIGN-menu-bar-app.md.

bash
Scripts/make-app.sh
bash
open build/UTMWatch.app

To connect Claude Code to a build from source:

bash
claude mcp add utm-watch -- "$(pwd)/build/UTMWatch.app/Contents/MacOS/utmwatch-mcp"

Contributing

Bug reports and pull requests are welcome. See CONTRIBUTING.md.

License

MIT. See LICENSE.


Built by DarrickBM


If UTM Watch is useful to you:

[Star this repo]

來源:README.md,提交 4962b56

工具

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

版本歷史

1
  1. v0.7.1最新Nov 12, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

其他 Watch 整合