Skip to main content
Glama

Home Assistant MCP Server

get.ts704 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { apiLogger } from "../logger.js"; import type { HassClient } from "../api/client.js"; /** * Register prompts get handler with the MCP server * This is automatically handled by the SDK, but we can add custom logic here if needed * * @param server The MCP server to register the handler with * @param hassClient The Home Assistant client */ export function registerPromptsGet( _server: McpServer, _hassClient: HassClient, ) { // The SDK automatically handles the prompts/get endpoint // This function is a placeholder for any custom logic we might want to add apiLogger.info("Registered prompts get handler"); }

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/oleander/home-assistant-mcp-server'

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