From 3951732ddaa591e9baae04af7cd8b4cc66036a2c Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Tue, 10 Jun 2025 19:15:39 +1000 Subject: [PATCH] Tool calling UI looking ok --- examples/inspector/src/components/McpServers.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/inspector/src/components/McpServers.tsx b/examples/inspector/src/components/McpServers.tsx index 14ae0d5..c4670ea 100644 --- a/examples/inspector/src/components/McpServers.tsx +++ b/examples/inspector/src/components/McpServers.tsx @@ -254,7 +254,7 @@ export function McpServers({ return ( +
{Object.entries(tool.inputSchema.properties).map(([fieldName, schema]: [string, any]) => { const isRequired = tool.inputSchema.required?.includes(fieldName) || false + const isTextInput = schema.type !== 'number' && schema.type !== 'integer' && schema.type !== 'boolean' return ( -
+
)}
-
+
{renderFormField(tool.name, fieldName, schema, isRequired)}