Skip to content

feat: disable tqmemory MCP server when binary is broken (Closes #1541) - #1548

Merged
Lexus2016 merged 1 commit into
mainfrom
evolution/issue-1541-tqmemory-disable
Aug 1, 2026
Merged

feat: disable tqmemory MCP server when binary is broken (Closes #1541)#1548
Lexus2016 merged 1 commit into
mainfrom
evolution/issue-1541-tqmemory-disable

Conversation

@Lexus2016

Copy link
Copy Markdown
Owner

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 via resolve_binary + verify_tqmemory. If broken/missing, sets mcp_servers.tqmemory.enabled: false in all profile configs — stopping the connection retry storm immediately.

Features:

  • --dry-run mode for checking without modifying
  • Uses existing tqmemory_setup module functions (no duplication)
  • Multi-profile support via _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

  • lint ✓, format ✓, tests ✓ (6 passed)

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>
@github-actions github-actions Bot added the bug Something isn't working label Aug 1, 2026
@Lexus2016
Lexus2016 merged commit 6eb5627 into main Aug 1, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant