Repository navigation
Expand file tree
/
Copy pathsurfaces.json
More file actions
884 lines (884 loc) · 46.2 KB
/
Copy pathsurfaces.json
File metadata and controls
884 lines (884 loc) · 46.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
{
"$comment": [
"THE SURFACE LIST. Every other copy of it is generated from this file by",
"`make surfaces` (scripts/generate-surfaces.mjs), and CI fails if any of them",
"has drifted.",
"",
"This exists because docs/surfaces.md set a threshold and the repo crossed it.",
"The list was hardcoded in ten places \u2014 Surfaces.swift, the bridge's `known`,",
"two spots in the Makefile, the CI handshake loop, the server bundler, BOTH",
"copies of the Apple Events usage string in project.pbxproj, wiring-check.swift",
"and .mcp.json \u2014 and Calendar went in by hand, touching all of them. The note",
"said to generate them from one manifest before adding a fifth. Contacts is the",
"fifth.",
"",
"Adding a surface: add an entry here, run `make surfaces`, review the diff.",
"Nothing below is free-form \u2014 `scripts/generate-surfaces.mjs` validates every",
"entry before it writes anything, and refuses to write if any of them fails.",
"The rules are cross-field (a capability must have bundleId null; a surface",
"that sends no Apple Event must have appleEventsScope null), which is why",
"they live in the generator rather than in a JSON Schema file."
],
"surfaces": [
{
"id": "mail",
"displayName": "Mail",
"kind": "app",
"npmName": "@mgcrea/mcp-apple-mail",
"runtime": "node",
"bundleId": "com.apple.mail",
"iconPath": null,
"symbol": null,
"usesAppleEvents": true,
"appleEventsScope": "always",
"supportsWrites": true,
"defaultEnabled": true,
"storePath": "Library/Mail/V*/MailData/Envelope Index",
"storePermission": "full-disk-access",
"envPrefix": "APPLE_MAIL_",
"notes": [
"The V number moves between macOS releases, which is why",
"packages/mail/src/client/locate.ts asks Mail itself first. For a",
"status row a glob is enough; the server does the real resolution."
],
"gates": [
{
"id": "allowWatches",
"envSuffix": "ALLOW_WATCHES",
"label": "Watch for incoming mail",
"description": "Lets a client register a watch on senders or domains and be notified when matching mail arrives. Off by default."
},
{
"id": "allowEvents",
"envSuffix": "ALLOW_EVENTS",
"label": "Experimental: MCP Events for incoming mail",
"description": "Serves the draft MCP Events extension (mail.received) to clients on the 2026 protocol. Off by default."
},
{
"id": "handBackAfterDraft",
"envSuffix": "HAND_BACK_AFTER_DRAFT",
"label": "Return to the previous app after a draft",
"description": "Once a draft is written or edited, brings back the app you were in. Off by default, so Mail stays in front with the draft open for you to read and send."
}
]
},
{
"id": "notes",
"displayName": "Notes",
"kind": "app",
"npmName": "@mgcrea/mcp-apple-notes",
"runtime": "node",
"bundleId": "com.apple.Notes",
"iconPath": null,
"symbol": null,
"usesAppleEvents": true,
"appleEventsScope": "always",
"supportsWrites": true,
"defaultEnabled": true,
"storePath": "Library/Group Containers/group.com.apple.notes/NoteStore.sqlite",
"storePermission": "full-disk-access",
"envPrefix": "APPLE_NOTES_",
"notes": []
},
{
"id": "reminders",
"displayName": "Reminders",
"kind": "app",
"npmName": "@mgcrea/mcp-apple-reminders",
"runtime": "node",
"bundleId": "com.apple.reminders",
"iconPath": null,
"symbol": null,
"usesAppleEvents": true,
"appleEventsScope": "always",
"supportsWrites": true,
"defaultEnabled": true,
"storePath": "Library/Group Containers/group.com.apple.reminders",
"storePermission": "full-disk-access",
"envPrefix": "APPLE_REMINDERS_",
"notes": [
"The container, not the store. Reminders keeps its data in",
"Container_v1/Stores/Data-<UUID>.sqlite, and a UUID cannot be probed by",
"name \u2014 `resolveStore` only expands a glob in a directory component.",
"Reading the directory is the right question anyway: it is exactly the",
"`containerListable` signal packages/reminders/src/client/locate.ts uses,",
"because without the grant the container cannot even be listed, so the",
"store cannot be located at all."
]
},
{
"id": "calendar",
"displayName": "Calendar",
"kind": "app",
"npmName": "@mgcrea/mcp-apple-calendar",
"runtime": "node",
"bundleId": "com.apple.iCal",
"iconPath": null,
"symbol": null,
"usesAppleEvents": true,
"appleEventsScope": "always",
"supportsWrites": true,
"defaultEnabled": true,
"storePath": "Library/Group Containers/group.com.apple.calendar/Calendar.sqlitedb",
"storePermission": "full-disk-access",
"envPrefix": "APPLE_CALENDAR_",
"notes": [
"NOT `com.apple.Calendar`, which does not exist. Calendar.app kept the",
"bundle id it shipped with as iCal, and this is the only surface in the",
"table where the display name and the bundle id disagree \u2014 the same",
"shape of trap as `com.apple.Notes` vs `com.apple.reminders` above,",
"which this project has already been caught by once.",
"",
"A constant filename, unlike Reminders' generated UUID directory. That",
"makes this the best Full Disk Access probe in the table: `access(2)`",
"on a known path answers the question directly, with no listing step",
"that could fail for its own reasons."
]
},
{
"id": "contacts",
"displayName": "Contacts",
"kind": "app",
"npmName": "@mgcrea/mcp-apple-contacts",
"runtime": "node",
"bundleId": "com.apple.AddressBook",
"iconPath": null,
"symbol": null,
"usesAppleEvents": true,
"appleEventsScope": "writes",
"supportsWrites": true,
"defaultEnabled": true,
"storePath": "Library/Application Support/AddressBook",
"storePermission": "contacts",
"envPrefix": "APPLE_CONTACTS_",
"notes": [
"Reads are file-lane and need no Automation grant; writes are Apple",
"Events, like every other surface, because the store is query_only.",
"With allowWrites off this server sends no Apple Event at all, which",
"is the only reason `usesAppleEvents` being true is not the whole",
"story \u2014 see docs/contacts.md.",
"",
"There is no delete verb. `sdef` for Contacts contains the string",
"\"delete\" zero times: make, add, remove and save are the whole",
"command list, and `remove` only takes a person out of a group.",
"",
"The DIRECTORY, not a database. Contacts keeps one store per account",
"under Sources/<uuid>/ plus a root file that held ONE contact of 421",
"on the probed machine. Naming the root database would point the",
"status row at a file that is present, readable and empty.",
"",
"And it is not Full Disk Access that gates it: Contacts has its own",
"TCC service, which \u2014 unlike Full Disk Access \u2014 prompts."
]
},
{
"id": "messages",
"displayName": "Messages",
"kind": "app",
"npmName": "@mgcrea/mcp-apple-messages",
"runtime": "node",
"bundleId": "com.apple.MobileSMS",
"iconPath": null,
"symbol": null,
"usesAppleEvents": true,
"appleEventsScope": "writes",
"supportsWrites": true,
"defaultEnabled": true,
"storePath": "Library/Messages/chat.db",
"storePermission": "full-disk-access",
"envPrefix": "APPLE_MESSAGES_",
"notes": [
"The bundle id disagrees with the display name, as Calendar's does:",
"Messages.app is still com.apple.MobileSMS underneath. It is the",
"liveness check for the send script and is used by nothing else.",
"",
"usesAppleEvents is TRUE for exactly one verb, and the asymmetry is",
"the whole story of this surface. Every READ through the scripting",
"dictionary fails \u2014 measured, not assumed \u2014 and Messages answers",
"\"Application isn't running\" even while NSRunningApplication reports",
"it running, because it is a windowless background process that",
"declines to wake for a script. `send` is the one command that works,",
"so Apple Events here is a WRITE lane and nothing else. With",
"APPLE_MESSAGES_ALLOW_WRITES off, no Apple Event is ever sent and no",
"Automation grant is ever requested.",
"",
"supportsWrites is TRUE, and it covers exactly one tool.",
"`sdef` lists three commands \u2014 send, login, logout \u2014 and only send",
"is exposed: logging a user out of iMessage on every device they own",
"is not something to do behind a tool call. There is no edit, delete,",
"mark-as-read or reaction verb in the dictionary at all.",
"",
"The send is reconciled through the FILE lane, which is what made it",
"shippable. Apple Events returns no identifier for what it sent \u2014",
"docs/messages.md called the id bridge unanswerable by construction \u2014",
"so the outgoing row is found by re-reading chat.db afterwards. The",
"read lane also picks the target: Messages will not enumerate",
"participants for a script, but it will accept a chat guid, and the",
"store holds one for every conversation.",
"",
"Full Disk Access is MANDATORY here rather than an upgrade. Every",
"other surface degrades to a slower server without it; this one has",
"no second lane and simply does not exist. docs/distribution.md",
"retired \"try before you grant\" partly because of this surface.",
"",
"The `gates` entry below is the first extra gate on any surface, and",
"it gates a READ. `find_codes` extracts one-time 2FA codes, and it is",
"deliberately not behind allowWrites: that flag means \"may change",
"something\", and reaching a read through it would mean granting the",
"right to send a message in order to get one. The reason it is gated",
"at all is that this server already holds the conversation history",
"and the Mail server holds the inbox \u2014 between them, the",
"password-RESET channel. Adding live authentication codes to that",
"completes an account-takeover primitive out of parts that were each",
"individually reasonable, so it defaults off and is turned on by",
"hand. See docs/passwords.md for why the Passwords app itself is",
"unreachable and this is what ships in its place."
],
"gates": [
{
"id": "allowCodes",
"envSuffix": "ALLOW_CODES",
"label": "Read one-time codes",
"description": "Lets apple_messages_find_codes extract 2FA codes from recent messages. Off by default."
},
{
"id": "allowWatches",
"envSuffix": "ALLOW_WATCHES",
"label": "Watch for incoming messages",
"description": "Lets a client register a watch on handles or email domains and be notified when a matching message arrives. Off by default."
},
{
"id": "allowEvents",
"envSuffix": "ALLOW_EVENTS",
"label": "Experimental: MCP Events for incoming messages",
"description": "Serves the draft MCP Events extension (messages.received) to clients on the 2026 protocol. Off by default."
}
]
},
{
"id": "safari",
"displayName": "Safari",
"kind": "app",
"npmName": "@mgcrea/mcp-apple-safari",
"runtime": "node",
"bundleId": "com.apple.Safari",
"iconPath": null,
"symbol": null,
"usesAppleEvents": true,
"appleEventsScope": "always",
"supportsWrites": true,
"defaultEnabled": true,
"storePath": "Library/Safari/History.db",
"storePermission": "full-disk-access",
"envPrefix": "APPLE_SAFARI_",
"notes": [
"The only surface whose two lanes are NOT fallbacks for each other.",
"Everywhere else both lanes reach the same data and the choice is",
"speed. Here they see almost disjoint things: Apple Events sees only",
"what is open right now, the file lane sees everything except that.",
"An ungranted Safari server is not a slower Safari server, it is a",
"different and much smaller one.",
"",
"Apple Events is a READ lane here as well as a write one, which no",
"other surface does, and that does not breach the lane policy in",
"docs/distribution.md: the policy forbids a slow Apple Events read",
"lane that DUPLICATES the file lane. Live tabs are not duplicated by",
"anything. The file lane cannot answer 'what is open right now' at",
"any price, because Safari never writes it down.",
"",
"storePath names History.db, but the grant covers a directory:",
"Bookmarks.plist sits beside it and holds the Reading List. One file",
"is named because the status row needs one path to test, and history",
"is the larger half.",
"",
"supportsWrites was FALSE for v0.1, on the grounds that opening a URL",
"or adding to the Reading List is an Apple Event that navigates a",
"real, visible browser. True of the first and false of the second:",
"add reading list item opens nothing and loads nothing, which is why",
"it was the write to build first. It covers exactly two tools.",
"",
"The writes need NO Full Disk Access, which nothing else here can say.",
"Both are Apple Events, so this is the one surface whose write lane",
"works on a machine where its read lane does not.",
"",
"Neither write is undoable by this server. The Reading List has no",
"remove verb in the dictionary at all, so a duplicate add is",
"permanent as far as Cupertino is concerned, and the tool says so.",
"",
"A THIRD permission exists and is STILL deliberately not needed, and",
"the write lane is where that gets tested. Safari's `do JavaScript`",
"requires 'Allow JavaScript from Apple Events', a developer-menu",
"toggle that is not a TCC grant and whose own state is unreadable.",
"It is the only verb that can act inside a page, and it is not",
"shipped: a navigation verb is not a scripting verb. The consequence",
"is a scheme allowlist rather than a comment \u2014 navigating a tab to a",
"javascript: URL would be `do JavaScript` through the front door, so",
"the write lane accepts http and https and nothing else. That is what",
"keeps Permissions.swift's two-state model honest for this surface.",
"",
"Clicking, typing and scrolling went to the EXTENSION lane, where",
"Safari gates access one website at a time, not to Apple Events,",
"which is all-or-nothing and permanent. They are built, and they send",
"no Apple Event at all: the server drops a command in the appex's own",
"container, the content script's poll claims it, and the answer comes",
"back the same way. The container is readable AND writable by any",
"same-user process \u2014 measured both ways \u2014 so this lane needs no TCC",
"grant of any kind, only the per-site consent Safari already collects.",
"",
"`dispatch message to extension` was the candidate for waking the",
"extension instead of polling, and it was MEASURED and rejected: it",
"accepts an empty dictionary and a bogus extension identifier without",
"complaint and returns nothing, so a message that went nowhere cannot",
"be told from one that arrived. Polling costs a native round trip per",
"allowed page per second, and is the only route with no Apple Event",
"anywhere in it. See docs/safari.md.",
"",
"The `gates` entry below is the second on any surface, and like the",
"first it gates a READ. It is NOT behind allowWrites for the same",
"reason: that flag means \"may change something\", and reaching a read",
"through it would mean granting the right to click a button in order",
"to see a number.",
"",
"What it governs is narrow and deliberately so. `page_elements`",
"always redacts a CREDENTIAL field \u2014 a password or a card number \u2014",
"whatever this flag says, because no tool here has a use for one. The",
"flag governs the other class: a one-time-code field, whose value is",
"withheld by default and returned when it is on. It also registers",
"`apple_safari_find_codes`, which reads a code the page RENDERS AS",
"TEXT and that no element enumeration can see.",
"",
"This gate is WEAKER than the Messages one and the difference should",
"not be papered over. There, off means the codes tool does not exist",
"and the alternative is sifting whole threads. Here `read_page` stays",
"ungated, so off means only the targeted field read and the live DOM",
"scan are gone \u2014 not every byte of a page. See docs/passwords.md for",
"why the Passwords app itself is unreachable and this is what ships",
"in its place.",
"",
"The THIRD gate, `allowNetwork`, is also a READ gate and is also not",
"behind allowWrites, for the same reason as the second: it registers",
"three tools that look at what a page fetched, and looking is not a",
"write. It is a separate switch rather than part of `allowCodes`",
"because it is a different class of exposure. A code is one string",
"with a short life; the traffic of a signed-in page is session",
"material, API responses and anything the page was ever sent, and a",
"user who is comfortable with the first has said nothing about the",
"second. Off, none of the three tools exists.",
"",
"WHY BODIES CANNOT BE REDACTED. Headers have names, so the ones that",
"carry credentials (authorization, cookie, set-cookie, anything with",
"token, secret or api-key in the name) are masked to their length. A",
"body has no names to match: a token can sit in any string of any",
"JSON, and a filter that caught most of them would teach the model",
"that what it was handed was safe. So bodies come back as the page",
"saw them, the tool descriptions say so, and the gate is where the",
"user decides whether that is acceptable.",
"",
"Two things inside those tools need allowWrites ON TOP of the gate:",
"`reload`, which re-runs a page and can re-send a form's request, and",
"`saveAs`, which writes a file into APPLE_SAFARI_DOWNLOAD_DIR. The",
"gate on its own therefore never changes anything. Like the click",
"lane, the capture itself goes through the extension and so inherits",
"Safari's per-website consent, and it sees only the top frame: no",
"subframes, no workers, no WebSockets. See docs/safari.md.",
"",
"allowCookies is the fourth read gate, and the first that is not",
"enough on its own. A login cookie IS the login, so the switch alone",
"would hand any agent any session in the browser. Its `value` is the",
"second gate: the sites the user lists, passed as",
"APPLE_SAFARI_COOKIE_HOSTS only while the switch is on, and an empty",
"list refuses every page. Values never come back inline; saveAs",
"writes named ones to a 0600 file and needs allowWrites too."
],
"gates": [
{
"id": "allowCodes",
"envSuffix": "ALLOW_CODES",
"label": "Read one-time codes",
"description": "Lets Safari tools read a one-time 2FA code from a page you have allowed the extension on. Off by default."
},
{
"id": "allowNetwork",
"envSuffix": "ALLOW_NETWORK",
"label": "Read network traffic",
"description": "Lets Safari tools record what a page you have allowed the extension on fetches, and read the responses. Off by default."
},
{
"id": "allowCookies",
"envSuffix": "ALLOW_COOKIES",
"label": "Read cookies",
"description": "Lets apple_safari_cookies list a page's cookies, HttpOnly ones included, on the sites below only, so a signed-in session can be handed to a local tool. Values never come back to the agent; saving them to a private file also needs writes. Off by default.",
"value": {
"envSuffix": "COOKIE_HOSTS",
"label": "Sites",
"placeholder": "yahoo.com, example.org"
}
}
]
},
{
"id": "maps",
"displayName": "Maps",
"kind": "app",
"npmName": "@mgcrea/mcp-apple-maps",
"runtime": "node",
"bundleId": "com.apple.Maps",
"iconPath": null,
"symbol": null,
"usesAppleEvents": false,
"appleEventsScope": null,
"supportsWrites": true,
"defaultEnabled": true,
"storePath": "Library/Containers/com.apple.Maps/Data/Maps/MapsSync_0.0.1",
"storePermission": "full-disk-access",
"envPrefix": "APPLE_MAPS_",
"notes": [
"The FIRST surface with usesAppleEvents FALSE. Maps ships no scripting",
"dictionary at all: there is no .sdef in /System/Applications/Maps.app,",
"checked directly rather than inferred from NSAppleScriptEnabled. So this",
"is the first entry that does not widen the Apple Events consent string,",
"and the first server in the bundle that can never send an Apple Event.",
"",
"Its file lane is MANDATORY for the same reason Messages' is: there is no",
"second lane to degrade to. Without Full Disk Access there is no slower",
"Maps server, there is no Maps server.",
"",
"storePath names a file with NO EXTENSION, which is why this surface was",
"declared 'no file lane' three separate times before it was found. A sweep",
"for *.db / *.sqlite* misses it entirely. It also sits in Data/Maps/, the",
"one directory of Maps' container that Full Disk Access gates, so a listing",
"taken without the grant omits the directory and the omission reads as",
"absence of data. And group.com.apple.Maps is a decoy: it exists, it is",
"EPERM rather than empty, and it holds three files that are not the store.",
"",
"The version in the name will move. packages/maps/src/client/locate.ts",
"falls back to scanning for a MapsSync_* sibling rather than reporting a",
"rename as 'Maps has never been used'. A glob is not used, for the reason",
"the Reminders entry gives: resolveStore only expands one in a directory",
"component.",
"",
"supportsWrites is TRUE, and the FALSE that stood here was wrong three",
"times. The reasoning was that the store is mirrored to iCloud by",
"NSPersistentCloudKitContainer, so a write is not a write to a file but an",
"edit to one replica of a synchronising object graph, underneath a running",
"app that is also editing it. That measured what Maps DOES; a write only",
"has to do what Maps REQUIRES, which is three tables rather than eight.",
"It is TRUE for Cupertino only: since 2026-11-11 the npm package writes",
"nothing, and every Maps write goes through the store lane below.",
"",
"Columns are resolved BY COVERAGE rather than by name, which no other",
"surface has needed. ZHISTORYITEM carries both ZLATITUDE (1 row of 33) and",
"ZLATITUDE1 (19 of 33); taking the first recognised name would report that",
"Maps holds almost no coordinates.",
"",
"Maps has no scripting dictionary and registers no App Intents on macOS,",
"so writes take one route, and only in Cupertino. Hosted by Cupertino,",
"the five write tools go through this app's store lane",
"(StoreLane/MapsWriter.swift), which saves through Core Data with Maps'",
"own model, as a change made in Maps is. On macOS 27.2, model checksum",
"CaxhFkDDBEvVUHzx/wKUv4k+QehKTgcfEuPWR91+uhk=, every one was seen on a",
"Mac and an iPhone on 2026-11-11, one with Maps quit and mapssyncd",
"exporting alone; on another model the result says sync is not yet",
"measured. Run from npm the server registers no write tool. Its SQL and",
"Accessibility routes were retired on 2026-11-11, after the watch found",
"the SQL inserts never mirrored and saw Maps convert favourites that look",
"like them (no mirror row, no shortcutIdentifier, a small positionIndex)",
"into saved places. The place record cannot be synthesised, so it is",
"never fabricated: the place is opened through the maps:// URL scheme,",
"Maps mints the record into Recents, and it is copied. That leaves a",
"Recents entry, which the tools disclose. See docs/maps.md, \"The store",
"lane\"."
]
},
{
"id": "voice-memos",
"displayName": "Voice Memos",
"kind": "app",
"npmName": "@mgcrea/mcp-apple-voice-memos",
"runtime": "node",
"bundleId": "com.apple.VoiceMemos",
"iconPath": null,
"symbol": null,
"usesAppleEvents": false,
"appleEventsScope": null,
"supportsWrites": true,
"defaultEnabled": true,
"storePath": "Library/Group Containers/group.com.apple.VoiceMemos.shared/Recordings/CloudRecordings.db",
"storePermission": "full-disk-access",
"envPrefix": "APPLE_VOICE_MEMOS_",
"notes": [
"usesAppleEvents is FALSE: VoiceMemos.app ships no .sdef and no",
"NSAppleScriptEnabled. It does register App Intents (DeleteRecording,",
"CreateFolder, RecordVoiceMemoIntent and more), and nothing outside",
"Shortcuts can invoke one. The first surface with a write vocabulary and no",
"way to reach it. docs/voice-memos.md lists them for a future Shortcuts lane.",
"",
"The file lane is MANDATORY, as for Maps and Messages: without Full Disk",
"Access group.com.apple.VoiceMemos.shared is EPERM, not empty, and there is",
"no second lane. The store sits in the same directory as the audio, so that",
"directory is also the root every ZPATH is confined to.",
"",
"ZENCRYPTEDTITLE holds the title IN PLAINTEXT despite its name, and",
"ZCUSTOMLABEL is not a title but the date-shaped default label. Reading the",
"label as the title makes every unnamed memo look named.",
"",
"Apple's transcript is embedded in the audio file, in two containers: a tsrp",
"box at moov/trak/udta in .m4a, and the keyed item com.apple.VoiceMemos.tsrp",
"in moov/trak/meta in .qta, whose meta is a plain box while the ISO one is a",
"FullBox. Only box headers and the payload are read; mdat never is.",
"",
"supportsWrites is TRUE. save_recording copies the audio into a confined",
"folder, as Messages' save_attachment does. Rename, move, favourite, delete",
"and restore write the store, but never from node: the server asks this app's",
"store lane (StoreLane/), which saves through Core Data with Voice Memos' own",
"model so iCloud uploads the change. A SQL write to this CloudKit-mirrored",
"store stays on the Mac for good; see docs/voice-memos.md, \"Writing\"."
]
},
{
"id": "screen",
"displayName": "Screen",
"kind": "capability",
"npmName": null,
"runtime": "swift",
"bundleId": null,
"iconPath": "/System/Library/ExtensionKit/Extensions/DisplaysExt.appex",
"symbol": "display",
"usesAppleEvents": false,
"appleEventsScope": null,
"supportsWrites": false,
"defaultEnabled": false,
"storePath": null,
"storePermission": "screen-recording",
"envPrefix": "APPLE_SCREEN_",
"notes": [
"The FIRST surface that is not an app. Every other entry brokers one",
"Apple application; this one brokers a system capability, which is why",
"bundleId and npmName are both null and why it is the first row where",
"SurfaceIcon has no icon to ask LaunchServices for.",
"",
"A FIFTH lane, and the first to need what docs/surfaces.md calls the",
"'neither' row of the lane table: a framework linked into the app.",
"ScreenCaptureKit is unreachable from node, and a server is handed",
"PATH=/usr/bin:/bin, so /usr/sbin/screencapture is not callable either.",
"Hence runtime 'swift' \u2014 served in-process by ServerHost. The bridge",
"cannot tell the difference because it never parses JSON-RPC. An npm",
"package is not merely absent but impossible: the grant lives in the",
"app, so a published @mgcrea/mcp-apple-screen could do nothing.",
"",
"MEASURED, macOS 26.6, see docs/screen.md. Capture is ~30 ms a window.",
"SCContentFilter(desktopIndependentWindow:) composites a window that is",
"100% COVERED by another app, so this is passive observation and never",
"has to raise anything. kTCCServiceScreenCapture is held by this",
"LSUIElement Developer-ID bundle, inherited by processes it spawns, and",
"survives both re-signing and the bundle moving \u2014 the same identifier +",
"certificate rule Full Disk Access follows.",
"",
"SCOPING BUYS AUDITABILITY, NOT A SMALLER GRANT, and the copy must not",
"drift from that. kTCCServiceScreenCapture is per-process and",
"all-or-nothing: macOS has no per-target scoping, so capturing Mail",
"costs the identical grant as capturing the display Passwords happens to",
"be sitting on. What bounds it is Surface.all, checked in Swift \u2014 the",
"same trade the closed table already makes for Full Disk Access.",
"During the probe, Passwords.app and Keychain Access were both running",
"with open windows and neither is reachable, by construction.",
"",
"The gate below is the THIRD on any surface and the first that is not",
"about one-time codes. It is off by default and it SUPERSEDES the",
"allowCodes gates on messages and safari \u2014 a Safari window renders a",
"one-time code whatever APPLE_SAFARI_ALLOW_CODES says, and pretending",
"otherwise would make those gates decorative. See docs/passwords.md.",
"",
"supportsWrites is FALSE even though capture puts a PNG on disk, which",
"is the reason the three save_attachment tools sit behind allowWrites.",
"A second gate would be worse than none: allowCapture already gates the",
"only tool that writes anything, and it is strictly stronger \u2014 off by",
"default rather than off-by-default-and-then-usually-on.",
"",
"A RAW ENUMERATION IS NOT A TARGET LIST. Mail reports 16 windows and",
"has one; the rest are shadows, toolbars and helper layers. Targets are",
"filtered to windowLayer 0, at least 100x100, and on-screen-or-titled.",
"And enumerable is not capturable: a titled window can still fail",
"SCScreenshotManager with -3811, so list_targets must not promise a",
"window capture_surface cannot grab.",
"",
"Window titles are withheld by default. 178 of 547 windows exposed one",
"on the probed machine \u2014 a mail subject, a chat name, a document. Same",
"rule ~/Library/HomeKit taught: a name can be the payload.",
"",
"No display capture and no region capture in v1. Those are the",
"general-vision feature, and shipping them means the allowlist never",
"existed. Widening later is deleting a check.",
"",
"SCOPING IS NOW CONDITIONAL, and the note above must be read with",
"this one. The closed table still bounds capture by default, and",
"allowAnyApp widens it to any running application. The auditability",
"claim holds exactly while that switch is off, which is how it",
"ships; with it on, the bound is the surface being enabled at all.",
"",
"The switch exists because the table was the wrong shape for driving",
"an app under development: desktop can address any application and",
"screen could photograph the eight it then brokered, so seeing what was just clicked was",
"impossible for anything outside the table. Two gates, same default,",
"and neither surface widens without a deliberate flip."
],
"gates": [
{
"id": "allowCapture",
"envSuffix": "ALLOW_CAPTURE",
"label": "Allow screen capture",
"description": "Lets apple_screen_capture_surface take a picture of a surface app's window. Needs Screen Recording, supersedes the one-time-code gates, and is off by default."
},
{
"id": "allowAnyApp",
"envSuffix": "ALLOW_ANY_APP",
"label": "Capture any application",
"description": "Lets capture reach any running application rather than only the Apple apps Cupertino brokers. Off by default. Screen Recording is per-process and all-or-nothing, so this switch -- not the system -- is what bounds which windows can be photographed."
}
]
},
{
"id": "sound",
"displayName": "Sound",
"kind": "capability",
"npmName": null,
"runtime": "swift",
"bundleId": null,
"iconPath": "/System/Library/ExtensionKit/Extensions/Sound.appex",
"symbol": "speaker.wave.2",
"usesAppleEvents": false,
"appleEventsScope": null,
"supportsWrites": true,
"defaultEnabled": false,
"storePath": null,
"storePermission": "microphone",
"envPrefix": "APPLE_SOUND_",
"notes": [
"The SECOND capability, and the first that is two features wearing one",
"name. Speakers and microphone have almost nothing in common: the output",
"half needs NO permission at all and the input half needs a TCC class the",
"app had never held. docs/sound.md keeps them apart and so does the gate.",
"",
"supportsWrites is TRUE, unlike screen, and the difference is the point.",
"screen set it false because allowCapture already gated its only writing",
"tool. Here volume, mute, speak and the default device are mutations",
"that are NOT recording, and they have to be reachable without ever",
"enabling the microphone. Two independent gates, following the",
"allowCodes precedent: a change of tier gets its own switch rather",
"than allowWrites.",
"",
"MEASURED, macOS 26.6, see docs/sound.md. 4 devices in 28 ms. The default",
"output AND input devices are both settable, and that is the one",
"capability with no CLI and no AppleScript equivalent anywhere \u2014 it is",
"why this is CoreAudio rather than osascript. 3 of 4 devices expose no",
"volume control at all, which is hardware rather than a failure, so",
"get_volume reports it per device instead of erroring.",
"",
"The microphone grant lands on the bundle, is inherited by a grandchild",
"and survives a rebuild and re-sign \u2014 measured through spike-app-tcc",
"lane 2d, not inherited from the Full Disk Access verdict. That",
"generalisation was already wrong once, for Accessibility.",
"",
"NOT INVISIBLE, and the copy must not imply otherwise. macOS shows a",
"non-suppressible orange indicator naming Cupertino for as long as the",
"microphone is live. Routing recording through QuickTime instead would",
"have made that indicator say QuickTime \u2014 borrowed visibility that",
"hides the agent behind an app the user never asked to record, which is",
"the opposite of the attribution docs/alternatives.md claims as a win.",
"",
"RECORD TO CAF, NEVER M4A. Same AAC codec, byte-identical size, and a",
"truncated m4a is not a short recording but NO recording: measured, it",
"fails AudioFileOpenURL outright while the CAF still opens with intact",
"duration and format. stop() must also run on app termination, because an",
"unfinalised container is the same total loss."
],
"gates": [
{
"id": "allowRecording",
"envSuffix": "ALLOW_RECORDING",
"label": "Allow microphone recording",
"description": "Lets apple_sound_start_recording capture from the microphone to a file. Needs the Microphone permission, shows the system's orange indicator while it runs, and is off by default."
}
]
},
{
"id": "desktop",
"displayName": "Desktop",
"kind": "capability",
"npmName": null,
"runtime": "swift",
"bundleId": null,
"iconPath": "/System/Library/CoreServices/Finder.app",
"symbol": "macwindow.on.rectangle",
"usesAppleEvents": false,
"appleEventsScope": null,
"supportsWrites": true,
"defaultEnabled": false,
"storePath": null,
"storePermission": "accessibility",
"envPrefix": "APPLE_DESKTOP_",
"notes": [
"The THIRD capability, and the first that reaches every application on the",
"Mac rather than one the project brokers. bundleId is null because there is",
"no target: the surface addresses whatever is running.",
"",
"A SIXTH lane. Not Apple Events, not the file lane, not ScreenCaptureKit --",
"AXUIElement, called natively. That distinction is the whole surface, and it",
"is why this exists at all: every Accessibility measurement this project",
"took before 2026-09-05 went through osascript + JXA + System Events, one",
"Apple Event per attribute. docs/safari.md priced that at 33.6 ms a round",
"trip and docs/maps.md at ~14 s for a place card, and both numbers were",
"measuring the transport rather than the API.",
"",
"MEASURED, macOS 26.6, see docs/desktop.md. 13,960 nodes across seven apps",
"at 1.24 ms a round trip -- 27x cheaper -- and the same Maps place card in",
"0.177 s. 86% of pressable elements carry an identifier, title or",
"description, so controls are addressable by NAME rather than by position,",
"which is what separates a driver from a screen-scraper.",
"",
"Cost per round trip varies 206x BETWEEN APPS (Safari 0.022 ms, Contacts",
"4.537 ms), so a node cap does not bound time: Contacts' 2401 nodes cost",
"65 s while Notes' 9770 cost 37 s. Every walk carries a wall-clock budget",
"and names the bound that stopped it.",
"",
"supportsWrites is TRUE and defaultEnabled is FALSE, like screen and sound.",
"The reach is the reason: Accessibility is per-process and all-or-nothing,",
"so a grant that lets this press a button in Maps lets it press one in",
"anything. What bounds it is this table and the write gate, never the",
"system.",
"",
"npmName is null and could not be otherwise. The grant lands on the",
"RESPONSIBLE GUI ANCESTOR -- measured: an unsigned main.swift in",
"/var/folders answered AXIsProcessTrusted() true by inheriting the editor",
"that started the chain. A published package would ask a person to grant",
"their editor the right to drive every app on the Mac, which is the",
"misattribution docs/alternatives.md names as the thing no competitor",
"solves. Homebrew's node is ad-hoc signed, so such a grant would also die",
"at the next upgrade.",
"",
"TWO independent gates, and they bound different things. allowWrites",
"decides whether it can ACT; allowAnyApp decides how far it can REACH.",
"Both default off, so the shipped surface reads the structure of the",
"brokered apps -- nine, Simulator.app included -- and nothing else,",
"the same remit screen has, by the same closed table.",
"",
"The scope gate exists because Accessibility does not scope to a target.",
"The grant that lets this read a Maps place card is the grant that lets",
"it read anything, so the bound has to come from this table rather than",
"from the system -- the argument docs/screen.md makes for its own closed",
"table, and it applies here with more force because this surface can",
"also press."
],
"gates": [
{
"id": "allowAnyApp",
"envSuffix": "ALLOW_ANY_APP",
"label": "Reach any application",
"description": "Lets this surface read, drive and start ANY application rather than only the Apple apps Cupertino brokers. Off by default: Accessibility does not scope to a target, so this is the difference between a surface that stays inside its own remit and one that reaches the whole Mac."
}
]
},
{
"id": "simulator",
"displayName": "Simulator",
"kind": "app",
"npmName": null,
"runtime": "swift",
"bundleId": "com.apple.iphonesimulator",
"iconPath": null,
"symbol": null,
"usesAppleEvents": false,
"appleEventsScope": null,
"supportsWrites": true,
"defaultEnabled": false,
"storePath": null,
"storePermission": "accessibility",
"envPrefix": "APPLE_SIMULATOR_",
"notes": [
"The FIRST app surface served in-process, and the first that arrives OFF.",
"Every other app entry is an npm package with a file lane; this one has",
"neither, because what it brokers is the Accessibility lane into",
"Simulator.app, and that grant lands on the responsible GUI ancestor --",
"the reason desktop has npmName null applies here unchanged.",
"",
"MEASURED, macOS 26.6, see docs/simulator.md. Simulator.app bridges the",
"simulated device's accessibility tree into the Mac's: inside the device",
"window sits an AXGroup whose size is the device's point size times the",
"window scale, and its children are the iOS app's own controls. The",
"surface answers in iOS POINTS -- the space ios_simulator_tap and",
"ios_simulator_screenshot use -- with the scale derived from the measured",
"group against CoreSimulator's profile.plist, never assumed to be 1.",
"",
"It reaches ONE application and no gate widens it. The driver is scoped",
"to this bundle id the way ServerHost scopes a lend, so \"Reach any",
"application\" on Desktop is neither needed nor consulted. That is the",
"whole reason this is a surface rather than a paragraph in Desktop's",
"guide: driving a developer's own app used to cost opening the Mac.",
"",
"Adding a bundleId here puts Simulator.app into the brokered set that",
"desktop and screen read from Surface.all, BY DESIGN. Desktop reaches it",
"without its scope gate and screen can photograph its window. The count",
"in every 'the N applications Cupertino brokers' string moves with it.",
"",
"No lifecycle, no screenshot, no push, no staging. Those need no grant and",
"belong to @mgcrea/mcp-ios-simulator, which Bastion runs beside this;",
"duplicating simctl behind a TCC grant would be a worse copy of it. What",
"this adds is the lane that server cannot have: named, pressable elements",
"with no WebDriverAgent runner to keep alive.",
"",
"supportsWrites is TRUE: press, tap, swipe, type, key and press_button are",
"registered only with the write flag on, like Desktop's driving verbs.",
"",
"iconPath and symbol are null because kind is app: LaunchServices finds",
"Simulator.app inside Xcode. On a Mac without Xcode the row renders the",
"not-installed glyph, which is the truth."
]
},
{
"id": "shell",
"displayName": "Shell",
"kind": "capability",
"npmName": null,
"runtime": "swift",
"bundleId": null,
"iconPath": "/System/Applications/Utilities/Terminal.app",
"symbol": "terminal",
"usesAppleEvents": false,
"appleEventsScope": null,
"supportsWrites": false,
"defaultEnabled": false,
"storePath": null,
"storePermission": "full-disk-access",
"envPrefix": "APPLE_SHELL_",
"notes": [
"The one surface that is not bounded by what it reaches. Every other",
"entry brokers one application or capability through a narrow tool set,",
"behind write switches, gates and account allowlists. A script running",
"under Cupertino's grants gets past all of them: it can read chat.db,",
"the Envelope Index, Safari history and anything else Full Disk Access",
"opens, and send Apple Events to every app Cupertino may already drive.",
"An agent that reads a mail or a page saying 'run this' is the",
"realistic attack.",
"",
"THE CONFIRMATION WINDOW IS THE ONLY SAFEGUARD LEFT, and 'Don't ask'",
"removes it. So the window shows the script itself, not a summary; the",
"safe answer is the default; and even with the window off a run is",
"never invisible. 'Shell is on' and 'Don't ask' count only with a seal",
"Cupertino made (ShellSeal), so a program that can write the",
"preferences cannot turn a shell into Full Disk Access.",
"",
"supportsWrites is FALSE and there is no gate, following screen's note:",
"running a script is the only thing the surface does, so the surface",
"switch is the gate, and a second switch would be on whenever the first",
"is. usesAppleEvents is false because the surface sends none itself; a",
"script may, under its own grants.",
"",
"storePermission is full-disk-access, but the surface works without it:",
"a script then has whatever else Cupertino holds, and diagnostics say so.",
"Every request leaves a line in the run record (ShellRecord), whatever",
"the activity and audit settings. See docs/superpowers/specs/",
"2026-10-27-shell-surface-design.md."
]
}
]
}