Skip to content

Commit da4e725

Browse files
committed
Set the Server session initialization state immediately after responding to InitializeRequest
1 parent 7a933fe commit da4e725

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mcp/server/session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ async def _received_request(self, responder: RequestResponder[types.ClientReques
163163
)
164164
)
165165
)
166+
self._initialization_state = InitializationState.Initialized
166167
case types.PingRequest():
167168
# Ping requests are allowed at any time
168169
pass

0 commit comments

Comments
 (0)