Repository navigation
Add an Allow writes setting for each service - #342
Closed
oliverames wants to merge 8 commits into
Closed
oliverames wants to merge 8 commits into
oliverames wants to merge 8 commits into
Conversation
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
force-pushed
the
feat/service-write-toggle
branch
from
November 17, 2026 17:57
0cfe886 to
700c13a
Compare
This was referenced Nov 17, 2026
Contributor
Author
|
Replaced by #377, the same change cut from main as one PR so it can merge on its own. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
notesWritesEnabledvalue carries over.Testing
Not verified