You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP containers (github-mcp-server) not cleaned up after session ends #16397
MCP containers should be stopped and removed when the Claude Code session that spawned them ends.
Actual Behavior
Containers accumulate indefinitely. After 5 days of usage, I found 24 orphaned containers:
CONTAINER ID NAMES STATUS CREATED AT
6ecb8907b9c6 pedantic_elgamal Up 6 hours 2026-01-05 08:40:18
7fc584aa9a86 brave_jepsen Up 6 hours 2026-01-05 08:40:16
75647a32cb8f focused_hellman Up 2 days 2026-01-03 01:14:44
... (21 more containers dating back to 2025-12-30)
All containers showed:
0% CPU usage
~6MB RAM each
0 active network connections
Verification
Confirmed no sessions were using these containers:
# All containers had 0 active connectionsfornamein$(docker ps --filter ancestor=ghcr.io/github/github-mcp-server --format "{{.Names}}");do
docker exec"$name" ss -tnp 2>/dev/null | grep -c ESTAB
done# Output: 0 for all 24 containers
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
github-actions commentedon Jan 5, 2026
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
github-actions commentedon Jan 9, 2026
This issue has been automatically closed as a duplicate of #1935.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
github-actions commentedon Jan 18, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.