Agentbridge

io.github.SeanFDZ由 GitHub 帳號 SeanFDZ 發布v1.0.2更新於 Oct 27, 2026

Control Classic Mac OS (System 7-9) from AI agents via shared folder protocol.

已驗證STDIO僅桌面瀏覽器自動化開發者工具

概覽

AI 產生的概覽

讓 AI 助理透過共享資料夾協定操控經典 Mac OS 7–9 實機或模擬器:視窗、選單、滑鼠、鍵盤、剪貼簿、應用程式與檔案。

可以做什麼
  • 查看已設定的經典 Mac 目標、心跳、ping 與系統資訊
  • 列出視窗、前景視窗與執行中的程序,讀取選單列與選單項目
  • 選擇選單項目、點擊、移動、拖曳、輸入文字與按鍵(可搭配修飾鍵)
  • 讀取與設定剪貼簿文字
  • 啟動、切換至前景、結束應用程式並送出 Apple Event
  • 依 HFS 路徑列出已掛載卷宗與資料夾內容
適用情境
當你需要助理查看或操作執行 System 7–9 的 68k 或 PowerPC 實機,或 BasiliskII、SheepShaver 模擬器時使用,例如自動化舊軟體或確認螢幕狀態。沒有經典 Mac 或共享資料夾時並不適用。
執行需求
本機需 Node.js 20 以上版本,透過 npx 或全域安裝執行 classic-mac-mcp 套件,並提供列出各目標共享資料夾路徑的 fleet.json 設定。經典 Mac 上需把 AgentBridge 應用程式複製到該共享資料夾並啟動,系統須為 7.0 以上。共享資料夾需兩台機器皆可讀寫(NAS 的 AFP/SMB 共享或模擬器主機目錄)。
安裝前請注意
這些工具會操作實際機器:點擊、輸入、啟動與結束應用程式、覆寫剪貼簿、送出 Apple Event,助理可能打斷工作或造成未儲存的資料遺失。命令與回應以純文字檔案經共享資料夾傳遞,能存取該共享的人可讀取或注入內容。MCP 伺服器處理後會刪除命令與回應檔案。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

AgentBridge

[npm] [MCP Registry]

Let AI talk to your Classic Mac.

AgentBridge is a native Classic Mac OS application that lets AI agents (like Claude) interact with Mac OS 7–9 through structured commands and responses. It works on real hardware and emulators — no modifications to your Mac required.

Drop AgentBridge into a shared folder, launch it on your Mac, and an AI agent can list windows, open apps, type text, read the clipboard, browse files, and more — all through a simple text-based protocol.

[AgentBridge splash screen on a Mac SE]

How It Works

┌──────────────────────┐│    Claude / AI Agent ││         │            ││    MCP Protocol      ││         │            ││    MCP Server (Node) ││         │            ││    Shared Folder I/O │└────────┬─────────────┘         │  reads/writes text files         │    ┌────┴──────────────────────────┐    │  Shared Volume (NAS / AFP /   │    │  SMB / emulator extfs)        │    │                               │    │  AgentBridge-MyMac/           │    │  ├── inbox/   ← commands in   │    │  ├── outbox/  ← responses out │    │  ├── assets/  ← file staging  │    │  └── heartbeat                │    └────┬──────────────────────────┘         │┌────────┴─────────────────────────┐│  Classic Mac OS 7 / 8 / 9        ││                                  ││  AgentBridge.app                 ││  - Polls inbox for commands      ││  - Executes via Mac Toolbox      ││  - Writes responses to outbox    ││  - Heartbeat every 2 seconds     │└──────────────────────────────────┘

The transport is just a folder. How that folder is shared between the AI and the Mac is up to you:

  • NAS/file server (AFP or SMB) — multiple Macs and your modern computer all mount the same share
  • Emulator shared folder — BasiliskII and SheepShaver both support host directory sharing
  • Any other shared filesystem — if both sides can read and write files, it works

No SSH. No special drivers. No modifications to your Mac's system. AgentBridge is a regular application — launch it, quit it, done.

MCP Tools Reference

The MCP server exposes these tools to AI agents. If the fleet has only one target, the target parameter is optional on all tools.

System & Status

classic_mac_list_targets List all configured Classic Mac targets and their status (heartbeat alive/dead). No parameters.

classic_mac_ping Health check — returns pong if AgentBridge is responding.

ParameterRequiredDescription
targetNoTarget ID or alias

classic_mac_heartbeat Read the heartbeat file — shows uptime, front app, free memory, timestamp.

ParameterRequiredDescription
targetNoTarget ID or alias

classic_mac_get_about System information — OS version, machine type, RAM, free memory, uptime.

ParameterRequiredDescription
targetNoTarget ID or alias

Windows & Processes

classic_mac_list_windows Enumerate all visible windows across all applications. Returns window index, title, bounds (left,top,right,bottom), and front/back layer.

ParameterRequiredDescription
targetNoTarget ID or alias

classic_mac_get_front_window Get details about the frontmost window — title, bounds, owning app.

ParameterRequiredDescription
targetNoTarget ID or alias

classic_mac_list_processes List running applications with name, creator code, PID, and memory partition.

ParameterRequiredDescription
targetNoTarget ID or alias

Menus

classic_mac_list_menus List the menu bar entries for the frontmost application.

ParameterRequiredDescription
targetNoTarget ID or alias

classic_mac_get_menu_items Get items within a specific menu by name.

ParameterRequiredDescription
targetNoTarget ID or alias
menuYesMenu title (e.g. "File", "Edit")

classic_mac_menu_select Activate a menu item by name. Works for items with keyboard shortcuts.

ParameterRequiredDescription
targetNoTarget ID or alias
menuYesMenu title
itemYesMenu item name

Mouse & Keyboard

classic_mac_click Click at screen coordinates.

ParameterRequiredDescription
targetNoTarget ID or alias
xYesX coordinate (pixels from left)
yYesY coordinate (pixels from top)
clicksNoNumber of clicks (default 1, use 2 for double-click)

classic_mac_mouse_move Move the cursor without clicking.

ParameterRequiredDescription
targetNoTarget ID or alias
xYesX coordinate
yYesY coordinate

classic_mac_mouse_drag Click and drag from one point to another.

ParameterRequiredDescription
targetNoTarget ID or alias
x1YesStart X
y1YesStart Y
x2YesEnd X
y2YesEnd Y

classic_mac_type_text Type a string of text into the frontmost application.

ParameterRequiredDescription
targetNoTarget ID or alias
textYesText to type

classic_mac_key_press Press a single key with optional modifiers.

ParameterRequiredDescription
targetNoTarget ID or alias
keyYesKey name: single character, or return, enter, tab, space, delete, escape, left, right, up, down, home, end, pageup, pagedown, f1–f5
modifiersNoComma-separated: cmd, opt, shift, ctrl (e.g. "cmd,shift")

Clipboard

classic_mac_get_clipboard Read the current clipboard text contents.

ParameterRequiredDescription
targetNoTarget ID or alias

classic_mac_set_clipboard Set the clipboard text contents.

ParameterRequiredDescription
targetNoTarget ID or alias
textYesText to place on clipboard

Application Control

classic_mac_launch_app Launch an application by HFS path or creator code.

ParameterRequiredDescription
targetNoTarget ID or alias
pathNo*HFS path (e.g. "Macintosh HD:Applications:SimpleText")
creatorNo*4-character creator code (e.g. "ttxt")

*One of path or creator is required.

classic_mac_activate_app Bring a running application to the front.

ParameterRequiredDescription
targetNoTarget ID or alias
nameYesApplication name

classic_mac_quit_app Send a quit Apple Event to a running application.

ParameterRequiredDescription
targetNoTarget ID or alias
nameYesApplication name

classic_mac_send_appleevent Send a generic Apple Event to a running application.

ParameterRequiredDescription
targetNoTarget ID or alias
appYesTarget app name or 4-char creator code
eventYesEvent type: oapp, quit

Files & Volumes

classic_mac_get_volumes List all mounted volumes with name, free space, and total size.

ParameterRequiredDescription
targetNoTarget ID or alias

classic_mac_list_folder List contents of a folder by HFS path. Returns name, type code, creator code, size, and whether each item is a folder.

