Description
Problem
On master 88b60f6, the documented default build produces a CLI without libobs, while .mcp.json launches exactly that binary. A bundled-native build requires a manually built release archive through OBS_BUILD_RUST_ARCHIVE and native development files; on this NixOS/Wayland host x11.pc is absent outside a development shell. The successful earlier smoke depended on private session setup that a clean checkout cannot reproduce.
Target
Provide one documented ./mcp command that builds the release libobs-rust archive automatically, builds the libobs-enabled application, and can launch stdio or socket/attach modes. Use a dedicated native output so a later ordinary featureless build cannot replace the configured MCP executable. On NixOS enter a declared, clean development shell containing the native dependencies (including the X11 .pc files); no manually captured environment or prebuilt archive is required. Keep build diagnostics off protocol stdout. Point .mcp.json at this entry point.
Coverage
RED/GREEN subprocess tests for archive-before-app ordering, automatic archive wiring, native feature selection, dedicated output/config wiring, build-failure handling, and stdio/argument preservation. Reuse existing test harnesses; no public headers, C tests or workflows. Then build on this host without OBS_BUILD_RUST_ARCHIVE/CPATH/PKG_CONFIG_PATH hand setup, run initialize/tools/list, and run a real socket --mcp-attach smoke. Parent #4444.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Nov 10, 2026
Claiming: add RED subprocess coverage for a clean native MCP bootstrap/config entry point, then implement the launcher and declared Nix dependency environment (GREEN). Build the archive automatically, preserve JSON-RPC stdout, and keep the native output separate from default builds. Run stdio and socket attach smokes on this Wayland host, then land one PR. First RED commit this session.
fix(mcp): GREEN native bootstrap with declared Nix SDK (#4507)
zackees commentedon Nov 10, 2026
Releasing #4507: merged in #4511 (2125886); PR and merge-queue CI passed.
Rebuilt merged master on this NixOS/Wayland host using exactly
./mcp --build, without manual archive or SDK exports. Output:target/mcp/debug/obs-studio-rust.Host smoke results: initialize + tools/list exit 0; launcher tools/list exit 0, 30 tools, all outputSchema fields present, including vcam_start/stop/status, vmic_status, media_restart/status, stats_get/reset and wait_for. stats_get returned a structured snapshot and wait_for was satisfied. Socket --mcp-attach exit 0, 30 tools; listener exited 0 and removed its socket on stdin EOF. The launcher smoke explicitly used DISPLAY=:0, XDG_SESSION_TYPE=wayland and WAYLAND_DISPLAY=wayland-0. No GUI or device run.
Nineteen focused bootstrap/import/platform tests passed on Python 3.14. Full local lint's remaining obs-browser ancestry failure was unchanged from origin/master and documented on the PR; hosted formatting and Fast Gate passed. Checkout is clean.
fix(mcp): bootstrap the native control server from the repository (ob…