Skip to main content
Glama

HomeAssistant MCP

test-automation-tool.js683 B
const { zodToJsonSchema } = require('zod-to-json-schema'); // Load the tool const toolModule = require('./src/tools/automation-config.tool.ts'); const tool = toolModule.automationConfigTool; console.log('Tool Name:', tool.name); console.log('\nJSON Schema:'); const schema = zodToJsonSchema(tool.parameters); console.log(JSON.stringify(schema, null, 2)); // Validate arrays have items const configProps = schema.properties?.config?.properties; if (configProps) { const arrays = ['trigger', 'condition', 'action']; arrays.forEach(arr => { if (configProps[arr]) { console.log(`\n${arr}:`, configProps[arr].items ? '✅ has items' : '❌ missing items'); } }); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jango-blockchained/advanced-homeassistant-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server