Skip to content

obs-mcp: Windows named-pipe attachment transport #4455

Done

Description

@zackees

Follow-up to Control API transport slice #4448, parent #4444. Implement Windows named-pipe transport using the same newline JSON-RPC Server and typed client as Unix sockets. Restrict the pipe ACL to the current user and reject remote clients. Implement attach/proxy, deterministic multi-client and lifecycle tests in the existing shared category harnesses, with RED then GREEN. Until this lands, Windows attachment and the in-app socket module return an explicit unsupported error; stdio stays supported. Keep host code inside src/platform or src/ffi. Do not add a workflow or test executable.

Activity

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

    @KelboLive
    Contributor

    Claiming: #4455 — Windows named-pipe attachment transport on branch port/4455-win-named-pipe. 1. Reuse the newline JSON-RPC server and typed client over a Windows named pipe via src/platform windows selection, ACL to the current user, remote clients rejected. 2. RED deterministic attach/proxy, multi-client and lifecycle cases in the existing shared harnesses, then GREEN. 3. No new workflow or test executable.

  3. moved this from Ready to In progress in obs-rust Multiviewon Nov 11, 2026
  4. moved this from In progress to Ready in obs-rust Multiviewon Nov 13, 2026
  5. KelboLive commented on Nov 29, 2026

    @KelboLive
    Contributor

    Continuing: resuming my earlier claim, rebased onto current master (33c2d86). Reviewing the earlier branch against the issue's requirements turned up two gaps, now fixed:

    1. Owner-only ACL. The pipe was created with a NULL security descriptor (every local user). \CreateNamedPipeW\ now takes a protected DACL from SDDL \D:P(A;;GA;;;OW)\ — one ACE for the object's owner, the creating user. Verified on Windows 11 24H2 with \GetNamedSecurityInfoW: \D:P(A;;FA;;;OW).
    2. Remote clients. \PIPE_REJECT_REMOTE_CLIENTS\ is now set.

    Also: the instance is a byte stream (same newline JSON-RPC as Unix), \ConnectNamedPipe\ is overlapped so shutdown is prompt instead of a \PIPE_NOWAIT\ busy loop, and \proxy_with\ makes the relay testable.

    Tests in obs-tests-core (5 passing on Windows): client round-trip and name removal with the last server handle, second bind refused, a second client served after the first disconnects, proxy request/response, absent name fails. Opening the PR next.

  6. KelboLive commented on Nov 30, 2026

    @KelboLive
    Contributor

    Claiming: #4455 — Windows named-pipe attachment transport, continuing branch port/4455-win-named-pipe and PR #5969.

    1. Keep the transport: byte-stream named pipe carrying the same newline JSON-RPC as the Unix socket, with the typed client and Server unchanged.
    2. Keep the security: CreateNamedPipeW gets a protected owner-only DACL (D:P(A;;GA;;;OW); Windows reports D:P(A;;FA;;;OW)) and PIPE_REJECT_REMOTE_CLIENTS.
    3. Keep the lifecycle: overlapped ConnectNamedPipe so shutdown is prompt, PeekNamedPipe before reads, clients served one after another.
    4. Tests in obs-tests-core: lifecycle, second bind refused, sequential clients, proxy relay, absent name. ./lint green on Windows.
    5. Address review and CI on obs-mcp: Windows named-pipe control transport with an owner-only ACL (Fixes #4455) #5969; no public header, C test or obs-websocket change.

    PR #5969 is open and mergeable; the earlier claim expired while the branch sat unreviewed.

  7. moved this from Ready to In progress in obs-rust Multiviewon Nov 30, 2026
  8. KelboLive commented on Nov 30, 2026

    @KelboLive
    Contributor

    Implemented and merged: #5969 landed as 6f2f795. The control pipe uses an owner-only DACL, refuses remote clients, authenticates the server's owner and drops client impersonation.

  9. KelboLive commented on Nov 30, 2026

    @KelboLive
    Contributor

    Implemented and merged: #5969 landed as 6f2f795. The control pipe uses an owner-only DACL, refuses remote clients, authenticates the server's owner and drops client impersonation. A maintainer can close this.

  10. added a commit that references this issue on Nov 30, 2026
    6f2f795
  11. vpacher commented on Dec 1, 2026

    @vpacher
    Member

    Done in #5969 (merged 2026-11-30 as 6f2f795): obs-mcp has a Windows named-pipe control transport with an owner-only ACL. The PR named this issue only in its title, so GitHub did not link it and the merge did not close it. Closing by hand.

  12. moved this from In progress to Done in obs-rust Multiviewon Dec 1, 2026
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