diff --git a/README.md b/README.md index 79c84a8..4fab3b5 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Welcome to the **Model Context Protocol (MCP) Server for Home Assistant**! This robust platform bridges Home Assistant with cutting-edge Language Learning Models (LLMs), enabling natural language interactions and real-time automation of your smart devices. Imagine entering your home, saying: -> “Hey MCP, dim the lights and start my evening playlist,” +> "Hey MCP, dim the lights and start my evening playlist," and watching your home transform instantly—that's the magic that MCP Server delivers! diff --git a/extra/claude-desktop-macos-setup.sh b/extra/claude-desktop-macos-setup.sh index 63abd74..ca0e2b8 100644 --- a/extra/claude-desktop-macos-setup.sh +++ b/extra/claude-desktop-macos-setup.sh @@ -326,4 +326,8 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then else echo -e "${GREEN}Home Assistant MCP test successful!${NC}" fi -fi \ No newline at end of file +fi + +# macOS environment configuration +HASS_SOCKET_URL="${HASS_HOST/http/ws}/api/websocket" # WebSocket URL conversion +chmod 600 "$CLAUDE_CONFIG_DIR/claude_desktop_config.json" # Security hardening \ No newline at end of file diff --git a/smithery.yaml b/smithery.yaml index 7b7e821..ce8db23 100644 --- a/smithery.yaml +++ b/smithery.yaml @@ -18,4 +18,11 @@ startCommand: commandFunction: # A function that produces the CLI command to start the MCP on stdio. |- - config => ({command: 'bun', args: ['--smol', 'run', 'start'], env: { HASS_TOKEN: config.hassToken, PORT: config.port.toString() }}) + config => ({ + command: 'bun', + args: ['--smol', 'run', 'start'], + env: { + HASS_TOKEN: config.hassToken, + PORT: config.port.toString() + } + })