Update nostr_dvmcp_server.js

This commit is contained in:
dbth
2025-02-15 19:04:35 +01:00
parent 5f5332eba9
commit 700ad2abf7

View File

@@ -121,7 +121,7 @@ async function getnip89s() {
let content_json = JSON.parse(evt.content)
let tools = content_json.tools
for (let tool of tools) {
if (tool.inputSchema === undefined || tool.inputSchema.properties === undefined) {
if (tool.inputSchema === undefined || tool.inputSchema.properties === undefined || tool.description === undefined) {
continue
}
const zodSchema = convertSchemaDefinitionToZod(tool.inputSchema.properties);