modelcontextprotocol / modelcontextprotocol/python-sdk
Support clean server shutdown
Aperta
@felixweinberger ci sta già lavorando.
Dal 15/1/2026.
enhancement
P1
v2
- Lingua principale
- Python
- Stelle
- 24.3k
- Fork
- 4k
- Merge medio
- 1g 1h
- PR unite (30g)
- 31
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.