claude-code - 💡(How to fix) Fix Macos MCP connector crashes after ~17h despite system sleep being prevented

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The built-in Macos MCP connector (installed via Preferences → Connectors) exits unexpectedly after extended uptime. The Mac does not sleep — system sleep is actively prevented by Claude itself — so this is not a wake-from-sleep issue.

Error Message

Server started cleanly at session boot, tools listed successfully. After ~17 hours of uptime with no activity on the Macos MCP tools, the process exited:

Root Cause

The built-in Macos MCP connector (installed via Preferences → Connectors) exits unexpectedly after extended uptime. The Mac does not sleep — system sleep is actively prevented by Claude itself — so this is not a wake-from-sleep issue.

Code Example

2026-05-18T00:56:00.048Z [Macos] [info] Server transport closed
2026-05-18T00:56:00.081Z [Macos] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2026-05-18T00:56:00.095Z [Macos] [error] Server disconnected. For troubleshooting guidance, please visit our debugging documentation

---

sleep                0 (sleep prevented by coreaudiod, sharingd, Claude, powerd, Claude)
displaysleep         5
hibernatemode        3
standby              1
RAW_BUFFERClick to expand / collapse

Summary

The built-in Macos MCP connector (installed via Preferences → Connectors) exits unexpectedly after extended uptime. The Mac does not sleep — system sleep is actively prevented by Claude itself — so this is not a wake-from-sleep issue.

Environment

  • macOS: 26.4.1 (Build 25E253, arm64)
  • Claude Desktop: 1.7196.0
  • MCP connector: Macos (built-in, installed via Preferences → Connectors)

Observed behavior

Server started cleanly at session boot, tools listed successfully. After ~17 hours of uptime with no activity on the Macos MCP tools, the process exited:

2026-05-18T00:56:00.048Z [Macos] [info] Server transport closed
2026-05-18T00:56:00.081Z [Macos] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2026-05-18T00:56:00.095Z [Macos] [error] Server disconnected. For troubleshooting guidance, please visit our debugging documentation

Power management state at time of crash

System sleep was not a factor — Claude was actively preventing it:

sleep                0 (sleep prevented by coreaudiod, sharingd, Claude, powerd, Claude)
displaysleep         5
hibernatemode        3
standby              1

Expected behavior

Connector process should remain alive for the duration of the Claude session, or auto-restart on exit.

Notes

  • The connector does reconnect on next session start — no user action required
  • No stderr output was produced by the Macos MCP process at crash time (based on log content)
  • The crash appears to be an idle-timeout or uncaught exception in the connector process itself

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Connector process should remain alive for the duration of the Claude session, or auto-restart on exit.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Macos MCP connector crashes after ~17h despite system sleep being prevented