Skip to content

Commit 92d53ed

Browse files
Update core/src/main/java/com/google/adk/tools/mcp/McpTool.java
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent cae8a08 commit 92d53ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/google/adk/tools/mcp/McpTool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public Schema toGeminiSchema(JsonSchema openApiSchema) {
108108
String jsonString = objectMapper.valueToTree(openApiSchema).toString();
109109
try {
110110
return Schema.fromJson(jsonString);
111-
} catch (Throwable e) {
111+
} catch (Exception e) {
112112
throw new McpToolSchemaException(String.format("MCP tool:%s, schema:%s failed to convert openApiSchema to GeminiSchema.", this.name(), jsonString), e);
113113
}
114114
}

0 commit comments

Comments
 (0)