package.json•3.62 kB
{
  "name": "@jango-blockchained/homeassistant-mcp",
  "version": "1.0.7",
  "description": "Home Assistant Model Context Protocol",
  "main": "dist/index.js",
  "type": "module",
  "bin": {
    "homeassistant-mcp": "bin/npx-entry.cjs"
  },
  "scripts": {
    "start": "bun --smol run dist/index.js",
    "start:stdio": "node dist/stdio-server.js",
    "dev": "bun --hot --watch src/index.ts",
    "build": "bun build ./src/index.ts --outdir ./dist --target bun",
    "build:all": "bun build ./src/index.ts --outdir ./dist --target bun && bun build ./src/stdio-server.ts --outdir ./dist --target node && node scripts/optimize-dist.js",
    "build:node": "bun build ./src/index.ts ./src/stdio-server.ts --outdir ./dist --target node",
    "build:stdio": "bun build ./src/stdio-server.ts --outdir ./dist --target node --external:express --external:swagger-ui-express",
    "prepare": "test -d .husky && husky install || echo 'Skipping husky' && bun run build:all",
    "stdio": "bun run ./bin/stdio-server.js",
    "test": "bun test --preload ./test/setup.ts",
    "test:watch": "bun test --watch --preload ./test/setup.ts",
    "test:coverage": "bun test --coverage --preload ./test/setup.ts",
    "test:ci": "bun test --coverage --bail --preload ./test/setup.ts",
    "test:update": "bun test --update-snapshots --preload ./test/setup.ts",
    "test:clear": "bun test --clear-cache",
    "test:staged": "bun test --findRelatedTests",
    "lint": "eslint . --ext .ts --cache",
    "format": "prettier --write \"src/**/*.ts\" --cache",
    "profile": "bun --inspect src/index.ts",
    "clean": "rm -rf dist .bun coverage .eslintcache .prettierignore",
    "typecheck": "bun x tsc --noEmit",
    "mcp:stdio": "bun run bin/stdio-server.js",
    "mcp:build": "bun run build:all",
    "example:speech": "bun run extra/speech-to-text-example.ts"
  },
  "dependencies": {
    "@anthropic-ai/sdk": "^0.39.0",
    "@jango-blockchained/homeassistant-mcp": "1.0.5",
    "@types/express-rate-limit": "^5.1.3",
    "@types/jsonwebtoken": "^9.0.5",
    "@types/node": "^20.11.24",
    "@types/sanitize-html": "^2.13.0",
    "@types/swagger-ui-express": "^4.1.8",
    "@types/ws": "^8.5.10",
    "@xmldom/xmldom": "^0.9.7",
    "chalk": "^5.4.1",
    "cors": "^2.8.5",
    "dotenv": "^16.4.7",
    "express": "^4.21.2",
    "express-rate-limit": "^7.5.0",
    "fastmcp": "^1.21.0",
    "helmet": "^7.1.0",
    "jsonwebtoken": "^9.0.2",
    "node-fetch": "^3.3.2",
    "node-record-lpcm16": "^1.0.1",
    "openai": "^4.83.0",
    "openapi-types": "^12.1.3",
    "sanitize-html": "^2.15.0",
    "sury": "^11.0.0-alpha.3",
    "swagger-ui-express": "^5.0.1",
    "typescript": "^5.3.3",
    "valibot": "^1.0.0",
    "winston": "^3.11.0",
    "winston-daily-rotate-file": "^5.0.0",
    "ws": "^8.16.0",
    "zod": "^3.22.4",
    "zod-to-json-schema": "^3.24.6"
  },
  "devDependencies": {
    "@jest/globals": "^29.7.0",
    "@types/bun": "latest",
    "@types/cors": "^2.8.17",
    "@types/express": "^5.0.0",
    "@types/jest": "^29.5.14",
    "@types/supertest": "^6.0.2",
    "@types/uuid": "^10.0.0",
    "@typescript-eslint/eslint-plugin": "^7.1.0",
    "@typescript-eslint/parser": "^7.1.0",
    "ajv": "^8.17.1",
    "bun-types": "^1.2.2",
    "eslint": "^8.57.0",
    "eslint-config-prettier": "^9.1.0",
    "eslint-plugin-prettier": "^5.1.3",
    "husky": "^9.0.11",
    "prettier": "^3.2.5",
    "supertest": "^7.1.0",
    "uuid": "^11.1.0"
  },
  "engines": {
    "bun": ">=1.0.0",
    "node": ">=18.0.0"
  },
  "publishConfig": {
    "access": "public"
  },
  "files": [
    "dist",
    "bin",
    "README.md",
    "LICENSE"
  ]
}