fix(tui): force MCP discovery off in slash worker env

This commit is contained in:
Tranquil-Flow 2026-04-25 10:09:03 +10:00
parent c8e3c02c2b
commit d5eef50e9e
3 changed files with 49 additions and 2 deletions

View file

@ -65,7 +65,7 @@ def main():
# Suppress MCP discovery -- the TUI server already handles MCP servers;
# importing cli triggers model_tools which calls discover_mcp_tools() at
# module scope. This env var tells model_tools to skip that step.
os.environ.setdefault("HERMES_MCP_DISCOVERY", "0")
os.environ["HERMES_MCP_DISCOVERY"] = "0"
import cli as cli_mod
from cli import HermesCLI