feat: disable tqmemory MCP server when binary is broken (Closes #1541) - #1548
Merged
Conversation
Adds scripts/evolution_disable_failed_mcp.py: checks tqmemory binary health via resolve_binary + verify_tqmemory, and if broken/missing, sets mcp_servers.tqmemory.enabled: false in all profile configs to stop the connection retry storm (1190+ error lines per session batch). Closes #1541 Co-Authored-By: Hermes Evolution <evolution@hermes.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated evolution PR for issue #1541.
Problem
tqmemory MCP server fails every connection attempt (zero successes). Gateway retries 3x then parks and self-probes every 300s forever — 1190+ error lines per session batch, 218KB errors.log (95% tqmemory spam).
Fix
Adds
scripts/evolution_disable_failed_mcp.py: checks tqmemory binary health viaresolve_binary+verify_tqmemory. If broken/missing, setsmcp_servers.tqmemory.enabled: falsein all profile configs — stopping the connection retry storm immediately.Features:
--dry-runmode for checking without modifyingtqmemory_setupmodule functions (no duplication)_all_profile_config_paths()Files
scripts/evolution_disable_failed_mcp.py(120 lines)tests/scripts/test_evolution_disable_failed_mcp.py(79 lines, 6 tests)Checks