Skip to content

Housekeeping: close MCP resources on shutdown#357

Open
seahyc wants to merge 1 commit intozereight:mainfrom
seahyc:fix/fd-cleanup-shutdown-hooks
Open

Housekeeping: close MCP resources on shutdown#357
seahyc wants to merge 1 commit intozereight:mainfrom
seahyc:fix/fd-cleanup-shutdown-hooks

Conversation

@seahyc
Copy link

@seahyc seahyc commented Feb 26, 2026

Summary\n- add client pool shutdown () to destroy keep-alive HTTP/HTTPS agents\n- invoke cleanup on stdio transport close\n- add SSE graceful shutdown path to close transports and pool\n- ensure streamable HTTP graceful shutdown also destroys pooled agents\n\n## Why\nPrevents lingering sockets/file descriptors after client disconnect or process shutdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant