File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/mcp-server/src/bridge Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 77 type Tool as GcliTool ,
88 type ToolResult ,
99 GeminiChat ,
10- getResponseText ,
1110} from '@google/gemini-cli-core' ;
1211import {
1312 type CallToolResult ,
@@ -165,7 +164,7 @@ export class GcliMcpBridge {
165164 const request = {
166165 message : [ { text : args . query as string } ] ,
167166 config : {
168- tools : [ { googleSearch : { } } ] , // For web_search
167+ tools : [ { googleSearch : { } } ] as Tool [ ] , // For web_search
169168 } ,
170169 } ;
171170
@@ -176,8 +175,9 @@ export class GcliMcpBridge {
176175 }
177176
178177 // Send the request using the one-shot session
179- const response = await oneShotChat . sendMessage ( request ) ;
180- const resultText = getResponseText ( response ) || '' ;
178+ const result = await oneShotChat . sendMessage ( request ) ;
179+ const response = result . response ;
180+ const resultText = response . text ( ) || '' ;
181181
182182 // Convert the result to the MCP format
183183 const mcpResult = this . convertGcliResultToMcpResult ( {
You can’t perform that action at this time.
0 commit comments