ParameterRequiredDescription
targetNoTarget ID or alias
pathYesHFS path (e.g. "Macintosh HD:System Folder:")

Compatibility

EnvironmentArchitectureOS VersionsStatus
68k Macs68kSystem 7.0–8.1✅ Tested on System 7.6.1
PowerPC MacsPowerPCMac OS 8.5–9.2.2Builds, untested
BasiliskII68kSystem 7.0–8.1✅ Tested on System 7.6.1
SheepShaverPowerPCMac OS 8.5–9.2.2Builds, untested

AgentBridge requires System 7.0 or later (for Apple Events support).

Quick Start

Pre-built Binaries

Download from the Releases page:

  • AgentBridge-68k.bin — MacBinary for 68k Macs (System 7–8.1)
  • AgentBridge-68k.dsk — HFS disk image for 68k Macs (System 7–8.1)
  • AgentBridge-ppc.bin — MacBinary for PowerPC Macs (OS 8.5–9.2.2)
  • AgentBridge-ppc.dsk — HFS disk image for PowerPC Macs (OS 8.5–9.2.2)

Setup

  1. Create a shared folder accessible to both your Mac and your modern computer. This can be a NAS share, an emulator's host directory, or any shared filesystem.

  2. Create the directory structure inside the shared folder:

    AgentBridge/└── AgentBridge-YourMacName/    ├── inbox/    ├── outbox/    └── assets/
  3. Copy AgentBridge into the folder alongside inbox/outbox/assets.

  4. Launch AgentBridge on the Classic Mac. It will automatically find its folder and start polling for commands.

  5. Send a test command from your modern computer:

    bash
    printf "BRIDGE 1.0.1\rSEQ 00001\rCMD ping\rTS 20260308T170000\r---\r" > /path/to/shared/AgentBridge-YourMacName/inbox/C00001.msg
  6. Read the response:

    bash
    cat /path/to/shared/AgentBridge-YourMacName/outbox/R00001.msg | tr '\r' '\n'

    You should see RESULT pong and STATUS ok.

[Text typed by Claude into a Mac SE via AgentBridge]

Multiple Macs

Each Mac gets its own subfolder with its own copy of AgentBridge:

NAS Share/└── AgentBridge/    ├── AgentBridge-SE30/          ← Mac SE/30 running System 7    │   ├── AgentBridge (app)    │   ├── inbox/    │   ├── outbox/    │   └── assets/    ├── AgentBridge-G4/            ← Power Mac G4 running OS 9    │   ├── AgentBridge (app)    │   ├── inbox/    │   ├── outbox/    │   └── assets/    └── AgentBridge-BasiliskII/    ← Emulator        ├── AgentBridge (app)        ├── inbox/        ├── outbox/        └── assets/

AgentBridge uses its own launch location as its working directory — no configuration needed.

MCP Server

The MCP server exposes AgentBridge commands as tools for AI agents like Claude. It's a Node.js TypeScript server that communicates via stdio (standard MCP transport).

Install via npm

bash
npm install -g classic-mac-mcp

Or run directly with npx (no install needed):

bash
npx -y classic-mac-mcp --config /path/to/fleet.json

Install from source

bash
git clone https://github.com/SeanFDZ/agentbridge.gitcd agentbridgenpm installnpm run build

Configuration

Create a fleet.json file to point at your shared folders:

json
{  "fleet": [    {      "id": "my-classic-mac",      "alias": "Classic Mac",      "arch": "68k",      "os_version": "7.6.1",      "shared_folder": "/Volumes/NASShare/AgentBridge/AgentBridge-MyMac"    }  ]}

Claude Desktop

Add to your Claude Desktop config (claude_desktop_config.json):

json
{  "mcpServers": {    "classic-mac": {      "command": "npx",      "args": ["-y", "classic-mac-mcp", "--config", "/path/to/fleet.json"]    }  }}

Or if you installed from source:

json
{  "mcpServers": {    "classic-mac": {      "command": "node",      "args": ["/path/to/agentbridge/dist/server.js", "--config", "/path/to/agentbridge/config/fleet.json"]    }  }}

Protocol

