Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By JacobPEvans-aiv6.2.1Apache-2.0In 1 marketplace
Cleanup orphaned MCP server processes on session exit — workaround for upstream bug #1935
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Cleans up orphaned MCP server processes when a Claude Code session exits.
Workaround for upstream Claude Code bug #1935, where MCP server child processes are not reliably terminated when a Claude session ends.
This plugin fires on the Stop event (triggered by /exit or Ctrl+C) and sweeps
system-wide for orphaned processes with ppid=1 — meaning they were reparented to
launchd because their parent terminal died without cleanup.
node processes whose command
line contains mcp or context7; unrelated node processes with those substrings could be affected| Process | Description |
|---|---|
terraform-mcp-server | Terraform/OpenTofu MCP server |
context7-mcp | Context7 documentation MCP server |
node (with MCP args) | Node-based MCP servers with mcp/context7 in arguments |
Cleanup activity is logged to:
~/Library/Logs/claude-process-cleanup/cleanup-YYYY-MM-DD.log
This is a defense-in-depth second layer. The primary cleanup runs via zshexit()
in the parent zsh shell (Layer 1), which catches tab close via SIGHUP. This layer
catches explicit Claude exits (/exit, Ctrl+C) when zshexit may not fire.
Both layers are complementary and safe to run together.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub jacobpevans-ai/claude-code-plugins --plugin process-cleanupPlugins from other owners that cover similar ground