edff87fa1e
hermes_cli/mcp_startup held one _mcp_discovery_started flag and one thread for the whole process, so in a shared Desktop/dashboard backend the first profile to build an agent won discovery and every later profile short-circuited with zero MCP servers of its own. The slot, the thread table and the wait/in-flight/join readers are now keyed by hermes_home_key() (follows the context-local HERMES_HOME override). Single-profile processes have one key and behave exactly as before. Shape from #90027 (Eva / @100yenadmin) and #104534 (@Bergmann89), applied to the one slot #108352 left open. Co-authored-by: Eva <239388517+100yenadmin@users.noreply.github.com> Co-authored-by: Bergmann89 <info@bergmann89.de>