Skip to content

feat: allow selecting multiple MCP servers#94

Open
miguelangel-nubla wants to merge 1 commit intomichelle-avery:mainfrom
miguelangel-nubla:main
Open

feat: allow selecting multiple MCP servers#94
miguelangel-nubla wants to merge 1 commit intomichelle-avery:mainfrom
miguelangel-nubla:main

Conversation

@miguelangel-nubla
Copy link
Copy Markdown

Previously, only a single LLM API could be selected. This change upgrades the selector to a multi-select and merges tools + prompts from all selected APIs using Home Assistant's built-in llm.MergedAPI.

Changes

  • Config flow: replaces single SelectSelector with a multiple=True selector; removes the "No control" dummy option — an empty selection now means no API.
  • cc_llm.py: accepts str | list[str] | None, resolves each id against the registered API registry, instantiates CustomLLMAPI for the integration's own server, and merges everything via llm.MergedAPI when more than one API is selected.
  • Backward compatible: existing entries storing a bare string or "none" are handled transparently by coerce_llm_hass_api_ids — no migration needed.
  • Terminology: UI labels and docstrings updated from "LLM API" to "MCP server" to align with current Home Assistant conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant