- 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
14 lines
352 B
Bash
Executable File
14 lines
352 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Set silent environment variables
|
|
export LOG_LEVEL=silent
|
|
export USE_STDIO_TRANSPORT=true
|
|
|
|
# Check if we're running from npx or directly
|
|
if [ -f "./dist/stdio-server.js" ]; then
|
|
# Direct run from project directory - use local file
|
|
node ./dist/stdio-server.js 2>/dev/null
|
|
else
|
|
# Run using npx
|
|
npx homeassistant-mcp 2>/dev/null
|
|
fi |