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
bug: obs-mcp: headless startup depends on X11 #4464
rust/obs-mcp/src/ffi/mod.rs:645 calls obs_startup without selecting a Unix platform. libobs/obs-nix-platform.c.h:20 defaults to X11; libobs/obs-nix-x11.c.h:243 opens DISPLAY. Selecting Wayland with no compositor is also unsafe today: libobs/obs-nix-wayland.c.h:394 dereferences the null platform display.
Expected: the MCP host starts on Wayland and in headless CI without any X server. initialize/tools/list must succeed; unavailable graphics should be reported through readiness state rather than prevent the control server from starting.
Proposed fix: choose the Unix platform before the self-hosted libobs starts, retain any owned display connection through shutdown, and use a display-free hotkey implementation when there is no native display. Preserve GUI platform selection, existing C tests, public C headers and obs-websocket compatibility.
RED sketch: add cases to the existing obs-tests-app MCP stdio module. Spawn the real --mcp binary with DISPLAY pointing at a nonexistent display, both with Wayland session variables and without a compositor. Require initialize/tools/list, scene operations and clean EOF shutdown. Native real-app verification belongs in bosn; final host tools/list smoke will use the operator's Wayland environment.
Claiming: headless MCP startup without X. Plan: (1) RED real MCP-host stdio cases with an unreachable DISPLAY in the existing obs-tests-app binary; (2) GREEN platform selection/display lifetime and no-display hotkeys; (3) focused native tests and bosn smoke, then CI/merge queue. The fix branch starts at current origin/master. No public C headers or existing C tests will change. #4452/#4454 remain untouched while queued.
Fixed by merged #4466. The real-host regression was RED with nonexistent X/Wayland displays, then GREEN in bosn. The rebuilt native CLI also passed initialize/tools/list on the Wayland host with DISPLAY=:0, exposing all 30 tools, plus structured stats and a satisfied wait. No startup XOpenDisplay failure remains. Physical device/GUI validation is tracked in #4446, #4448 and #4449.
Activity
zackees commentedon Nov 10, 2026
Claiming: headless MCP startup without X. Plan: (1) RED real MCP-host stdio cases with an unreachable DISPLAY in the existing obs-tests-app binary; (2) GREEN platform selection/display lifetime and no-display hotkeys; (3) focused native tests and bosn smoke, then CI/merge queue. The fix branch starts at current origin/master. No public C headers or existing C tests will change. #4452/#4454 remain untouched while queued.
fix(mcp): GREEN start headless without an X server (#4464)
fix(mcp): start headless without an X server (obs-rust#4466)
feat(mcp): fluent typed client and A/V probe socket transport (obs-ru…
zackees commentedon Nov 10, 2026
Fixed by merged #4466. The real-host regression was RED with nonexistent X/Wayland displays, then GREEN in bosn. The rebuilt native CLI also passed initialize/tools/list on the Wayland host with DISPLAY=:0, exposing all 30 tools, plus structured stats and a satisfied wait. No startup XOpenDisplay failure remains. Physical device/GUI validation is tracked in #4446, #4448 and #4449.