Repository navigation
Conversation
elripalda
reviewed
Nov 11, 2026
elripalda
left a comment
Owner
There was a problem hiding this comment.
Thank you for all the work on this. A local control API and MCP server is a big, interesting idea. We're parking it until the current betas are done, for these reasons:
- It's about 6,000 lines and conflicts with five files on main now.
- Windows isn't supported yet (it refuses to start until token ACLs exist), and most players are on Windows.
- It opens a local control surface for every launcher command, so it needs its own security review before it can ship.
What would make it mergeable:
- Windows support, with the token file locked to the current user.
- A smaller first step: read-only status (installed games, what's running) plus Play, behind a switch in Settings that's off by default. Installing, removing and changing settings can come later, once that's been reviewed.
- A rebase onto main when you pick it up again.
Thanks again, and no rush.
Generated by Claude Code
saphid
force-pushed
the
feat/local-control-api-mcp
branch
from
November 11, 2026 12:31
d118c00 to
db93b5b
Compare
saphid
force-pushed
the
feat/local-control-api-mcp
branch
from
November 11, 2026 15:38
db93b5b to
ec6f711
Compare
saphid
force-pushed
the
feat/local-control-api-mcp
branch
from
November 12, 2026 06:30
ec6f711 to
f30fd32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scripts and MCP clients can now see installed/running games and press Play through an off-by-default Local control switch in desktop and Big Picture Settings. Reworked and rebased onto Beta 38 main (a101ffe) to address the maintainer review.
The public surface is limited to
GET /v1/status,POST /v1/playwith an id, and/mcpwithlauncher_statusandplay_game. Play uses the shared shortcut launch path and reports started, already running/starting, busy, or needs setup. Installer/setup and administrator branches require permission that API Play cannot obtain. The previous command registry, jobs, events, settings mutations and app lifecycle endpoints are removed.Local control binds only to loopback, authenticates with a random token and rejects browser-origin requests. Endpoint publication checks current-user ownership and private permissions, including macOS ACLs and Windows owner/protected DACLs. Unsafe data paths fail closed with a Settings error. A small Python stdio adapter forwards the same two operations and is provided as a separate script, not bundled into installers.
Turning the switch off removes the endpoint, closes the listener and prevents pending Plays from launching, including after re-enabling. Safe waits cancel; an in-progress cloud sync retains its game-start claim and save lock until restore/cleanup finishes, with unfinished work tracked in Settings. Settings-save failures reconcile the running state.
Validation on macOS:
CI on a1aa98a is green: Windows, Ubuntu and macOS build/test/installer jobs all passed, and the Flatpak build passed. The Windows run includes the private-file tests and a test-only LF/CRLF normalization fix for the Play policy checks; the new regression and independent review passed.
Platform/runtime limits: Windows and Linux validation comes from CI; neither platform was run locally. CI builds/tests and packages the app but does not exercise a real GUI/game/cloud-account session. No GUI, real game, installer or cloud-account flow was exercised for this rework. Private-path checks are conservative: group-writable Unix paths and Windows reparse-point routes are refused, and Flatpak may refuse to enable Local control. New UI strings are English only.
Created and reworked with Claude Opus 5.5 and GPT-6.1 Sol in T3 Code through the Claude Code and Codex harnesses. Original authorship remains Alex Southwell.