Files
homeassistant-mcp/package.json
jango-blockchained 1bc11de465 chore: Update environment configuration and package dependencies for MCP server
- Change MCP_SERVER in .env.example to use port 7123
- Add USE_STDIO_TRANSPORT flag in .env.example for stdio transport mode
- Update bun.lock to include new dependencies: cors, express, ajv, and their type definitions
- Add new scripts for building and running the MCP server with stdio transport
- Introduce PUBLISHING.md for npm publishing guidelines
- Enhance README with detailed setup instructions and tool descriptions
2025-03-17 17:55:38 +01:00

96 lines
2.8 KiB
JSON

{
"name": "homeassistant-mcp",
"version": "1.0.0",
"description": "Home Assistant Model Context Protocol",
"main": "dist/index.js",
"type": "module",
"bin": {
"homeassistant-mcp": "./bin/npx-entry.cjs",
"mcp-stdio": "./bin/npx-entry.cjs"
},
"scripts": {
"start": "bun run dist/index.js",
"start:stdio": "bun run dist/stdio-server.js",
"dev": "bun --hot --watch src/index.ts",
"build": "bun build ./src/index.ts --outdir ./dist --target bun --minify",
"build:node": "webpack --config webpack.config.cjs",
"build:stdio": "bun build ./src/stdio-server.ts --outdir ./dist --target node --minify",
"prepare": "husky install && npm run build",
"stdio": "node ./bin/mcp-stdio.js",
"test": "bun test",
"test:watch": "bun test --watch",
"test:coverage": "bun test --coverage",
"test:ci": "bun test --coverage --bail",
"test:update": "bun test --update-snapshots",
"test:clear": "bun test --clear-cache",
"test:staged": "bun test --findRelatedTests",
"lint": "eslint . --ext .ts",
"format": "prettier --write \"src/**/*.ts\"",
"profile": "bun --inspect src/index.ts",
"clean": "rm -rf dist .bun coverage",
"typecheck": "bun x tsc --noEmit",
"example:speech": "bun run extra/speech-to-text-example.ts"
},
"dependencies": {
"@elysiajs/cors": "^1.2.0",
"@elysiajs/swagger": "^1.2.0",
"@types/jsonwebtoken": "^9.0.5",
"@types/node": "^20.11.24",
"@types/sanitize-html": "^2.9.5",
"@types/ws": "^8.5.10",
"@xmldom/xmldom": "^0.9.7",
"chalk": "^5.4.1",
"cors": "^2.8.5",
"dotenv": "^16.4.7",
"elysia": "^1.2.11",
"express": "^4.21.2",
"helmet": "^7.1.0",
"jsonwebtoken": "^9.0.2",
"node-fetch": "^3.3.2",
"node-record-lpcm16": "^1.0.1",
"openai": "^4.83.0",
"sanitize-html": "^2.11.0",
"typescript": "^5.3.3",
"winston": "^3.11.0",
"winston-daily-rotate-file": "^5.0.0",
"ws": "^8.16.0",
"zod": "^3.22.4"
},
"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/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": "^6.3.3",
"terser-webpack-plugin": "^5.3.10",
"ts-loader": "^9.5.1",
"uuid": "^11.0.5",
"webpack": "^5.98.0",
"webpack-cli": "^5.1.4",
"webpack-node-externals": "^3.0.0"
},
"engines": {
"bun": ">=1.0.0",
"node": ">=18.0.0"
},
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"bin",
"README.md",
"LICENSE"
]
}