This seems more like a question than a [FR]
Do you know for a fact that this doesn’t already exist?
I highly suggest you change the category at the top to Configuration - Home Assistant Community and add what you’ve already tried, give others a chance to weigh in on this, Someone might know something about it.
Neither the config flow supports any other input than the URL, nor is there any hint about working with such authorization headers in the MCP client code. It’s definitely a feature request.
I concur. Have been struggling with this for many hours already.
Bottom line:
Some additions to the documentation for how to configure an MCP (SSE) Client are highly appreciated!
Background:
The HA mcp_server documentation instructs the creation of a long-lived access token to be used by the MCP client. And this API_ACCESS_TOKEN must then be entered in the MCP client.
I have tried to set up the suggested Claude Desktop and mcp-proxy, just to test if my (HA) MCP Server is running, but failed miserably on the mcp-proxy part.
Besides, I want to use a n8n “MCP Client (SSE) API” node, which (I believe) can make SSE calls directly to an MCP Server, and therefore should not need an mcp-proxy.
That MCP Client takes 3 parameters:
SSE URL: https://<my_ha_server_url>:8123/mcp_server/sse
(this is specifically mentioned in the documentation)
Messages Post Endpoint: https://<my_ha_server_url>:8123/messages
(educated guess, based on all the documents I read on the subject)
Additional Headers: here I have tried a zillion possibilities, like: API_ACCESS_TOKEN=“the long lived access token I generated earlier”
or only the token and not the label, or without the quotes, etc etc…
Whatever I try, I cannot figure out how to connect to my HA MCP Server from my (n8n) MCP Client, and I keep getting an 401 response (access denied).