File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
src/ModelContextProtocol/Client Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -90,21 +90,21 @@ public async Task ConnectAsync(CancellationToken cancellationToken = default)
9090 using var initializationCts = CancellationTokenSource . CreateLinkedTokenSource ( cancellationToken ) ;
9191 initializationCts . CancelAfter ( _options . InitializationTimeout ) ;
9292
93- try
94- {
95- // Send initialize request
96- var initializeResponse = await SendRequestAsync < InitializeResult > (
97- new JsonRpcRequest
98- {
99- Method = RequestMethods . Initialize ,
100- Params = new InitializeRequestParams ( )
93+ try
94+ {
95+ // Send initialize request
96+ var initializeResponse = await SendRequestAsync < InitializeResult > (
97+ new JsonRpcRequest
10198 {
102- ProtocolVersion = _options . ProtocolVersion ,
103- Capabilities = _options . Capabilities ?? new ClientCapabilities ( ) ,
104- ClientInfo = _options . ClientInfo
105- }
106- } ,
107- initializationCts . Token ) . ConfigureAwait ( false ) ;
99+ Method = RequestMethods . Initialize ,
100+ Params = new InitializeRequestParams ( )
101+ {
102+ ProtocolVersion = _options . ProtocolVersion ,
103+ Capabilities = _options . Capabilities ?? new ClientCapabilities ( ) ,
104+ ClientInfo = _options . ClientInfo
105+ }
106+ } ,
107+ initializationCts . Token ) . ConfigureAwait ( false ) ;
108108
109109 // Store server information
110110 _logger . ServerCapabilitiesReceived ( EndpointName ,
You can’t perform that action at this time.
0 commit comments