Skip to content

Add an Allow writes setting for each service - #342

Closed
oliverames wants to merge 8 commits into
mattt:mainfrom
oliverames:feat/service-write-toggle
Closed

oliverames wants to merge 8 commits into
mattt:mainfrom
oliverames:feat/service-write-toggle

Conversation

@oliverames

@oliverames oliverames commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #339; review the commits after it. The first 5 commits are #339's. The 3 new ones are shown here.

What it does and why

This adds one "Allow writes" switch per service. While it's off, a service's write tools are hidden from clients, and calling one directly is refused before anything runs. Deletes count as writes. Read-only tools are always available.

What changed

  • A per-service "Allow writes" setting that gates write tools.
  • Services that already write (Calendar, Contacts, Reminders and so on) default to on, so nobody's setup changes. New write features can default to off, and Notes does. An old notesWritesEnabled value carries over.
  • A small reusable confirmation window for outbound sends, with no "always allow". It's meant to back sends like Add a messages_send tool that asks before each send #305 so each one doesn't need its own window.
  • Documentation of Allow writes and its defaults.

Testing

Not verified

Oliver Ames added 8 commits November 17, 2026 12:56
The Notes service is about to create notes and folders through Notes'
scripting interface, which the sandbox permits only for apps listed in
the apple-events exception.
A script built by interpolating text into its source can be changed by
that text. Calling a handler of a fixed script sends each argument as a
typed Apple event descriptor, so no value can alter the script.
Both tools create only. They run handlers of a fixed script in Notes and
pass every value as a parameter. Notes lists them, and runs them, only
while "Allow iMCP to create notes and folders" is on in Notes settings,
which is off by default. Markdown converts to the HTML that Notes keeps.
The README said iMCP never changes notes. Say what the opt-in tools do and
which formatting Notes loses when a note is created through scripting.
Replaces the Notes-only setting. Write tools (readOnlyHint not true) are
hidden from tools/list and refused at call time while a service's setting
is off. notesWritesEnabled migrates to writesEnabled.NotesService.
@oliverames

Copy link
Copy Markdown
Contributor Author

Replaced by #377, the same change cut from main as one PR so it can merge on its own.

@oliverames oliverames closed this Nov 18, 2026
@oliverames
oliverames deleted the feat/service-write-toggle branch November 18, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant