modelcontextprotocol / modelcontextprotocol/python-sdk
Support clean server shutdown
オープン
@felixweinberger がすでに取り組んでいます。
2026年1月15日 から。
enhancement
P1
v2
- 主要言語
- Python
- スター
- 24.3k
- フォーク
- 4k
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 31
説明
Summary
Provide a reliable way to cleanly shut down a running MCP server, ensuring all resources are properly released.
Motivation
- Currently there's no clean way to stop a running server programmatically
- Resources (connections, tasks, file handles) may not be properly cleaned up on shutdown
- Important for testing, graceful restarts, and production deployments
Goal
- API for triggering graceful shutdown
- Proper cleanup of all active sessions and transports
- Configurable shutdown timeout / drain period
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。