python-sdk/src/mcp/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Soria Parra 2c7bd8343e
feat: add lifespan support to low-level MCP server
Adds a context manager based lifespan API in mcp.server.lowlevel.server to manage server lifecycles in a
type-safe way. This enables servers to:
- Initialize resources on startup and clean them up on shutdown
- Pass context data from startup to request handlers
- Support async startup/shutdown operations
2025-02-11 12:16:40 +00:00
..
fastmcp centralize type 2025-02-04 11:11:38 -06:00
lowlevel feat: add lifespan support to low-level MCP server 2025-02-11 12:16:40 +00:00
__init__.py feat: add version string parameter to Server constructor 2025-01-02 09:11:07 +00:00
__main__.py run ruff 2024-11-11 20:42:46 +00:00
models.py Add instructions field to ServerSession and FastMCP 2025-01-13 13:00:11 -05:00
session.py fix: enforce context manager usage for RequestResponder 2025-02-04 20:13:26 +00:00
sse.py chore: revert doc changes 2025-01-02 09:11:07 +00:00
stdio.py Add a simple module documentation to help LLMs with the pattern 2024-11-25 13:56:38 +00:00
websocket.py Don't re-export types 2024-11-11 20:39:33 +00:00