File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1010from mcp .shared .session import BaseSession , RequestResponder
1111from mcp .shared .version import SUPPORTED_PROTOCOL_VERSIONS
1212
13- _DEFAULT_CLIENT_INFO = types .Implementation (name = "mcp" , version = "0.1.0" )
13+ DEFAULT_CLIENT_INFO = types .Implementation (name = "mcp" , version = "0.1.0" )
1414
1515
1616class SamplingFnT (Protocol ):
@@ -108,7 +108,7 @@ def __init__(
108108 types .ServerNotification ,
109109 read_timeout_seconds = read_timeout_seconds ,
110110 )
111- self ._client_info = client_info or _DEFAULT_CLIENT_INFO
111+ self ._client_info = client_info or DEFAULT_CLIENT_INFO
112112 self ._sampling_callback = sampling_callback or _default_sampling_callback
113113 self ._list_roots_callback = list_roots_callback or _default_list_roots_callback
114114 self ._logging_callback = logging_callback or _default_logging_callback
Original file line number Diff line number Diff line change 22import pytest
33
44import mcp .types as types
5- from mcp .client .session import _DEFAULT_CLIENT_INFO , ClientSession
5+ from mcp .client .session import DEFAULT_CLIENT_INFO , ClientSession
66from mcp .shared .session import RequestResponder
77from mcp .types import (
88 LATEST_PROTOCOL_VERSION ,
@@ -238,4 +238,4 @@ async def mock_server():
238238 await session .initialize ()
239239
240240 # Assert that the default client info was sent
241- assert received_client_info == _DEFAULT_CLIENT_INFO
241+ assert received_client_info == DEFAULT_CLIENT_INFO
You can’t perform that action at this time.
0 commit comments