Skip to main content
Glama

HomeAssistant MCP

index.tsโ€ข1.02 kB
/** * API Routes Module * * This module exports the main router that combines all API routes * into a single router instance. Each route group is mounted under * its respective path prefix. * * @module routes */ import { Router } from "express"; import { mcpRoutes } from "./mcp.routes.js"; import { sseRoutes } from "./sse.routes.js"; import { toolRoutes } from "./tool.routes.js"; import { healthRoutes } from "./health.routes.js"; /** * Create main router instance * This router will be mounted at /api in the main application */ const router = Router(); /** * Mount all route groups * - /mcp: MCP schema and execution endpoints * - /sse: Server-Sent Events endpoints * - /tools: Tool management endpoints * - /health: Health check endpoint */ router.use("/mcp", mcpRoutes); router.use("/sse", sseRoutes); router.use("/tools", toolRoutes); router.use("/health", healthRoutes); /** * Export the configured router * This will be mounted in the main application */ export { router as apiRoutes };

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