rename mcp_python to mcp
This commit is contained in:
parent
aa164ab556
commit
ed87ae9f06
1 changed files with 130 additions and 129 deletions
14
src/mcp/shared/context.py
Normal file
14
src/mcp/shared/context.py
Normal 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
|
||||
Loading…
Reference in a new issue