[#2] Stdio server spawn-test #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
check_dependency()only verifies whethercommandresolves on PATH — it does not verify the server actually starts. The single most common troubleshooting step people do by hand is "run the server manually to see if it starts without errors" (MCP official debugging docs). BCC stops one step short of that.Proposed solution
Add a Test launch function in
bcc_core.pythat:subprocesswith the server'scommand,args, andenv.{outcome: "ok"|"crashed"|"timeout", stderr: str, returncode: int|None}.The GUI (
bcc.py) adds a Test launch button next to each stdio server row; clicking it runs the above in aQThread(same pattern asConnTester) and shows the result inline (green/red) with a Copy output action.Acceptance criteria
bcc_core.pywith no GUI imports; has unit tests intests/test_core.py.python -c "import time; time.sleep(10)") →timeout.crashedwith stderr.command-that-does-not-exist→ handled gracefully (not a Python exception bubble).stderrtail available via Copy diagnostics.Relevant code
bcc_core.py::check_dependency(~line 916) — PATH check to reuse/extendbcc_core.py::runner_hint(~line 885)bcc.py::ConnTester— pattern to follow for the QThread wrapper