diff --git a/homeassistant/components/mcp_server/http.py b/homeassistant/components/mcp_server/http.py index 205684d0008..3af6fb4806a 100644 --- a/homeassistant/components/mcp_server/http.py +++ b/homeassistant/components/mcp_server/http.py @@ -41,7 +41,7 @@ from mcp.shared.message import SessionMessage from homeassistant.components import conversation from homeassistant.components.http import KEY_HASS, HomeAssistantView -from homeassistant.const import CONF_LLM_HASS_API +from homeassistant.const import CONF_LLM_HASS_API, CONTENT_TYPE_JSON from homeassistant.core import Context, HomeAssistant, callback from homeassistant.helpers import llm @@ -56,10 +56,6 @@ _LOGGER = logging.getLogger(__name__) STREAMABLE_API = "/api/mcp" TIMEOUT = 60 # Seconds -# Content types -# pylint: disable-next=home-assistant-duplicate-const -CONTENT_TYPE_JSON = "application/json" - # Legacy SSE endpoint SSE_API = f"/{DOMAIN}/sse" MESSAGES_API = f"/{DOMAIN}/messages/{{session_id}}"