AirMCP
AGENTS.md18 starsChanged 6 months agoMITView on GitHub
Context for AI coding assistants (Claude Code, Cursor, Copilot, Cline, etc.) - Lead public discovery surfaces with governed MCP runtime for the Apple ecosystem and the connector/control layer: per-call approval, HMAC-chained audit, rate limits, profiles
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 95
Treat macOS as the current available runtime, not the permanent product boundary.
- Very specific: line 112
All tools must have readOnlyHint, destructiveHint, idempotentHint, openWorldHint
- Very specific: line 119
iWork apps: Use bundle IDs (com.apple.Pages, etc.) not display names (macOS 26 renamed them)
- Very specific: line 123
Centralized constants: All timeouts, buffer sizes, limits in shared/constants.ts
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Context for AI coding assistants (Claude Code, Cursor, Copilot, Cline, etc.)
Project Structure
src/
├── index.ts # Server entry — registers all modules
├── notes/ # Apple Notes (12 tools, 3 prompts)
│ ├── tools.ts, scripts.ts, prompts.ts
├── reminders/ # Apple Reminders (11 tools, 2 prompts)
│ ├── tools.ts, scripts.ts, prompts.ts
├── calendar/ # Apple Calendar (10 tools, 2 prompts)
│ ├── tools.ts, scripts.ts, prompts.ts
├── contacts/ # Apple Contacts (10 tools)
│ ├── tools.ts, scripts.ts
├── mail/ # Apple Mail (11 tools)
│ ├── tools.ts, scripts.ts
├── music/ # Apple Music (17 tools)
│ ├── tools.ts, scripts.ts
├── finder/ # Finder (8 tools)
│ ├── tools.ts, scripts.ts
├── safari/ # Safari (12 tools)
│ ├── tools.ts, scripts.ts
├── messages/ # Messages (6 tools)
│ ├── tools.ts, scripts.ts
├── system/ # System (27 tools)
│ ├── tools.ts, scripts.ts
├── photos/ # Photos (9 tools, macOS 26+ Swift)
│ └── tools.ts
├── shortcuts/ # Shortcuts (11 tools, 3 prompts)
│ ├── tools.ts, scripts.ts, prompts.ts
├── intelligence/ # Apple Intelligence (10 tools, macOS 26+)
│ └── tools.ts
├── tv/ # Apple TV (6 tools)
│ ├── tools.ts, scripts.ts
├── ui/ # UI Automation (10 tools)
│ ├── tools.ts, scripts.ts, ax-query.ts
├── screen/ # Screen Capture (5 tools)
│ ├── tools.ts, scripts.ts
├── maps/ # Maps (8 tools)
│ ├── tools.ts, scripts.ts, api.ts
├── podcasts/ # Podcasts (6 tools, broken on macOS 26)
│ ├── tools.ts, scripts.ts
├── weather/ # Weather (3 tools)
│ ├── tools.ts, api.ts
├── pages/ # Pages (7 tools)
│ ├── tools.ts, scripts.ts
├── numbers/ # Numbers (9 tools)
│ ├── tools.ts, scripts.ts
├── keynote/ # Keynote (9 tools)
│ ├── tools.ts, scripts.ts
├── location/ # Location (2 tools, Swift)
│ └── tools.ts
├── bluetooth/ # Bluetooth (4 tools, Swift)
│ └── tools.ts
├── google/ # Google Workspace (16 tools)
│ ├── tools.ts, gws.ts
├── semantic/ # Semantic search (4 tools)
│ ├── tools.ts, service.ts, embeddings.ts, store.ts
├── apps/ # App management (calendar-week, music-player UIs)
│ └── tools.ts
├── cross/ # Cross-module prompts (19 prompts)
│ ├── prompts.ts, tools.ts
├── skills/ # YAML skill engine (3 built-in skills)
│ ├── executor.ts, loader.ts, register.ts
│ └── builtins/
└── shared/
├── constants.ts # All magic numbers, API URLs, timeouts, buffer sizes
├── jxa.ts # JXA execution (osascript wrapper, circuit breaker, retry)
├── swift.ts # Swift bridge (Foundation Models, EventKit, PhotoKit)
├── esc.ts # String escaping for JXA injection prevention
├── result.ts # ok()/err() MCP response helpers
├── config.ts # Config parsing, module registry, MCP client paths
├── iwork.ts # Shared iWork helpers (bundle ID mapping)
├── modules.ts # MODULE_REGISTRY (32 modules)
└── resources.ts # MCP resource registration (8 resources)
swift/ # Swift package for Apple Intelligence + EventKit + PhotoKit
scripts/ # QA test runner + stats counter
tests/ # Script generator testsStats
- 298 tools across 32 modules (+ dynamic shortcut tools at runtime)
- 32 prompts (per-module + cross-module + YAML skills)
- 10 MCP resources (Notes, Calendar, Reminders, Music, Mail, System, Context Snapshot)
Public Positioning Contract
- Lead public discovery surfaces with governed MCP runtime for the Apple ecosystem and the connector/control layer: per-call approval, HMAC-chained audit, rate limits, profiles, and progressive discovery.
- Treat macOS as the current available runtime, not the permanent product boundary. State iOS as preview and visionOS/watchOS as roadmap targets until their targets are implemented and verified.
- Aggregate tool and module counts are technical catalog metadata, not the
product headline. Keep them out of README and website heroes, SEO/social
metadata, registry descriptions, package/plugin pitches, and the opening of
llms.txt. - Exact counts may appear in technical reference and configuration sections,
where
npm run stats:synckeeps them current. - Tool breadth supports the story; it does not replace the governance story.
Module Pattern
Each module follows: scripts.ts (JXA generators) + tools.ts (MCP registration) + optional prompts.ts.
scripts.ts: importescfrom../shared/esc.js, return JXA stringstools.ts: importok, errfrom../shared/result.js, register viaserver.registerTool()- All tools must have
readOnlyHint,destructiveHint,idempotentHint,openWorldHint - Tools return
ok(data)orerr(message), never throw
Key Patterns
- JXA scripts:
esc()for injection prevention,JSON.stringifyoutput - Swift bridge:
runSwift(command, input)— spawns binary, JSON via stdin/stdout - iWork apps: Use bundle IDs (
com.apple.Pages, etc.) not display names (macOS 26 renamed them) - stdio only:
console.log()breaks MCP — useconsole.error()for debug - Circuit breaker: 3 failures → 60s auto-disable per app (in
jxa.ts) - Clipboard: Content truncated to 5MB to stay within osascript maxBuffer
- Centralized constants: All timeouts, buffer sizes, limits in
shared/constants.ts
Do NOT Modify
.github/workflows/CI/CD pipeline structuretsconfig.jsonmodule settings (Node16)esc()function inshared/esc.tswithout security review
Known Limitations (macOS 26)
- Podcasts: JXA scripting dictionary removed — all 6 tools broken
- Safari bookmarks: JXA bookmark classes removed, plist fallback needs Full Disk Access
- iWork display names: Apps renamed (e.g., "Pages Creator Studio") — use bundle IDs
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

