Merge PR #291: feat: add MCP (Model Context Protocol) client support

Authored by 0xbyt4. Adds MCP client with official SDK, direct tool registration,
auto-injection into hermes-* toolsets, and graceful degradation.
This commit is contained in:
teknium1 2026-03-02 18:24:31 -08:00
commit 468b7fdbad
7 changed files with 1299 additions and 2 deletions

View file

@ -2217,7 +2217,14 @@ async def start_gateway(config: Optional[GatewayConfig] = None) -> bool:
# Stop cron ticker cleanly
cron_stop.set()
cron_thread.join(timeout=5)
# Close MCP server connections
try:
from tools.mcp_tool import shutdown_mcp_servers
shutdown_mcp_servers()
except Exception:
pass
return True