File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,8 @@ class InitializeResult(Result):
285
285
"""The version of the Model Context Protocol that the server wants to use."""
286
286
capabilities : ServerCapabilities
287
287
serverInfo : Implementation
288
+ instructions : str | None = None
289
+ """Instructions describing how to use the server and its features."""
288
290
289
291
290
292
class InitializedNotification (Notification ):
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ async def mock_server():
51
51
prompts = None ,
52
52
),
53
53
serverInfo = Implementation (name = "mock-server" , version = "0.1.0" ),
54
+ instructions = "The server instructions."
54
55
)
55
56
)
56
57
@@ -92,6 +93,7 @@ async def listen_session():
92
93
assert result .protocolVersion == LATEST_PROTOCOL_VERSION
93
94
assert isinstance (result .capabilities , ServerCapabilities )
94
95
assert result .serverInfo == Implementation (name = "mock-server" , version = "0.1.0" )
96
+ assert result .instructions == "The server instructions."
95
97
96
98
# Check that the client sent the initialized notification
97
99
assert initialized_notification
You can’t perform that action at this time.
0 commit comments