diff --git a/renderer/src/components/main-panel/tool/tool-executor.vue b/renderer/src/components/main-panel/tool/tool-executor.vue index 78b834e..54ee06e 100644 --- a/renderer/src/components/main-panel/tool/tool-executor.vue +++ b/renderer/src/components/main-panel/tool/tool-executor.vue @@ -128,9 +128,7 @@ const initFormData = () => { if (!currentTool.value?.inputSchema?.properties) return; - const newSchemaDataForm: Record = {}; - - console.log(currentTool.value.inputSchema.properties); + const newSchemaDataForm: Record = {}; Object.entries(currentTool.value.inputSchema.properties).forEach(([name, property]) => { newSchemaDataForm[name] = getDefaultValue(property); diff --git a/renderer/src/hook/mcp.ts b/renderer/src/hook/mcp.ts index 5946502..37c4174 100644 --- a/renderer/src/hook/mcp.ts +++ b/renderer/src/hook/mcp.ts @@ -27,7 +27,7 @@ export function normaliseJavascriptType(type: string) { case 'string': return 'string'; default: - return 'string'; + return type; } }