MCP server processes not killed on CLI exit
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the bug
_No response_
### Affected version
_No response_
### Steps to reproduce the behavior
Body: After exiting copilot, ssh-mcp (and other MCP) child processes remain alive in Activity Monitor. Each
consumes ~tens of MB. Expected behavior: CLI should send SIGTERM to all spawned MCP child processes on exit.
Steps to reproduce: 1. Start copilot with SSH MCP servers configured. 2. Exit with Ctrl+D or /exit. 3. Run
pgrep -la mcp — processes still alive.
### Expected behavior
_No response_
### Additional context
_No response_
貢獻指南
研究方向
Start by reproducing the issue from the copilot CLI with an SSH MCP server configured, exiting via Ctrl+D and /exit, then check the remaining processes with `pgrep -la mcp`. Trace the CLI entry point's shutdown and MCP child-process handling; done means all spawned MCP processes receive SIGTERM and no longer remain after exit.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- shell
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100