Repository navigation
feat(mcp): fluent typed client and A/V probe socket transport - #4457
Merged
Merged
Conversation
zackees
marked this pull request as draft
November 9, 2026 23:44
# Conflicts: # rust/obs-mcp/Cargo.toml
…ransport # Conflicts: # docs/features.md # docs/rust-port/control-api.schema.json # rust/obs-mcp/src/backend/control.rs # rust/obs-mcp/src/backend/mod.rs # rust/obs-mcp/src/ffi/control.rs # rust/obs-mcp/src/tools/control.rs # rust/obs-mcp/src/tools/mod.rs # rust/obs-mcp/tests/mcp/main.rs
…lient # Conflicts: # docs/features.md # docs/rust-port/control-api.schema.json # rust/obs-mcp/src/backend/control.rs # rust/obs-mcp/src/backend/mod.rs # rust/obs-mcp/src/ffi/control.rs # rust/obs-mcp/src/tools/control.rs # rust/obs-mcp/src/tools/mod.rs # rust/obs-mcp/tests/mcp/main.rs
…api-client # Conflicts: # docs/features.md
zackees
marked this pull request as ready for review
November 10, 2026 02:30
|
Claim conflict: keep this PR out of the merge queue until resolved.
|
…eadless-startup # Conflicts: # docs/features.md
…ransport # Conflicts: # rust/obs-mcp/tests/mcp/main.rs
…lient # Conflicts: # docs/features.md # rust/obs-mcp/tests/mcp/main.rs
…api-client # Conflicts: # docs/features.md
…lient # Conflicts: # docs/features.md # docs/rust-port/control-api.md # rust/obs-mcp/src/lib.rs # rust/obs-mcp/tests/mcp/main.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a fluent typed Rust client for the control socket and MCP transport to the independent A/V sync probe.
--transport mcprequires no websocket or GUI;autofalls back only when the websocket connection cannot open. Existing websocket control remains available.Stacked on #4456 and the no-X startup PR #4466; slice 5 starts at RED 3a96a9d. Refs #4449, parent #4444.
RED: two shared-harness Rust tests panic against client todo stubs; the Python structured exchange test raises NotImplementedError. GREEN: the client reuses server Input/Output structs, preserves structured domain errors and rejects wrong JSON-RPC IDs. Probe tests cover framing, fallback, playback wait/order, unique-source cleanup and forced kill/reap after a capture deadline. Additive
source_removeenables cleanup without GUI interaction. Schema snapshot includes it.Validation: all 78 MCP cases and five Python transport/probe tests pass. Native Clippy passes. Domain-error extension regression was RED at 897e36c and GREEN at d8a5060: new error fields no longer turn a domain failure into a protocol failure. Request structs remain strict. The local Rust lane passed 7,687 tests (six skipped) and Windows GNU compilation; the duplicate local C Tier 2 build was stopped after more than 12 minutes, with Tier 2 CI already green on #4452. No full-local-gate attestation is claimed.
Final rebuilt native CLI smoke on the Wayland host (DISPLAY=:0 unreachable, XDG_SESSION_TYPE=wayland, WAYLAND_DISPLAY=wayland-0) succeeds, including initialize:
--mcptools/list exits 0 with 30 tools, all outputSchema; stats_get returns a structured snapshot, wait_for inactive succeeds, and missing media returns structured error 600. Socket listen + attach returns the same 30 tools, exits 0 and removes its socket on stdin EOF. Module export audit shows exactly the seven module entry points. Actual GUI/device measurements remain for bosn and are still tracked by the client issue.Test cost: new Rust client cases use in-memory streams and no own threads; no new test binary. New socket tests (prior slice) start one server thread. Tier 2 remains unchanged; Tier 3 does not apply to this new client/protocol adapter.
Raw final host initialize/tools/list/stats/wait responses are retained in .git/control-wayland-smoke.jsonl and the concise summary in .git/control-wayland-smoke-summary.json. The no-display regression is separately RED/GREEN in bosn under #4466. Current origin/master is merged; required CI is pending and no full local-gate attestation is claimed.
Closes #4478: the repeated native-build failure was in the MCP plugin build after the main Tier 2 uncached recovery had succeeded. ZCCACHE_DISABLE was exported only inside the recovery subshell. RED 9b14acc proves the subsequent child sees an unset flag; GREEN fbaaaf0 keeps the flag in the validation process. All 12 existing/new build-error checks pass (5.769 s), including a healthy daemon and no retry for real compiler errors. Ruff and bash syntax checks pass. The original single-retry/cache-health behavior is preserved. No workflow, public header or C test changed.