From 4a83deb7bc2dcfed4696cd1bf2542a947ad7c4fb Mon Sep 17 00:00:00 2001 From: blasty Date: Thu, 9 Jul 2026 15:55:38 +0200 Subject: stop piling up idalib workers; raise max-workers headroom Root cause of 'Maximum idalib worker count reached': the app bumped idle_ttl to ~never on every open, so sessions never freed and hit the default cap of 4. - app: drop the immortal bump_idle_ttl(1e9); rely on the KeepAlive heartbeat (120s) to keep the running session warm, and open with a moderate idle_ttl (1800s) so the worker self-exits and frees its slot after the TUI closes. - spawn.sh: set IDA_MCP_MAX_WORKERS (default 8) for headroom. - doc: supervisor prunes unreachable workers before counting, so killing an idle worker frees a slot on the next open. (Verified separately: big/truncated decompile results propagate renames fine via the earlier force_recompile fix.) --- spawn.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'spawn.sh') diff --git a/spawn.sh b/spawn.sh index 8bc0b6f..4b0c63c 100755 --- a/spawn.sh +++ b/spawn.sh @@ -1,2 +1,5 @@ #!/bin/sh -uv run idalib-mcp --host 127.0.0.1 --port 8745 $(pwd)/bin/ls +# Start the ida-pro-mcp supervisor. IDA_MCP_MAX_WORKERS raises the ceiling on +# concurrently-open binaries (default 4); idle workers self-exit and free slots. +IDA_MCP_MAX_WORKERS="${IDA_MCP_MAX_WORKERS:-8}" \ + uv run idalib-mcp --host 127.0.0.1 --port 8745 $(pwd)/bin/ls -- cgit v1.3.1-sl0p