diff --git a/scripts/mcp_smoke.py b/scripts/mcp_smoke.py index d7ce4fd..5912a95 100644 --- a/scripts/mcp_smoke.py +++ b/scripts/mcp_smoke.py @@ -7,6 +7,9 @@ in the caller, not here. import json import sys +import time + +HOLD = 1.5 CALL = { "jsonrpc": "2.0", @@ -34,7 +37,10 @@ MESSAGES = [ def main() -> int: for message in MESSAGES: sys.stdout.write(json.dumps(message) + "\n") - sys.stdout.flush() + sys.stdout.flush() + time.sleep(0.2) + # Keep stdin open until the last reply lands, then signal EOF by exiting. + time.sleep(HOLD) return 0