File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1414from mcp .shared .session import BaseSession , ProgressFnT , RequestResponder
1515from mcp .shared .version import SUPPORTED_PROTOCOL_VERSIONS
1616
17+ from src .mcp .client .transport_session import TransportSession
18+
1719DEFAULT_CLIENT_INFO = types .Implementation (name = "mcp" , version = "0.1.0" )
1820
1921logger = logging .getLogger ("client" )
@@ -100,6 +102,7 @@ async def _default_logging_callback(
100102
101103
102104class ClientSession (
105+ TransportSession ,
103106 BaseSession [
104107 types .ClientRequest ,
105108 types .ClientNotification ,
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ async def handle_list_prompts(ctx: RequestContext) -> list[types.Prompt]:
5454)
5555from mcp .shared .version import SUPPORTED_PROTOCOL_VERSIONS
5656
57+ from src .mcp .server .transport_session import TransportSession
58+
5759
5860class InitializationState (Enum ):
5961 NotInitialized = 1
@@ -69,6 +71,7 @@ class InitializationState(Enum):
6971
7072
7173class ServerSession (
74+ TransportSession ,
7275 BaseSession [
7376 types .ServerRequest ,
7477 types .ServerNotification ,
You can’t perform that action at this time.
0 commit comments