GeezerVison is showing github.com — mcpx testing (#1980) remainder: in-process app entrypoint and scriptable mock MCP server · Issue #13956 · developing-today/code
mcpx testing (#1980) remainder: in-process app entrypoint and scriptable mock MCP server #13956DescriptionAUDIT-7 follow-up (batch 5/14, chunk E) from auditing merged PR #8998 against issue #1980.
What #8998 did: implemented only the binary-override piece of #1980 (approach B / stage-2 increment): MCPX_TEST_BINARY now points the binary suite at a prebuilt binary with loud failure on a bad value.
Remainder of #1980, still open: no later PR references #1980 and no follow-up issues were found for these pieces.
- In-process app entrypoint: move the dispatch in cmd/mcpx/main.go into cli.Run(ctx, args, env, stdio) int and run most integration tests in-process, keeping the binary suite as a superset for signals, exit codes, argv parsing, the detached daemon, and the nix wrapper.
- Scriptable mock MCP server: replace the fixed-behaviour fakemcp so each test states the server behaviour it needs.
- (Also noted in mcpx testing: an in-process app entrypoint beside the binary suite, and a scriptable mock MCP server #1980: the os.MkdirTemp temp dirs in internal/testsupport/build.go are never removed.)
Acceptance: cli.Run entrypoint exists with integration tests running through it; a scriptable mock server replaces fakemcp; temp-dir cleanup addressed. Activitydeveloping-today commented on Nov 24, 2026 dezren39 commented on Nov 24, 2026 Triage verdict (lane oc-code-05, queue task 22475, coverage reconciliation pass 2 — tracking #14158): already resolved in substance — closing.
Parent #1980 is CLOSED (status:done) with all four stages landed and verified merged (agent note 2026-11-16). This follow-up's premise (only #8998 landed, no follow-ups found) is stale; verified fresh 2026-11-24:
- In-process app entrypoint — done:
cli.Run(ctx, args, env, stdio) int exists at pkgs/mcpx/internal/cli/run.go:129 (PR feat(mcpx): cli.Run in-process entrypoint, slim main (#1980 stage 1) #2714, merged 2026-11-11); dual-runner harness running integration tests in-process with the binary suite as superset (PR mcpx e2e: dual-runner harness (binary + in-process) — #1980 stage 2 #10833, merged 2026-11-16).
- Scriptable mock MCP server — done:
FAKEMCP_SCRIPT_FILE mechanism (pkgs/mcpx/internal/testsupport/fakemcp/script.go, plus script_test.go) via PR mcpx fakemcp: scriptable mock via FAKEMCP_SCRIPT_FILE (#1980 stage 4) #10856 (merged 2026-11-16); fakemcp is scriptable per-test.
- Temp-dir cleanup — done: builders register every dir via
registerBuildTempDir and suites sweep them at end of run (SweepBuildTempDirs / MainWithSweep in pkgs/mcpx/internal/testsupport/sweep.go); leaked-daemon detection included.
No follow-on packet routed; no live queue task needed. If a narrower remainder (e.g. elective per-caller script migration, noted as elective on #1980) is wanted, file it as new scoped work. dezren39 commented on Nov 24, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|