From fcaaffff51fcd1ccf801be21720a630b080906c3 Mon Sep 17 00:00:00 2001 From: olaservo Date: Wed, 24 Sep 2025 07:13:37 -0700 Subject: [PATCH] Fix TypeScript error: replace 'any' with proper JsonSchemaType MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Import JsonSchemaType from utils/jsonUtils - Cast tool.inputSchema to JsonSchemaType instead of any - Matches typing pattern used elsewhere in codebase 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- client/src/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index ad0e1b06..323b0996 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -23,6 +23,7 @@ import { AuthDebuggerState, EMPTY_DEBUGGER_STATE } from "./lib/auth-types"; import { OAuthStateMachine } from "./lib/oauth-state-machine"; import { cacheToolOutputSchemas } from "./utils/schemaUtils"; import { cleanParams } from "./utils/paramUtils"; +import type { JsonSchemaType } from "./utils/jsonUtils"; import React, { Suspense, useCallback, @@ -781,7 +782,7 @@ const App = () => { // Find the tool schema to clean parameters properly const tool = tools.find((t) => t.name === name); const cleanedParams = tool?.inputSchema - ? cleanParams(params, tool.inputSchema as any) + ? cleanParams(params, tool.inputSchema as JsonSchemaType) : params; const response = await sendMCPRequest(