Skip to main content
Glama

homeassistant-mcp

by tevonsb
polyfills.ts689 B
// Extend global Array interface to include toSorted and toReversed methods declare global { interface Array<T> { toSorted(compareFn?: (a: T, b: T) => number): T[]; toReversed(): T[]; } } // Polyfill for toSorted method if (typeof Array.prototype.toSorted !== 'function') { Array.prototype.toSorted = function <T>(compareFn?: (a: T, b: T) => number): T[] { return [...this].sort(compareFn); }; } // Polyfill for toReversed method if (typeof Array.prototype.toReversed !== 'function') { Array.prototype.toReversed = function <T>(): T[] { return [...this].reverse(); }; } // Export an empty object to make this a module export { };

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/tevonsb/homeassistant-mcp'

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