ericblue/mac-agent-gateway 是从 https://github.com/ericblue/mac-agent-gateway. 导入的 Agent Skill 候选
概览
ericblue/mac-agent-gateway 是从 https://github.com/ericblue/mac-agent-gateway. 导入的 Agent Skill 候选
概述(AI 翻译)
一个本地 macOS HTTP API 网关,通过稳定、代理友好的 REST API 暴露 Apple 保护的功能(提醒、消息)。
为什么是MAG?
运行在虚拟机、容器或远程主机中的现代AI代理无法访问macOS保护的服务,原因包括:
- TCC 权限强制执行 — 苹果限制对提醒、消息等的访问。
- 沙盒限制 — 虚拟机和容器无法调用macOS CLI
- 脆弱的CLI集成 — 代理直接执行CLI不可靠
MAG通过在你的Mac上作为安全HTTP网关运行,处理所有TCC权限和CLI执行,同时暴露干净的REST端点来解决这个问题。
这对你意味着什么
简单来说: MAG让AI助手以受控、安全的方式与你的苹果提醒和消息——这些通常锁定在Mac上的应用——协同工作。
- 您的AI助手现在可以协助完成实际任务 — “为明天添加提醒”、“查找Jane上周发给我的链接”、“给我发短信待办事项”
- 可与任何AI代理配合——OpenClaw、Claude Code、Cursor或任何能发出HTTP请求的工具
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Mac Agent Gateway (MAG)
A local macOS HTTP API gateway that exposes Apple-protected capabilities (Reminders, Messages) via a stable, agent-friendly REST API.
Why MAG?
Modern AI agents running in VMs, containers, or remote hosts cannot access macOS-protected services due to:
- TCC Permission Enforcement — Apple restricts access to Reminders, Messages, etc.
- Sandbox Restrictions — VMs and containers can’t invoke macOS CLIs
- Fragile CLI Integration — Direct CLI execution from agents is unreliable
MAG solves this by running on your Mac as a secure HTTP gateway, handling all TCC permissions and CLI execution while exposing clean REST endpoints.
What This Means for You
In plain terms: MAG lets AI assistants work with your Apple Reminders and Messages—apps that are normally locked to your Mac—in a controlled, secure way.
- Your AI assistant can now help with real tasks — “Add a reminder for tomorrow”, “Find the links Jane sent me last week”, “Text me my todo list”
- Works with any AI agent — OpenClaw, Claude Code, Cursor, or any tool that can make HTTP requests
- You stay in control — Choose exactly what the AI can do: read-only access, send only to specific contacts, or full access
- No cloud required — Everything runs locally on your Mac; your data never leaves your computer
- Built on trusted tools — Uses popular open-source CLIs (remindctl, imsg) with a standard REST API on top
Example permissions you can set:
- Allow reading messages but not sending
- Allow sending only to yourself or specific contacts
- Allow reminders but disable message access entirely
Try prompts like these with your AI agent:
- “What’s on my todo list for today?”
- “Find the last 20 Trulia links my wife sent me and organize them by state and city”
- “Create a reminder for tomorrow at 9am to call the dentist”
- “Text me a summary of my overdue reminders”
- “Search my messages with John for anything about the project”
- “Find the last restaurant link Jane sent me, look it up, and text me the hours and address”
See EXAMPLES.md for 21+ real-world prompts and workflows.
flowchart LR
subgraph Agents["🤖 AI Agents"]
direction TB
A1["OpenClaw / Hermes"]
A2["Claude Code / Cowork"]
A3["Custom HTTP Client"]
end
subgraph Gateway["🖥️ Mac Agent Gateway"]
direction TB
subgraph API["REST API :8123"]
R["/v1/reminders"]
M["/v1/messages"]
end
subgraph Services["CLI Services"]
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add ericblue/mac-agent-gateway