AgentBridge uses a line-oriented key-value text protocol designed for Classic Mac constraints:

  • No JSON — parseable with ~50 lines of C, zero dynamic memory allocation
  • CR line endings (Classic Mac native)
  • MacRoman text encoding (translated to UTF-8 by the MCP server)
  • 32KB max message size
  • Files named C00001.msg (commands) and R00001.msg (responses)

Command Format

Commands are text files written to the inbox/ directory, named C{seq}.msg (e.g. C00001.msg). Sequence numbers are zero-padded to 5 digits.

BRIDGE 1.0.1SEQ 00042CMD list_windowsTS 20260308T153022---

All lines are KEY value pairs, terminated by --- on its own line. Line endings are CR (0x0D, Classic Mac native). Text encoding is MacRoman (the MCP server handles UTF-8 conversion). Multi-line text uses + continuation lines after the TEXT key. Maximum message size is 32KB.

Response Format

Responses appear in the outbox/ directory as R{seq}.msg, matching the command's sequence number. AgentBridge deletes command files after processing; the MCP server deletes response files after reading.

BRIDGE 1.0.1SEQ 00042STATUS okCOUNT 2WINDOW 1|?|Untitled|10,40,400,300|frontWINDOW 2|?||0,0,640,480|backTS 20260308T153022---

STATUS is either ok or error. On error, ERRCODE and ERRMSG fields provide details. Multi-value responses (windows, processes, volumes, files, menu items) use repeated keys (WINDOW, PROCESS, VOLUME, FILEENTRY, MENUBAR, MENUITEM) with pipe-delimited fields.

Heartbeat

AgentBridge writes a heartbeat file in its working directory every ~2 seconds:

BRIDGE 1.0.1UPTIME 218TICKS 240498FRONTAPP FinderFREEMEM 4096TS 20260308T173113---

The MCP server monitors the heartbeat file's modification time to determine if AgentBridge is alive.

Building from Source

bash
git clone https://github.com/SeanFDZ/agentbridge.gitcd agentbridgenpm installnpm run build

Requires Node.js 20+.

AgentBridge binaries are available as pre-built downloads — source code is not distributed.

Project Structure

agentbridge/├── src/                            # MCP server (TypeScript, GPLv3)│   ├── server.ts                   # MCP tool definitions and handlers│   ├── fleet.ts                    # Fleet registry│   ├── types.ts                    # Type definitions│   └── bridge/│       └── client.ts               # Shared folder I/O client└── config/    └── fleet.json                  # Fleet configuration

Design Principles

No host-side dependencies. AgentBridge does everything through the Mac Toolbox. There's no SSH, no screen capture, no input injection at the host OS level. This means it works identically on real hardware and emulators.

No system modifications. AgentBridge is a regular application. It doesn't modify your System Folder, install extensions, or change boot configuration. Launch it, quit it, delete it — your Mac is untouched.

Transport agnostic. The protocol is just text files in a folder. How that folder is shared (NAS, AFP, SMB, emulator extfs, USB drive, carrier pigeon) is not AgentBridge's concern.

Cooperative multitasking citizen. AgentBridge yields CPU via WaitNextEvent() every cycle. Other apps run normally.

Stateless commands. Every command is self-contained. The MCP server can crash and restart without the Mac side needing to know.

Credits

AgentBridge 1.0.1 Sean Lavigne © 2026 Falling Data Zone, LLC

Built with Retro68 by Wolfgang Thaller.

Also From Falling Data Zone

MacMind — a single-layer transformer neural network implemented entirely in HyperTalk, trained and running on a Macintosh SE/30. Proof that 1987 scripting can do machine learning.

More apps at apps.fallingdata.zone.

License

This project has two components with separate licenses:

MCP Server (TypeScript, src/ directory) — GNU General Public License v3.0 — free to use, modify, and distribute under GPL terms.

AgentBridge.app (Classic Mac application, source in classic-mac-src/) — modified PolyForm Noncommercial 1.0.0. © 2026 Falling Data Zone, LLC. Pre-built binaries are available for download.

Protocol — the AgentBridge protocol as documented in this README is open.

來源:README.md,提交 26b0305

工具

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

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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