fix mcp timeouts and missing description on mcp errors (#868)

This commit is contained in:
Olcan
2025-06-08 21:52:11 -07:00
committed by GitHub
parent a3d11e8fef
commit a2fee6bdd3
4 changed files with 23 additions and 19 deletions

View File

@@ -15,8 +15,6 @@ import { CallableTool, Part, FunctionCall } from '@google/genai';
type ToolParams = Record<string, unknown>;
export const MCP_TOOL_DEFAULT_TIMEOUT_MSEC = 10 * 60 * 1000; // default to 10 minutes
export class DiscoveredMCPTool extends BaseTool<ToolParams, ToolResult> {
private static readonly allowlist: Set<string> = new Set();