Repository navigation
Conversation
mattt
marked this pull request as ready for review
October 26, 2026 18:33
4 tasks done
This was referenced Nov 16, 2026
oliverames
pushed a commit
to oliverames/iMCP
that referenced
this pull request
Nov 17, 2026
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
pushed a commit
to oliverames/iMCP
that referenced
this pull request
Nov 17, 2026
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.
This was referenced Nov 18, 2026
Contributor
|
@mattt In case it saves you a step when you pick this back up: #390 is the helper on this branch with the two changes you asked for there. The |
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.
This PR adds
messages_sendto send text through Messages using Apple Events. It accepts a phone number or email address with an optional service (iMessage by default, SMS or RCS), or an existingchatIdwithout a service override; iMCP must be able to read that conversation's participants and service from chat.db.Each send needs confirmation in iMCP. The window shows the client name when available, recipient, service, and full text. Canceling or leaving it unanswered for 50 seconds sends nothing. Only one confirmation is shown at a time; a send requested while one is open fails without sending, and Send is disabled for half a second when the window appears. There's no "always allow" option. Success means Messages accepted the message. If exactly one new row in chat.db matches within 5 seconds, and no equivalent send overlapped, the result includes its
@id(a best match, not a guarantee) and conversation for a delivery check withmessages_fetch; otherwise, or for a phone number without a country code, the result has no@id.Both app entitlements add
com.apple.MobileSMSto the Apple Events exception, and the usage description now includes Messages. A prior Automation denial returns an error before confirmation; otherwise, macOS can ask for permission after Send. Messages scripts run on a background queue; #307 moves Music onto it.Still needed: check the full iMCP confirmation and Automation flow, new recipients, iMessage and RCS sends, and the sent-message lookup and delivery fields against real sends. Client-name capture also needs a fix: handlers can capture the name before initialization supplies it. Attachments aren't supported by
messages_send.Part of #78.