mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-17 04:31:55 +00:00
The slash_worker creates a HermesCLI which imports model_tools, triggering discover_mcp_tools() at module scope. Meanwhile, the TUI server also calls MCP discovery independently. Both paths spawn ``hermes mcp serve`` child processes per session. Fix: defer the cli import in slash_worker to main() and set HERMES_MCP_DISCOVERY=0 beforehand. model_tools now checks this env var and skips MCP discovery when suppressed. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| entry.py | ||
| event_publisher.py | ||
| render.py | ||
| server.py | ||
| slash_worker.py | ||
| transport.py | ||
| ws.py | ||