Describe the bug
MCP server aborts connection (no HTTP response) when any Authorization Bearer header is present
Expected behaviour
MCP Server to authenticate using secret only
Predbat version
v8.40.12
Environment details
HAOS add-on (6adb4f0d_predbat), MCP component enabled via apps.yaml (mcp_enable: true, default mcp_port: 8199), Components page shows MCP Server as Active.
Steps to reproduce:
Enable MCP per docs (mcp_enable: true), confirm Active on Components page.
Send a POST to /mcp with Authorization: Bearer <mcp_secret> and a valid JSON-RPC initialize body, Content-Type: application/json, Accept: application/json, text/event-stream.
Connection is accepted, request body sent successfully, then server aborts the connection with no HTTP response at all.
Log file
63846 | 2026-06-19 14:30:51.127993: MCP POST: Missing or invalid Authorization header
63845 | 2026-06-19 14:30:51.127954: MCP POST: Received request from 10.0.1.84
Describe the bug
MCP server aborts connection (no HTTP response) when any Authorization Bearer header is present
Expected behaviour
MCP Server to authenticate using secret only
Predbat version
v8.40.12
Environment details
HAOS add-on (6adb4f0d_predbat), MCP component enabled via apps.yaml (mcp_enable: true, default mcp_port: 8199), Components page shows MCP Server as Active.
Steps to reproduce:
Enable MCP per docs (mcp_enable: true), confirm Active on Components page.
Send a POST to /mcp with Authorization: Bearer <mcp_secret> and a valid JSON-RPC initialize body, Content-Type: application/json, Accept: application/json, text/event-stream.
Connection is accepted, request body sent successfully, then server aborts the connection with no HTTP response at all.
Log file
63846 | 2026-06-19 14:30:51.127993: MCP POST: Missing or invalid Authorization header
63845 | 2026-06-19 14:30:51.127954: MCP POST: Received request from 10.0.1.84