python-sdk/src/mcp/shared
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
..
__init__.py rename mcp_python to mcp 2024-11-11 12:40:32 +00:00
context.py feat: add lifespan support to low-level MCP server 2025-02-11 12:16:40 +00:00
exceptions.py fix: Add constructor for McpError to allow setting field 2025-01-02 09:32:43 +00:00
memory.py rename mcp_python to mcp 2024-11-11 12:40:32 +00:00
progress.py rename mcp_python to mcp 2024-11-11 12:40:32 +00:00
session.py fix: enforce context manager usage for RequestResponder 2025-02-04 20:13:26 +00:00
version.py rename mcp_python to mcp 2024-11-11 12:40:32 +00:00