rename mcp_python to mcp

This commit is contained in:
David Soria Parra 2024-11-11 12:31:36 +00:00
commit ed87ae9f06
No known key found for this signature in database

14
src/mcp/shared/context.py Normal file
View file

@ -0,0 +1,14 @@
from dataclasses import dataclass
from typing import Generic, TypeVar
from mcp.shared.session import BaseSession
from mcp.types import RequestId, RequestParams
SessionT = TypeVar("SessionT", bound=BaseSession)
@dataclass
class RequestContext(Generic[SessionT]):
request_id: RequestId
meta: RequestParams.Meta | None
session: SessionT