GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #15788 from developing-today/code-j/13404-vendor-s… · developing-today/code@c223372

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • home/common
    • default.nix
  • pkgs
    • desktop-commander/worker
      • README.md
    • fleet/book/concepts
      • commander.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎home/common/default.nix‎

Copy file name to clipboardExpand all lines: home/common/default.nix
+6-51Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ let
134134
t3code = pkgs.callPackage ../../pkgs/t3code-desktop { };
135135
# Desktop Commander MCP: the local half of OpenAI's "Remote Desktop
136136
# Commander" plugin. See pkgs/desktop-commander for the packaging; the
137-
# desktop-commander-remote unit below keeps the device agent online.
137+
# bridge unit below runs it for the self-hosted endpoint.
138138
desktop-commander = pkgs.callPackage ../../pkgs/desktop-commander { };
139139
# supergateway: the stdio <-> streamable-HTTP bridge that fronts the
140140
# packaged Desktop Commander for the self-hosted endpoint (#13404).
@@ -1029,62 +1029,17 @@ in
10291029
Install.WantedBy = [ "timers.target" ];
10301030
};
10311031

1032-
# Desktop Commander's Remote Device: the local half of OpenAI's "Remote
1033-
# Desktop Commander" plugin. The hosted Remote MCP at
1034-
# mcp.desktopcommander.app forwards tool calls to this process, which drives
1035-
# the local Desktop Commander MCP server under the user's own permissions.
1036-
# Installing the plugin itself is a ChatGPT/Codex action and cannot be done
1037-
# by a NixOS unit; what this unit buys is that the device is online whenever
1038-
# the user session is, rather than living in a stray terminal.
1039-
#
1040-
# FIRST RUN IS INTERACTIVE. `remote` starts an OAuth device flow and prints a
1041-
# verification URL and code, so the unit only pairs unattended once a session
1042-
# has been stored. Watch it with:
1043-
# journalctl --user -u desktop-commander-remote -f
1044-
# and approve at mcp.desktopcommander.app. The session is saved to
1045-
# ~/.desktop-commander-device/device.json (0600) and reused on restart.
1046-
#
1047-
# PATH matters for the same reason it does in t3code below: a systemd user
1048-
# unit does not inherit the login shell's PATH, and Desktop Commander exists
1049-
# to run arbitrary user commands, so it needs the real one. Sourcing the
1050-
# profiles is deliberately broader than a makeBinPath list -- a curated set
1051-
# would silently hide most of what the remote shell is meant to reach. The
1052-
# agent's own ripgrep is already on its wrapped PATH from the derivation.
1053-
systemd.user.services.desktop-commander-remote = {
1054-
Unit = {
1055-
Description = "Desktop Commander Remote MCP device agent";
1056-
Documentation = "https://mcp.desktopcommander.app";
1057-
After = [ "network-online.target" ];
1058-
Wants = [ "network-online.target" ];
1059-
};
1060-
Service = {
1061-
ExecStart = toString (
1062-
pkgs.writeShellScript "desktop-commander-remote-start" ''
1063-
export PATH="/run/current-system/sw/bin:/run/wrappers/bin:/etc/profiles/per-user/$USER/bin:$HOME/.nix-profile/bin:$PATH"
1064-
exec ${desktop-commander}/bin/desktop-commander remote
1065-
''
1066-
);
1067-
# The device reconnects after a network blip on its own, so only a crash
1068-
# or a revoked authorization should take the unit down: on-failure, with
1069-
# a slow restart so a failing OAuth flow cannot spin.
1070-
Restart = "on-failure";
1071-
RestartSec = 15;
1072-
};
1073-
Install.WantedBy = [ "default.target" ];
1074-
};
1075-
10761032
# Self-hosted Desktop Commander endpoint (#13404): the local half of
10771033
# commander.security.cab. supergateway wraps the packaged Desktop
10781034
# Commander (stdio) as a streamable-HTTP MCP server on
10791035
# 127.0.0.1:8931/mcp; the sandbox-link Cloudflare Tunnel carries it to
10801036
# the bridge door (commander-link.security.cab, Access service-token
1081-
# only), where the desktop-commander Worker picks it up. This unit
1082-
# replaces nothing: the vendor device agent above stays until the
1083-
# self-hosted endpoint is verified and is stood down separately.
1037+
# only), where the desktop-commander Worker picks it up. This is the only
1038+
# Desktop Commander unit: the vendor device agent (desktop-commander-remote)
1039+
# was stood down once the self-hosted endpoint soaked.
10841040
#
1085-
# PATH matters for the same reason it does in
1086-
# desktop-commander-remote above: the wrapped server exists to run
1087-
# arbitrary user commands, so it needs the real user PATH.
1041+
# PATH matters because the wrapped server exists to run arbitrary user
1042+
# commands, so it needs the real user PATH.
10881043
systemd.user.services.desktop-commander-bridge = {
10891044
Unit = {
10901045
Description = "Desktop Commander local MCP bridge (stdio to streamable HTTP, 127.0.0.1:8931)";
Collapse file

‎pkgs/desktop-commander/worker/README.md‎

Copy file name to clipboardExpand all lines: pkgs/desktop-commander/worker/README.md
+6-7Lines changed: 6 additions & 7 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,12 @@ touching this directory.
9494
## Laptop side
9595

9696
- `desktop-commander-bridge.service` (user unit; defined in
97-
`home/common/default.nix` next to `desktop-commander-remote`):
98-
supergateway wrapping the packaged Desktop Commander on
99-
`127.0.0.1:8931`, path `/mcp`, stateful sessions, `/healthz` for
100-
gateway health.
101-
- The vendor device agent (`desktop-commander-remote.service`) stays
102-
running until this endpoint is verified end to end; standing it down
103-
is a separate recorded step.
97+
`home/common/default.nix`): supergateway wrapping the packaged Desktop
98+
Commander on `127.0.0.1:8931`, path `/mcp`, stateful sessions,
99+
`/healthz` for gateway health.
100+
- The vendor device agent (`desktop-commander-remote.service`) has been
101+
stood down (#13404 step 2); the bridge is the only Desktop Commander
102+
unit.
104103

105104
## Client setup
106105

Collapse file

‎pkgs/fleet/book/concepts/commander.md‎

Copy file name to clipboardExpand all lines: pkgs/fleet/book/concepts/commander.md
+10-7Lines changed: 10 additions & 7 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,12 @@ half.
158158
8931 --host 127.0.0.1 --stateful --healthEndpoint /healthz`, restart
159159
on failure. Its start script exports the real user PATH first,
160160
because the wrapped server exists to run the user's commands.
161-
- `desktop-commander-remote.service` (systemd user unit): the vendor
162-
device agent (`desktop-commander remote`). It stays running until the
163-
self-hosted endpoint is stood down as a separate recorded step; the
164-
two paths coexist deliberately.
161+
- The vendor device agent (`desktop-commander-remote.service`, running
162+
`desktop-commander remote`) is stood down: after the self-hosted
163+
endpoint soaked (#13404 step 2) its unit was removed from
164+
`home/common/default.nix`. The bridge above is the only Desktop
165+
Commander unit. The way back is to re-add the unit and re-pair the
166+
device at mcp.desktopcommander.app.
165167

166168
## Failure shapes
167169

@@ -211,9 +213,10 @@ half.
211213
- **Revoking a hosted client:** delete its `at:<hash>` / `rt:<hash>`
212214
entries (and its `client:` record) from the `OAUTH_KV` namespace.
213215
There is no admin UI; the namespace is the record.
214-
- **The vendor agent stand-down** is a separate recorded step on
215-
#13404, deliberately not part of any deploy: `desktop-commander-remote`
216-
keeps running alongside the self-hosted door until it is taken.
216+
- **The vendor agent stand-down** (#13404 step 2) removed the
217+
`desktop-commander-remote` unit from `home/common/default.nix` once the
218+
self-hosted door soaked. The unit's own device session at
219+
`~/.desktop-commander-device/device.json` is left in place.
217220

218221
## Related items: priorities and dependencies
219222

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.