Skip to content

Use plain-language system voice in folder-access alerts - #382

Merged
mattt merged 1 commit into
mattt:mainfrom
oliverames:pr/menu-bar
Nov 20, 2026
Merged

mattt merged 1 commit into
mattt:mainfrom
oliverames:pr/menu-bar

Conversation

@oliverames

Copy link
Copy Markdown
Contributor

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 main so it can merge on its own. No behavior of the MCP server changes.

Why

A MenuBarExtra window with .window style 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 NSStatusItem that opens a borderless NSPanel clipped to 10 pt, instead of a MenuBarExtra. A real NSMenu would 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:

  1. macOS 27 conventions and About window (the two commits from Follow macOS 27 conventions in the menu and windows #346): rows are real Buttons, so they work with the keyboard and VoiceOver; the system background replaces Material.thick; semantic fonts and foregroundStyle; 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.
  2. Status item with its own panel: MenuBarController owns 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. MenuStructure decides which items appear and in which groups, so a unit test can check it. App.swift keeps a never-inserted MenuBarExtra scene because it carries the app-level handlers (server on or off, show or hide the item, open Settings).
  3. Native highlight and radius: 10 pt panel, 6.5 pt continuous row highlight in the system accent color with the selected-menu-item text color, tight native row spacing, and the colored circular service icons from 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

  • Build: xcodebuild -scheme iMCP -configuration Debug -destination platform=macOS succeeds.
  • Tests: imcp-serverTests runs 178 tests with 1 skipped and 0 failures. MenuStructureTests adds 3 (group order, services hidden while the server is off, every action appears once with a title).
  • swift format lint --strict is clean.
  • CI: see the checks on this PR.
  • Live: I used the menu panel from a signed build of this design on my Mac daily, and compared the hover highlight and corner radius by screenshot against the native menu of another menu bar app.

Not verified

  • VoiceOver on the panel and the new rows.
  • Panel placement near screen edges and on multiple displays.
  • Full-screen spaces.
  • Removing the menu bar item (Command-drag) and adding it back from Settings.
  • Toggling services while the panel is open with a long service list (the list scrolls when the screen is short).
  • The standard About panel and the reworded alerts in a running build of this branch.

Replaces #346.

The folder-access alerts say what iMCP needs in the system's voice, without 'we' or 'please'.
@oliverames oliverames changed the title Menu bar: follow macOS 27 conventions, with a native highlight, corner radius and its own panel Use plain-language system voice in folder-access alerts Nov 20, 2026
@oliverames

Copy link
Copy Markdown
Contributor Author

Trimmed this down to just the folder-access alert wording from af74562. Ready for another look.

@mattt
mattt merged commit 2f4ef47 into mattt:main Nov 20, 2026
2 checks passed
@oliverames
oliverames deleted the pr/menu-bar branch November 20, 2026 21:34
oliverames pushed a commit to oliverames/iMCP that referenced this pull request Nov 20, 2026
# Conflicts:
#	App/Services/Notes.swift
#	iMCP.xcodeproj/project.pbxproj
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.

2 participants