My Mac kept freezing while I ran coding agents
It has 24 GB of RAM. Swap sat at 38.7 GB out of 39.9
Nothing heavy was open. Just a few agent sessions, or so I thought
TL;DR
Each agent session starts its own copy of every MCP server in its global config
Desktop agent apps keep old sessions alive for days, and their MCP servers stay up with them
My Mac had 94 sessions holding 555 MCP server processes
Moving servers into project configs and closing old sessions fixes most of it
prismor discover mcp --prune --stop ended 373 copies in 6 seconds and gave me back 21 GB of swap
1. What was running
My cleanup script flagged 287 processes. Most were two lines repeated about a hundred times each:
npm exec get-an-expert-agent@latest npm exec @microsoft/clarity-mcp-server
Enter fullscreen mode
Exit fullscreen mode
Both are MCP servers.…