Repository navigation
feat(agent): connect catalog apps that run on this computer - #1455
Merged
Merged
Conversation
A catalog entry now says how to reach an app, what must be installed first and which platforms it runs on. Remote apps were one case of that. This adds pinned packages and commands that another app provides, with no code per app. Connect checks the requirements, starts the app, lists its tools and only then saves it, as an ordinary stdio server that is on for new tasks. A missing requirement shows on the card with a link to get it. An app that will not start shows the entry's help line. Both use the button states browser sign-in already has. The first two are Playwright on macOS, Windows and Linux, and Xcode on macOS through `xcrun mcpbridge`. Node.js comes from the login shell. The settings release test waits for the screen to be released, because loads started with the screen can hold it past one idle pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A server that exited stayed dead for the rest of the task. Every later call failed with "Transport closed", because `is_closed` only sees a close from this side. Check the transport too, so the next call starts the server again as the code already intended. This covers any app that quits or updates while a task is open. Testing Xcode 27.2 also showed that tools run through its background service, so a project does not need to be open first. Update its summary and point its help line at the setting's current name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AnthonyRonning
marked this pull request as ready for review
November 5, 2026 08:18
AnthonyRonning
enabled auto-merge
November 5, 2026 08:18
AnthonyRonning
disabled auto-merge
November 5, 2026 08:18
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.
Summary
Integrations can now connect apps that run on this computer. Playwright (macOS, Windows, Linux) and Xcode (macOS) appear in the same catalog, with the same card and Connect button as the remote apps.
This is the generic shape for local apps, so a new one is a catalog entry and a logo, with no Rust. Two different kinds ship together to keep it generic: a pinned package and a command another app provides.
What changed
Each catalog entry now answers three questions:
connectis a remote URL, a pinned package or a command.requiresis an ordered list of checks. Each runs a command, optionally compares a version, and links to where to get the thing.authgainsnone.Entries can also set
platforms,connectSecondsand ahelpline.Connect takes the catalog id, never a command, so a caller can only start what ships in the catalog. It then:
add_mcp_definition, on for new tasks, as an ordinary stdio server.Nothing is saved until the app actually answers.
The card reuses the sign-in states: spinner with Cancel, and an inline line on failure. A missing requirement shows "Needs Node.js 18 or newer." and the button becomes "Get Node.js". An app that will not start shows its
helpline, and the button stays Connect.Behavior to review
--isolated, because Maple runs one server per task and a persistent profile allows one browser. Logins do not persist between tasks.~/.cache/maple/playwright. Without--output-dirit writes a.playwright-mcpfolder into the person's project.help.is_closedonly reports a close from our side, so the existing reopen path never ran. A call in flight when a server exits still fails and is not resent.xcode-select -pfirst, becausexcruncan open Apple's tools installer on a Mac without them.Validation
Run on macOS on the final code.
just ci-lintcargo test --locked -p maple-agentcargo test --locked -p maple-agent-app --bin maple-agenta_server_that_went_away_starts_again_for_the_next_callfailed withTransport closedbefore the fix and passed 5 of 5 after it.closing_settings_ends_a_sign_in_in_progressfailed once under load earlier. Its timing assumption came from feat(agent): add an app catalog with browser sign-in to Integrations #1447, and it now waits for the release.reads_native_release_tar_format_and_preserves_bundle_modesis the known bsdtar failure in untouched updater code, which is why the commits usedMAPLE_HOOK_SKIP=1. A full workspace run was not repeated after the last changes.Real app, debug build, Playwright:
~/.cache/maple/playwrightand no.playwright-mcpfolder appeared in the project. A screenshot the model named itself still lands in the task folder.Real app, debug build, Xcode 27.2 (27B52) set to Always:
BuildProjectwith the Xcode app closed.Transport closed.The app was pointed at 27.2 with
DEVELOPER_DIR, since the Mac's selected Xcode is 27.1. A Mac with two copies uses the onexcode-selectpicks.Not proven
🤖 Generated with Claude Code