Fix TypeScript error: replace 'any' with proper JsonSchemaType
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
2846e179a3
commit
fcaaffff51
1 changed files with 2 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue