Skip to content

obs-mcp: typed tools, schemas and structured errors #4445

Closed

Description

@zackees

Parent #4444. Maintainer-approved implementation slice 1. Add TypedTool with serde/schemars input/output structs, exact-pinned workspace schemars, blanket legacy Tool adapter, outputSchema and structuredContent alongside existing text/image content. Preserve existing names and successful wire payloads. Deny unknown input fields, default optional fields, typed request/response backend methods, annotations and structured ToolError using obs-websocket v5 status ranges. Write short control-api.md first; commit generated schema snapshot with drift test. RED then GREEN tests go in tests/mcp under existing obs-tests-core. Validate lint, existing MCP tests and real stdio protocol smoke test; unchanged C ABI means Tier 2/3 are compatibility regression coverage rather than a C port.

Activity

  1. added
    ready
    mcp
    on Nov 9, 2026
  2. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: typed tools, schemas and structured errors (slice 1 of #4444).

    1. Record the approved five-slice design and compatibility contract.
    2. Commit RED tests/stubs in tests/mcp within obs-tests-core and open the draft PR.
    3. Implement typed adapter and migrate tools, schemas, annotations and errors; validate and queue.
      First draft PR expected in this worker session.

    Decisions: preserve legacy successful text and image payloads and names; structuredContent is additive. Invalid typed input is a JSON-RPC invalid-params fault; domain failures use structured ToolError with v5 status codes. No public C headers or WebSocket plugin changes.

  3. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Progress: RED commit 59f2012 failed at the intended typed-adapter todo!() stub. Implementation is on PR #4450; 61 MCP tests passed, including structured content/errors and schema drift. Review corrections preserve readiness errors in native outputs and use conservative annotations. Legacy backend hooks remain available, while registered tools use request/response structs.

    Decisions: use actual obs-websocket v5 RequestStatus values (ResourceNotFound=600, NotReady=207, InvalidResourceState=604, RequestProcessingFailed=702); the initial request summary transposed some ranges. Full checks and application smoke test are underway. Master regression #4443 currently prevents green required CI; another worker has claimed its repair.

  4. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Blocked: required CI inherits master regression #4443, and real-app MCP smoke verification needs the native development dependency closure and release libobs-rust archive described in docs/rust-port/mcp.md. Slice 1 implementation is committed on infra/control-api-typed / PR #4450; focused tests (62) and native-backend Clippy pass. Default CLI builds, but the real tools/list stdin attempt exits 1 with: error: this build has no libobs; rebuild with --features bundled-native. Keeping the PR draft and not queueing or claiming completion. Other slices remain unclaimed; #4446 also waits for draft PR #4124, whose branch was left untouched.

  5. added
    claim-blocked
    on Nov 9, 2026
  6. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Blocked: waiting for master repair #4443 and native MCP runtime verification. Final pushed head is 8adc952 on draft PR #4450; all 62 MCP tests pass on that head, as does native-backend Clippy. Current CI run 42708651038 confirms the same #4443 failures outside this PR. The release libobs-rust archive is now built; the configured MCP-enabled build fails at missing x11.pc. The default CLI tools/list stdin smoke exits 1 with no stdout and the bundled-native-required error. No queue/handoff or completion claim; all source changes are committed and pushed, perf/4119-vmic-pipewire remains untouched.

  7. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Continuing: master repair #4453 has merged. #4450 is rebased onto it and all required checks, including CI Gate and Tier 2 proof, are green on a558e17. Marking ready and entering the merge queue. Native runtime smoke will also be reported with the completed Control API stack; Nix development dependencies are now available.

  8. removed
    claim-blocked
    on Nov 9, 2026
  9. zackees commented on Nov 10, 2026

    @zackees
    MemberAuthor

    Merged as #4450 (9899c56), after rebasing onto the master repair and passing PR plus merge-queue CI. Typed input/output schemas, structured errors/content, annotations and schema drift snapshot are delivered. Native stdio and attach smoke on the complete stack each returned 30 tools with outputSchema, exit 0. Remaining control domains, waits, module/transport and client/probe are tracked by native siblings #4446–#4449 with PRs #4452/#4454/#4456/#4457.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

mcpready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions