From ced3089c8478d14e337fc076d91fd1e529bc617a Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Fri, 13 Feb 2026 09:03:18 -0800 Subject: [PATCH] ha-mcp: init at 6.6.1 --- pkgs/by-name/ha/ha-mcp/package.nix | 50 ++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/by-name/ha/ha-mcp/package.nix diff --git a/pkgs/by-name/ha/ha-mcp/package.nix b/pkgs/by-name/ha/ha-mcp/package.nix new file mode 100644 index 000000000000..c7a62aee4860 --- /dev/null +++ b/pkgs/by-name/ha/ha-mcp/package.nix @@ -0,0 +1,50 @@ +{ + lib, + python3Packages, + fetchFromGitHub, +}: + +python3Packages.buildPythonApplication (finalAttrs: { + pname = "ha-mcp"; + version = "6.6.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "homeassistant-ai"; + repo = "ha-mcp"; + tag = "v${finalAttrs.version}"; + hash = "sha256-yAJbvfIH5ewRTip8whbOKxE479qAihESaiLFTnhpRkY="; + }; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = + with python3Packages; + [ + cryptography + fastmcp + httpx + jq + pydantic + python-dotenv + truststore + websockets + ] + ++ httpx.optional-dependencies.socks; + + # Tests require a running Home Assistant instance + doCheck = false; + + pythonImportsCheck = [ "ha_mcp" ]; + + meta = { + description = "MCP server for controlling Home Assistant via natural language"; + homepage = "https://github.com/homeassistant-ai/ha-mcp"; + changelog = "https://github.com/homeassistant-ai/ha-mcp/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + mainProgram = "ha-mcp"; + }; +})