Skip to content

feat(desktop-commander): self-hosted MCP endpoint — Worker, bridge package, Actions publish/promote (#13404) - #13427

Merged
dezren39 merged 1 commit into
mainfrom
feat/desktop-commander-worker-13404
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
feat/desktop-commander-worker-13404

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Part of #13404 — the self-hosted Desktop Commander MCP endpoint, built to the fleet's existing Worker patterns (atlas-search layout, id-mail publish/promote).

What's in here

  • pkgs/desktop-commander/worker/ — the desktop-commander Worker: a transparent streamable-HTTP MCP proxy. Public door commander.security.cab (Access app: owner Google identity + service-token policy; workers_dev off); refuses requests without an Access JWT assertion; relays to the bridge door commander-link.security.cab (Access service-token-only) presenting its own egress token, uploaded as per-version secrets.
  • .github/workflows/desktop-commander-worker-{publish,promote,tests}.yml — publish uploads a cf Worker version with a provenance artifact and changes no traffic; promote verifies the publish run + manifest baseline, then deploys exactly that version at 100%.
  • pkgs/supergateway/ — supergateway 4.2.2 packaged (buildNpmPackage, vendored lockfile, same shape as pkgs/desktop-commander).
  • home/common/default.nix — the supergateway package plus the desktop-commander-bridge user unit (supergateway wrapping the packaged Desktop Commander on 127.0.0.1:8931, real user PATH, mirroring desktop-commander-remote).

Already live outside this PR (recorded on #13404): the bridge running on amd, the sandbox-link tunnel ingress for commander-link.security.cab, both Access apps + policies, both service tokens (fleet secrets, by name), and DNS. The bridge door answers an MCP initialize through the tunnel with the egress token and 403s without credentials.

Verification

  • Worker unit tests 4/4 pass; tsc --noEmit clean (laptop, node 24).
  • pkgs/supergateway builds in Nix; the built binary reports 4.2.2.
  • Bridge door end-to-end: MCP initialize through tunnel + Access returns the real Desktop Commander 0.2.52.

Remaining legs after merge (tracked on #13404): first publish + promote through the new workflows, custom-domain attach, public-door verification, then the mcpx consumer entry (header-auth shape + env expansion) with the next laptop switch.


Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…, bridge package, Actions publish/promote

Part of #13404. The Worker (pkgs/desktop-commander/worker) is a
transparent streamable-HTTP MCP proxy that sits behind the
commander.security.cab Access app and relays to the laptop bridge
door (commander-link.security.cab, Access service-token only) with
its own egress token. Deploys follow the id-mail pattern: GitHub
Actions publish uploads a cf Worker version with provenance,
promote moves exactly that verified version to 100%.

pkgs/supergateway packages the stdio<->HTTP bridge (4.2.2,
buildNpmPackage, vendored lock); home/common/default.nix gains the
supergateway package and the desktop-commander-bridge user unit
(supergateway wrapping the packaged Desktop Commander on
127.0.0.1:8931). Worker tests 4/4 and typecheck pass locally;
supergateway builds in Nix and reports 4.2.2.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f7f20dec-3d0d-40ca-aecf-c8113a5c9c3d
Commits

Reviewing files that changed from the base of the PR and between d3e5721 and 83fa1a3.

Files ignored due to path filters: 2

  • pkgs/desktop-commander/worker/package-lock.json is excluded by !**/package-lock.json
  • pkgs/supergateway/package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 17

  • .github/workflows/desktop-commander-worker-promote.yml
  • .github/workflows/desktop-commander-worker-publish.yml
  • .github/workflows/desktop-commander-worker-tests.yml
  • home/common/default.nix
  • pkgs/desktop-commander/worker/README.md
  • pkgs/desktop-commander/worker/cloudflare.config.ts
  • pkgs/desktop-commander/worker/config.json
  • pkgs/desktop-commander/worker/package.json
  • pkgs/desktop-commander/worker/promote.mjs
  • pkgs/desktop-commander/worker/src/index.ts
  • pkgs/desktop-commander/worker/test/proxy.test.ts
  • pkgs/desktop-commander/worker/tsconfig.json
  • pkgs/desktop-commander/worker/upload-version.mjs
  • pkgs/desktop-commander/worker/verify-upload-run.mjs
  • pkgs/desktop-commander/worker/vitest.config.ts
  • pkgs/desktop-commander/worker/wrangler.toml
  • pkgs/supergateway/default.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T15:48:08.656106Z 83fa1a3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant