You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test the MCP tool layer: always-on manifest sync, handler tests via InMemoryTransport, FFmpeg 8 integration on the Windows leg #192
The 370 unit tests cover pure argument builders well, but the layer agents actually call is mostly untested: tool registration, zod schemas, target resolution, and result shaping. That is where the issues in this review live, for example #180 (wait_for_change with full always fails), which a single handler call would have caught. The Windows CI leg, the only platform that can capture, never runs ffmpeg at all.
Evidence
The manifest-sync check does not run in CI.
CONTRIBUTING.md:31 says "a test checks the manifest matches the registered tools".
The only such comparison is in src/__tests__/localCapture.test.ts, which is gated by RUN_LOCAL_CAPTURE_TESTS and skipped in CI.
No handler-level tests.
No test drives start_recording, stop_recording, wait_for_change, find_text, sample_frames or screen_diff through an MCP client.
wgcRecorder.ts's process logic (finish/exit ordering, the cap timer, the first-frame timeout) is untested.
The FFmpeg 8 paths are never exercised in CI.
.github/workflows/ci.yml installs ffmpeg from apt on ubuntu-latest, which is 6.x.
The Windows leg skips the integration suite entirely.
So the FFmpeg 8 features (whisper for transcribe, gfxcapture for WGC) and real Windows behaviour (paths with drive letters and spaces, dshow) are untested.
Suggested approach
Add an always-on server.test.ts:
Build the server with InMemoryTransport and a real Client.
Assert that listTools() matches mcp-tools.json by name and count.
Call each tool with invalid arguments and assert a clean isError result.
Call the target-resolving tools with mocked getMonitors/getWindows.
Install an FFmpeg 8 build on the Windows leg (for example the gyan.dev or BtbN release, cached) and run the integration suite there with REQUIRE_FFMPEG=1.
Add a tiny whisper model fixture (cached) so transcribe runs in at least one leg.
Add a capture smoke test on windows-latest: screenshot full and a 2 s start_recording/stop_recording of gdigrab. Hosted runners have a desktop session.
Done when
Removing a tool from mcp-tools.json fails CI.
The Windows CI leg runs the integration suite against FFmpeg 8.
A handler test exists for every tool that resolves a capture target.
Activity