npm classic-mac-mcpstdioGPL-3.0updated 4mo ago
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.
What can you do with agentbridge?
AgentBridge
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.
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.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
classic_mac_heartbeat
Read the heartbeat file ā shows uptime, front app, free memory, timestamp.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
classic_mac_get_about
System information ā OS version, machine type, RAM, free memory, uptime.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target 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.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
classic_mac_get_front_window
Get details about the frontmost window ā title, bounds, owning app.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
classic_mac_list_processes
List running applications with name, creator code, PID, and memory partition.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
Menus
classic_mac_list_menus
List the menu bar entries for the frontmost application.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
classic_mac_get_menu_items
Get items within a specific menu by name.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
menu |
Yes | Menu title (e.g. "File", "Edit") |
classic_mac_menu_select
Activate a menu item by name. Works for items with keyboard shortcuts.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
menu |
Yes | Menu title |
item |
Yes | Menu item name |
Mouse & Keyboard
classic_mac_click
Click at screen coordinates.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
x |
Yes | X coordinate (pixels from left) |
y |
Yes | Y coordinate (pixels from top) |
clicks |
No | Number of clicks (default 1, use 2 for double-click) |
classic_mac_mouse_move
Move the cursor without clicking.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
x |
Yes | X coordinate |
y |
Yes | Y coordinate |
classic_mac_mouse_drag
Click and drag from one point to another.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
x1 |
Yes | Start X |
y1 |
Yes | Start Y |
x2 |
Yes | End X |
y2 |
Yes | End Y |
classic_mac_type_text
Type a string of text into the frontmost application.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
text |
Yes | Text to type |
classic_mac_key_press
Press a single key with optional modifiers.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
key |
Yes | Key name: single character, or return, enter, tab, space, delete, escape, left, right, up, down, home, end, pageup, pagedown, f1āf5 |
modifiers |
No | Comma-separated: cmd, opt, shift, ctrl (e.g. "cmd,shift") |
Clipboard
classic_mac_get_clipboard
Read the current clipboard text contents.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
classic_mac_set_clipboard
Set the clipboard text contents.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
text |
Yes | Text to place on clipboard |
Application Control
classic_mac_launch_app
Launch an application by HFS path or creator code.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
path |
No* | HFS path (e.g. "Macintosh HD:Applications:SimpleText") |
creator |
No* | 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.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
name |
Yes | Application name |
classic_mac_quit_app
Send a quit Apple Event to a running application.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
name |
Yes | Application name |
classic_mac_send_appleevent
Send a generic Apple Event to a running application.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
app |
Yes | Target app name or 4-char creator code |
event |
Yes | Event type: oapp, quit |
Files & Volumes
classic_mac_get_volumes
List all mounted volumes with name, free space, and total size.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target 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.
| Parameter | Required | Description |
|---|---|---|
target |
No | Target ID or alias |
path |
Yes | HFS path (e.g. "Macintosh HD:System Folder:") |
Compatibility
| Environment | Architecture | OS Versions | Status |
|---|---|---|---|
| 68k Macs | 68k | System 7.0ā8.1 | ā Tested on System 7.6.1 |
| PowerPC Macs | PowerPC | Mac OS 8.5ā9.2.2 | Builds, untested |
| BasiliskII | 68k | System 7.0ā8.1 | ā Tested on System 7.6.1 |
| SheepShaver | PowerPC | Mac OS 8.5ā9.2.2 | Builds, 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
-
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.
-
Create the directory structure inside the shared folder:
AgentBridge/ āāā AgentBridge-YourMacName/ āāā inbox/ āāā outbox/ āāā assets/ -
Copy AgentBridge into the folder alongside inbox/outbox/assets.
-
Launch AgentBridge on the Classic Mac. It will automatically find its folder and start polling for commands.
-
Send a test command from your modern computer:
printf "BRIDGE 1.0.1\rSEQ 00001\rCMD ping\rTS 20260308T170000\r---\r" > /path/to/shared/AgentBridge-YourMacName/inbox/C00001.msg -
Read the response:
cat /path/to/shared/AgentBridge-YourMacName/outbox/R00001.msg | tr '\r' '\n'You should see
RESULT pongandSTATUS ok.
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
npm install -g classic-mac-mcp
Or run directly with npx (no install needed):
npx -y classic-mac-mcp --config /path/to/fleet.json
Install from source
git clone https://github.com/SeanFDZ/agentbridge.git
cd agentbridge
npm install
npm run build
Configuration
Create a fleet.json file to point at your shared folders:
{
"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):
{
"mcpServers": {
"classic-mac": {
"command": "npx",
"args": ["-y", "classic-mac-mcp", "--config", "/path/to/fleet.json"]
}
}
}
Or if you installed from source:
{
"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) andR00001.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.1
SEQ 00042
CMD list_windows
TS 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.1
SEQ 00042
STATUS ok
COUNT 2
WINDOW 1|?|Untitled|10,40,400,300|front
WINDOW 2|?||0,0,640,480|back
TS 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.1
UPTIME 218
TICKS 240498
FRONTAPP Finder
FREEMEM 4096
TS 20260308T173113
---
The MCP server monitors the heartbeat file's modification time to determine if AgentBridge is alive.
Building from Source
git clone https://github.com/SeanFDZ/agentbridge.git
cd agentbridge
npm install
npm 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.
Install
Add agentbridge to your client. Pick the one you use.
claude mcp add classic-mac-mcp -- npx -y classic-mac-mcpcodex mcp add classic-mac-mcp -- npx -y classic-mac-mcpamp mcp add classic-mac-mcp -- npx -y classic-mac-mcp{
"mcpServers": {
"classic-mac-mcp": {
"command": "npx",
"args": [
"-y",
"classic-mac-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"classic-mac-mcp": {
"command": "npx",
"args": [
"-y",
"classic-mac-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"classic-mac-mcp","command":"npx","args":["-y","classic-mac-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"classic-mac-mcp": {
"command": "npx",
"args": [
"-y",
"classic-mac-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"classic-mac-mcp": {
"command": "npx",
"args": [
"-y",
"classic-mac-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"classic-mac-mcp": {
"command": "npx",
"args": [
"-y",
"classic-mac-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"classic-mac-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"classic-mac-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"classic-mac-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"classic-mac-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y classic-mac-mcpRun `goose configure`, choose **Add Extension ā Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation21/25
- Maintenance13/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 134 days ago
- Has a release history
- Repository is not archived
- Licensed GPL-3.0
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint ā no local install
Version history
| Versions | Published |
|---|---|
| 1.0.2Latest | Apr 12, 2026 |