fix: update google/genai to v1.9.0 and switch to parametersJsonSchema for MCP related tools (#4176)

Co-authored-by: Jack Wotherspoon <jackwoth@google.com>
This commit is contained in:
Wanlin Du
2025-07-16 14:32:34 -07:00
committed by GitHub
parent 21eb44b242
commit f6ee0d182b
7 changed files with 40 additions and 20 deletions

View File

@@ -170,11 +170,13 @@ const getMcpStatus = async (
// Use cyan color for the tool name even when not showing descriptions
message += ` - ${COLOR_CYAN}${tool.name}${RESET_COLOR}\n`;
}
if (showSchema && tool.parameterSchema) {
const parameters =
tool.schema.parametersJsonSchema ?? tool.schema.parameters;
if (showSchema && parameters) {
// Prefix the parameters in cyan
message += ` ${COLOR_CYAN}Parameters:${RESET_COLOR}\n`;
const paramsLines = JSON.stringify(tool.parameterSchema, null, 2)
const paramsLines = JSON.stringify(parameters, null, 2)
.trim()
.split('\n');
if (paramsLines) {