Add opt-in streamable HTTP and SSE transports (release 0.7.0) #11

Merged
tim merged 2 commits from feat/streamable-http into develop 2026-10-25 16:36:29 +00:00
Owner

Lets one shared hass-mcp serve several clients instead of one stdio process each.

  • HASS_MCP_TRANSPORT: stdio (default, unchanged), streamable-http or sse
  • HASS_MCP_HOST (default 127.0.0.1) and HASS_MCP_PORT (default 8089) for the HTTP transports
  • Invalid transport or port exits with an error before starting
  • HA_URL / HA_TOKEN still come from the environment only

Verified with dummy HA credentials: 3 parallel clients each listed 26 tools and called one, ss shows only 127.0.0.1:8089, token not in logs. No shared per-request state in hass.py (fresh websocket/httpx client per call). 340 tests pass (92% coverage), ruff, mypy and bandit clean.

The HTTP endpoint has no authentication: keep it on loopback or behind an authenticating proxy (README says so).

Release prep is the second commit: version 0.6.0 -> 0.7.0 in pyproject.toml and a ## [0.7.0] - 2026-10-25 CHANGELOG section. After this merges into develop, a develop -> main PR triggers auto-tag, which tags v0.7.0 and runs the docker pipeline (tests, multi-arch image, Forgejo release).

🤖 Generated with Claude Code

https://claude.ai/code/session_0137rmvr4GcRbtoEvABScjsT

Lets one shared hass-mcp serve several clients instead of one stdio process each. - `HASS_MCP_TRANSPORT`: `stdio` (default, unchanged), `streamable-http` or `sse` - `HASS_MCP_HOST` (default `127.0.0.1`) and `HASS_MCP_PORT` (default `8089`) for the HTTP transports - Invalid transport or port exits with an error before starting - `HA_URL` / `HA_TOKEN` still come from the environment only Verified with dummy HA credentials: 3 parallel clients each listed 26 tools and called one, `ss` shows only 127.0.0.1:8089, token not in logs. No shared per-request state in hass.py (fresh websocket/httpx client per call). 340 tests pass (92% coverage), ruff, mypy and bandit clean. The HTTP endpoint has no authentication: keep it on loopback or behind an authenticating proxy (README says so). Release prep is the second commit: version 0.6.0 -> 0.7.0 in pyproject.toml and a `## [0.7.0] - 2026-10-25` CHANGELOG section. After this merges into develop, a develop -> main PR triggers auto-tag, which tags v0.7.0 and runs the docker pipeline (tests, multi-arch image, Forgejo release). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0137rmvr4GcRbtoEvABScjsT
Add opt-in streamable HTTP and SSE transports
Some checks failed
Test & Build / Lint and test (push) Has been cancelled
Test & Build / Build & Push Docker Image (push) Has been cancelled
Test & Build / Create Forgejo Release (push) Has been cancelled
Test & Build / Lint and test (pull_request) Has been cancelled
Test & Build / Build & Push Docker Image (pull_request) Has been cancelled
Test & Build / Create Forgejo Release (pull_request) Has been cancelled
Security / Security scan (pull_request) Has been cancelled
8e52fb2626
HASS_MCP_TRANSPORT selects stdio (default), streamable-http or sse.
HASS_MCP_HOST (default 127.0.0.1) and HASS_MCP_PORT (default 8089) set
the bind address for the HTTP transports.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0137rmvr4GcRbtoEvABScjsT
Release 0.7.0
All checks were successful
Test & Build / Lint and test (push) Successful in 27s
Test & Build / Lint and test (pull_request) Successful in 27s
Test & Build / Build & Push Docker Image (pull_request) Has been skipped
Test & Build / Create Forgejo Release (pull_request) Has been skipped
Security / Security scan (pull_request) Successful in 48s
Test & Build / Build & Push Docker Image (push) Successful in 4m29s
Test & Build / Create Forgejo Release (push) Has been skipped
90f2022aed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0137rmvr4GcRbtoEvABScjsT
tim changed title from Add opt-in streamable HTTP and SSE transports to Add opt-in streamable HTTP and SSE transports (release 0.7.0) 2026-10-25 16:18:23 +00:00
tim merged commit 2432b3b92c into develop 2026-10-25 16:36:29 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/hass-mcp!11
No description provided.