Repository navigation
Use plain-language system voice in folder-access alerts - #382
Merged
Merged
Conversation
This was referenced Nov 18, 2026
The folder-access alerts say what iMCP needs in the system's voice, without 'we' or 'please'.
oliverames
force-pushed
the
pr/menu-bar
branch
from
November 20, 2026 15:10
9cb32a6 to
169f7dc
Compare
Contributor
Author
|
Trimmed this down to just the folder-access alert wording from |
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 makes the menu bar item follow macOS 27 conventions and look like a native menu. It replaces #346 and carries its changes, cut as one PR from current
mainso it can merge on its own. No behavior of the MCP server changes.Why
A
MenuBarExtrawindow with.windowstyle has bigger corners than a native menu. Inspecting the window, the system draws it with a 13.5 pt corner radius, and the shape comes from a private window corner mask that an app can't change. A native menu measures 10 pt, with a 6.5 pt continuous corner on the row highlight. So the panel looked like a window next to every other menu in the bar.The fix is to own the panel. The menu bar item is now an
NSStatusItemthat opens a borderlessNSPanelclipped to 10 pt, instead of aMenuBarExtra. A realNSMenuwould close after every click, and the service rows need to stay open while people turn several on or off, so the content is still SwiftUI.What changed
Three commits:
Buttons, so they work with the keyboard and VoiceOver; the system background replacesMaterial.thick; semantic fonts andforegroundStyle; the custom About window is replaced by the standard About panel; SwiftUI previews for the menu and Settings views; plain-language folder-access alerts for Messages, Notes, Phone, Voice Memos and Voicemail.MenuBarControllerowns the status item and panel, closes it when it loses focus, keeps it on screen near the edges, and reopens correctly when the item is clicked while the panel is open.MenuStructuredecides which items appear and in which groups, so a unit test can check it.App.swiftkeeps a never-insertedMenuBarExtrascene because it carries the app-level handlers (server on or off, show or hide the item, open Settings).Menu content: the Enable MCP Server switch, Services (colored icon rows that stay open on toggle), Configure Claude Desktop, Copy server command to clipboard, then Settings…, Check for Updates…, About iMCP and Quit iMCP. I kept the Claude Desktop and copy-command items, since this branch has nothing else that replaces them and I don't want to remove functionality.
Testing
xcodebuild -scheme iMCP -configuration Debug -destination platform=macOSsucceeds.imcp-serverTestsruns 178 tests with 1 skipped and 0 failures.MenuStructureTestsadds 3 (group order, services hidden while the server is off, every action appears once with a title).swift format lint --strictis clean.Not verified
Replaces #346.