Skip to main content
Glama

HomeAssistant MCP

index.js2.14 kB
import { controlTool } from "./control.tool.js"; import { historyTool } from "./history.tool.js"; import { addonTool } from "./addon.tool.js"; import { packageTool } from "./package.tool.js"; import { automationConfigTool } from "./automation-config.tool.js"; import { subscribeEventsTool } from "./subscribe-events.tool.js"; import { getSSEStatsTool } from "./sse-stats.tool.js"; // Import Tool objects (not classes) from homeassistant directory import { lightsControlTool } from "./homeassistant/lights.tool.js"; import { climateControlTool } from "./homeassistant/climate.tool.js"; import { automationTool } from "./homeassistant/automation.tool.js"; import { listDevicesTool } from "./homeassistant/list-devices.tool.js"; import { notifyTool } from "./homeassistant/notify.tool.js"; import { sceneTool } from "./homeassistant/scene.tool.js"; // Tool category types export var ToolCategory; (function (ToolCategory) { ToolCategory["DEVICE"] = "device"; ToolCategory["SYSTEM"] = "system"; ToolCategory["AUTOMATION"] = "automation"; })(ToolCategory || (ToolCategory = {})); // Tool priority levels export var ToolPriority; (function (ToolPriority) { ToolPriority["HIGH"] = "high"; ToolPriority["MEDIUM"] = "medium"; ToolPriority["LOW"] = "low"; })(ToolPriority || (ToolPriority = {})); // Array to track all tools export const tools = [ controlTool, historyTool, addonTool, packageTool, automationConfigTool, subscribeEventsTool, getSSEStatsTool, // Home Assistant tools lightsControlTool, climateControlTool, automationTool, listDevicesTool, notifyTool, sceneTool, ]; // Function to get a tool by name export function getToolByName(name) { return tools.find((tool) => tool.name === name); } // Function to get all tools export function getAllTools() { return [...tools]; } // Export all tools individually export { controlTool, historyTool, addonTool, packageTool, automationConfigTool, subscribeEventsTool, getSSEStatsTool, // Home Assistant tools lightsControlTool, climateControlTool, automationTool, listDevicesTool, notifyTool, sceneTool, };

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