File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
core/src/main/java/com/google/adk/tools/mcp Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,7 @@ public McpSyncClient createSession() {
4646 }
4747
4848 public static McpSyncClient initializeSession (Object connectionParams ) {
49- McpClientTransport transport = new DefaultMcpTransportBuilder ().build (connectionParams );
50- McpSyncClient client =
51- McpClient .sync (transport )
52- .requestTimeout (Duration .ofSeconds (10 ))
53- .capabilities (ClientCapabilities .builder ().build ())
54- .build ();
55- InitializeResult initResult = client .initialize ();
56- logger .debug ("Initialize Client Result: {}" , initResult );
57- return client ;
49+ return initializeSession (connectionParams , new DefaultMcpTransportBuilder ());
5850 }
5951
6052 public static McpSyncClient initializeSession (
You can’t perform that action at this time.
0 commit comments