Repository navigation
Send messages behind Allow writes and a shared confirmation - #344
Closed
oliverames wants to merge 25 commits into
Closed
oliverames wants to merge 25 commits into
oliverames wants to merge 25 commits into
Conversation
oliverames
marked this pull request as ready for review
November 16, 2026 23:03
|
Thanks for bringing Messages sending forward to Allow writes, @oliverames. I can independently validate a signed, sandboxed build of this PR on macOS through the normal @mattt, would you prefer one follow-up PR or two for these changes?
I verified both behaviors in a signed local fork build and can adapt them to the upstream implementation. |
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/messages-send
branch
from
November 17, 2026 17:58
2201923 to
9d2eb2f
Compare
Brings in messages_send from upstream PR 305 and puts it on this branch's Allow writes setting and OutboundConfirming window: - Messages writes start off, and each send is confirmed with no always-allow. - The confirmation names the client from ToolCallContext, the exact recipient handles, the service, and the full text. - The send script is called as an Apple event subroutine with typed parameters through NSAppleScript.Subroutine, which gains an enum code parameter and a beforeSending check. - PR 305's own confirmation view, window controller, gate, and answer type are removed in favor of OutboundConfirmation.
oliverames
force-pushed
the
feat/messages-send
branch
from
November 17, 2026 17:58
9d2eb2f to
c22ba57
Compare
Contributor
Author
|
Thanks for offering to run a signed sandboxed check, @lunaroja. The branch is rebased onto |
This was referenced Nov 17, 2026
Contributor
Author
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.
Review guide. This builds on #342 (itself stacked on #339) and includes the commits of #305 (16 by @mattt). Only one commit is new here: the one after #305 on top of #342 shows all 17. Merge #339, then #342, then this. To try it: turn on Messages writes, then ask a client to send a message and confirm in the window.
What it does and why
This is #305 merged onto the "Allow writes" switch (#342) and the shared send confirmation. It includes #305 and #342, so it can go in on its own or after them.
What changed
messages_sendis off until Messages writes are turned on.Testing
Not verified
imcp-serverclient flow. @lunaroja has offered to check delivery, cancellation, timeout, and the write switch there.