chore: Update environment configuration and Dockerfile for improved setup
- Change default PORT in .env.example to 7123 and update CORS origins - Disable speech features in .env.example for a cleaner setup - Modify Dockerfile to streamline Python dependency installation and improve build performance - Add fix-env.js script to ensure NODE_ENV is set correctly before application starts - Update smithery.yaml to include new Home Assistant connection parameters - Introduce start.sh script to set NODE_ENV and start the application
This commit is contained in:
@@ -11,10 +11,21 @@ startCommand:
|
||||
hassToken:
|
||||
type: string
|
||||
description: The token for connecting to Home Assistant API.
|
||||
port:
|
||||
hassHost:
|
||||
type: string
|
||||
default: http://homeassistant.local:8123
|
||||
description: The host for connecting to Home Assistant API.
|
||||
hassSocketUrl:
|
||||
type: string
|
||||
default: ws://homeassistant.local:8123
|
||||
description: The socket URL for connecting to Home Assistant API.
|
||||
mcp-port:
|
||||
type: number
|
||||
default: 4000
|
||||
default: 7123
|
||||
description: The port on which the MCP server will run.
|
||||
debug:
|
||||
type: boolean
|
||||
description: The debug mode for the MCP server.
|
||||
commandFunction:
|
||||
# A function that produces the CLI command to start the MCP on stdio.
|
||||
|-
|
||||
@@ -23,7 +34,10 @@ startCommand:
|
||||
args: ['--smol', 'run', 'start'],
|
||||
env: {
|
||||
HASS_TOKEN: config.hassToken,
|
||||
PORT: config.port.toString()
|
||||
HASS_HOST: config.hassHost || process.env.HASS_HOST,
|
||||
HASS_SOCKET_URL: config.hassSocketUrl || process.env.HASS_SOCKET_URL,
|
||||
PORT: config.port.toString(),
|
||||
DEBUG: config.debug !== undefined ? config.debug.toString() : process.env.DEBUG || 'false'
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user