aboutsummaryrefslogtreecommitdiffstats
path: root/spawn.sh
diff options
context:
space:
mode:
Diffstat (limited to 'spawn.sh')
-rwxr-xr-xspawn.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/spawn.sh b/spawn.sh
index 4b0c63c..9db8310 100755
--- a/spawn.sh
+++ b/spawn.sh
@@ -1,5 +1,12 @@
#!/bin/sh
# 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.
+
+# Ensure idatui's extra server tools (del_type, needed by the struct editor) are
+# present in the installed ida-pro-mcp. Idempotent; patches the api_types.py that
+# the /usr/bin/python workers import. See server/patch_server.py.
+/usr/bin/python "$(dirname "$0")/server/patch_server.py" || \
+ echo "warn: server patch skipped (del_type may be unavailable)"
+
IDA_MCP_MAX_WORKERS="${IDA_MCP_MAX_WORKERS:-8}" \
uv run idalib-mcp --host 127.0.0.1 --port 8745 $(pwd)/bin/ls