Commit 66dd3ed
fix: add --version/-V flag to CLI (#309)
The CLI previously crashed when running `ha-mcp --version` because it
would attempt to create the server, which requires HOMEASSISTANT_URL
and HOMEASSISTANT_TOKEN environment variables.
Now the --version and -V flags are handled early, before any server
initialization, allowing users to check their installed version without
configuration.
Fixes #290
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent d95c5e7 commit 66dd3ed
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
258 | 264 | | |
259 | 265 | | |
260 | 266 | | |
| |||
0 commit comments