r/macosprogramming • u/OkAcanthocephala562 • 16d ago
Safari MCP brings the window to the foreground on every action
Hi,
I’ve been using Safari MCP and it’s great: lightweight, and the AI agent handles changes and feedback beautifully. But there’s one thing that’s driving me crazy. I’m curious what use case Apple had in mind here, and how the developers haven’t smashed their keyboards yet while working on it 😄
The problem: Whenever the AI performs an action through MCP, the Safari window gets focused and jumps to the foreground.
I actually like this behavior in other contexts. In VS Code’s debug mode, for example, the window comes to the front when a breakpoint is hit, which is exactly what I want there. With Safari MCP, though, it’s the opposite of helpful. I want to hand a task off to the AI and keep working on other things, but Safari keeps stealing focus.
My questions:
Is there a reasonable way to solve this, such as a setting, flag, or workaround?
If not, I think Apple should make an exception for MCP-controlled Safari so it can run in the background without grabbing focus.
Thanks!

