Repository navigation
[3942 by GPT-6.2 Sol] Promote ProPR MCP: 'Connect a coding agent' page with copy-paste setup for Claude Code, Codex, Claude.ai, Cursor and others - #3947
Conversation
Implemented Connect a coding agent with copyable, instance-specific setup for seven clients, GitHub OAuth guidance, starter prompts, and a connection test hint. The page is linked from the dashboard, navigation, Settings, and Fly setup. Fly device sign-in now returns users to MCP consent. The dismissible dashboard card hides when the user has an active direct OAuth grant. The page shows last-used activity for direct grants and links hosted-tunnel users to ProPR Connect for grant management. Reachability status reflects the configured HTTPS URL or tunnel registration. All 14 Playwright checks, targeted API and UI tests, and both type checks passed. Captured three visual previews. ProPR-Agent: codex/gpt-6.2-sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved the only merge conflict in src/flyLaunch/setupPages.ts. A workspace-wide scan found no remaining conflict markers.
TypeScript type checking, the Fly wizard test suite, and direct checks of both page variants and the inline script syntax passed. Git could not record the resolution in its index because the linked worktree’s index location is on a read-only filesystem. The resolved file is in the workspace. 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - src/flyLaunch/setupPages.ts PR: #3947 Model: GPT-6.2 Sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved both file conflicts for PR #3947. A workspace-wide scan found no remaining merge conflict markers.
Both files passed TypeScript syntax checks, and all 44 focused UI tests passed. Of 32 focused API tests, 31 passed. The remaining test expects a bare Git still lists both paths as unmerged because it could not write the worktree index on the read-only filesystem. 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - packages/api/auth.ts - propr-ui/src/pages/LoginPage.tsx PR: #3947 Model: GPT-6.2 Sol
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit f72f6df Summary of ChangesFixed the five ESLint warnings that caused Validate Changes to fail on PR #3947. The fixes preserve the MCP setup behavior and generated API contract. Failed CI run Both lint commands passed locally with Review digestRisk-tiered paths
Diff size: 10 files changed, +65/−36 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
Fixed the five ESLint warnings that caused **Validate Changes** to fail on PR #3947. The fixes preserve the MCP setup behavior and generated API contract. [Failed CI run](https://github.com/integry/propr/actions/runs/46548926875/job/142306899648) Both lint commands passed locally with `--max-warnings 0`. The API and UI builds, UI typecheck, OpenAPI and client contract checks, 88 focused tests, and all 14 Connect a coding agent browser tests also passed. GitHub CI verification is pending. PR: #3947 Comment by: @propr-dev[bot] (ID: 7296966929) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
ℹ️ Analyzed the follow-up request by @github-actions[bot] Analysis SummaryPR #3947 already contains fixes for all five reported ESLint warnings. I verified that both UI and API lint pass with No file changes were needed. GitHub CI remains unverified. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit d7828d9 Processed 2 comments:
Summary of ChangesFixed all three reported browser failures in PR #3947. The startup fixture now returns a valid MCP setup response, so the web and desktop dashboards render and reach their original deduplication assertions. The web sidebar uses tighter spacing in short windows so Access stays visible above Usage at 1280×720. Validate Changes run The local browser run passed 72 tests on the first attempt and two on retry. A separate rerun passed both intermittent cases and all three reported failures. UI typecheck and lint on the changed files also passed. Captured a preview of the sidebar fix. Review digestRisk-tiered paths
Diff size: 2 files changed, +10/−1 lines Visual previewSidebar at 1280 × 720The full navigation, including Connect an agent and Access, fits above the folded Usage row. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed all three reported browser failures in PR #3947. The startup fixture now returns a valid MCP setup response, so the web and desktop dashboards render and reach their original deduplication assertions. The web sidebar uses tighter spacing in short windows so Access stays visible above Usage at 1280×720. [Validate Changes run](https://github.com/integry/propr/actions/runs/46550810054/job/142316550806) The local browser run passed 72 tests on the first attempt and two on retry. A separate rerun passed both intermittent cases and all three reported failures. UI typecheck and lint on the changed files also passed. Captured a preview of the sidebar fix. PR: #3947 Comment by: @propr-dev[bot] (ID: 7297746068) Comment by: @github-actions[bot] (ID: 7297747013) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all three conflict blocks for PR #3947 in McpServerSection.tsx. A workspace-wide scan found no remaining merge conflict markers.
The TSX syntax check, UI type check, and all 12 focused tests passed. Git still lists the file as unmerged because the read-only worktree filesystem prevented it from creating 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - propr-ui/src/pages/SettingsPage/McpServerSection.tsx PR: #3947 Model: GPT-6.2 Sol
|
CI failed: Validate unsigned linux-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 7124538 Summary of ChangesFixed the Linux x64 package acceptance fixture. Its mock server returned a response without the Reproduced the crash with the old response and verified that the corrected response renders the dashboard. All 15 browser checks passed, 132 desktop acceptance tests passed, and the Linux x64 package built and passed inspection. The full Electron acceptance run remains unverified locally because this container cannot configure Electron’s required sandbox. Review digestRisk-tiered paths
Diff size: 1 file changed, +11/−0 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the Linux x64 package acceptance fixture. Its mock server returned a response without the `apps` array required by `/api/instance/mcp/setup`, causing the dashboard to crash after sign-in. The [updated fixture](/home/node/workspace/apps/desktop/scripts/run-packaged-acceptance.mjs:570) now returns the expected response for a local instance. Reproduced the crash with the old response and verified that the corrected response renders the dashboard. All 15 browser checks passed, 132 desktop acceptance tests passed, and the Linux x64 package built and passed inspection. The full Electron acceptance run remains unverified locally because this container cannot configure Electron’s required sandbox. PR: #3947 Comment by: @propr-dev[bot] (ID: 7298231153) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: Full Test Suite Shard 4/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit db1ff87 Summary of ChangesFixed the sole failure in Full Test Suite Shard 4/4. The device sign-in test now checks that I reproduced the CI failure locally before the fix. All eight targeted device-auth and MCP setup test files passed afterward on Node.js 24. The full shard was not rerun. Review digestRisk-tiered paths
Diff size: 1 file changed, +6/−1 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the sole failure in [Full Test Suite Shard 4/4](https://github.com/integry/propr/actions/runs/46559471038/job/142342913114). The [device sign-in test](/home/node/workspace/packages/api/test/deviceAuth.test.ts:88) now checks that `/login` carries a validated `redirect_to`, omits rejected targets, and consumes the saved target after sign-in. I reproduced the CI failure locally before the fix. All eight targeted device-auth and MCP setup test files passed afterward on Node.js 24. The full shard was not rerun. PR: #3947 Comment by: @propr-dev[bot] (ID: 7298698461) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: Full Test Suite Shard 2/4, Run Full Test Suite Please investigate and fix these CI failures.
Failure evidence
Depends on the failed job(s): Failure evidence
|
|
✅ Applied the requested follow-up changes in commit a49b47b Summary of ChangesFixed the sole failure in Full Test Suite Shard 2/4. The disabled MCP browser router intercepted Reproduced the failure before the fix. Afterward, 21 targeted tests passed on Node.js 24, including coverage for the disabled Review digestRisk-tiered paths
Diff size: 2 files changed, +7/−4 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Full Test Suite ResultsValidation failed during: Test shard (shard 2).
View shard 2/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
Fixed the sole failure in [Full Test Suite Shard 2/4](https://github.com/integry/propr/actions/runs/46562328966/job/142352659830). The disabled MCP browser router intercepted `/mcp/unknown` and returned an empty 404. Requests now continue through the API router, which returns the standard JSON `NOT_FOUND` response for unmatched paths. [Routing change](/home/node/workspace/packages/api/mcp/server.ts:303) Reproduced the failure before the fix. Afterward, 21 targeted tests passed on Node.js 24, including coverage for the disabled `/mcp/apps` route. API type checking and linting for both changed files also passed. The full shard still needs a CI rerun. [Regression coverage](/home/node/workspace/packages/api/test/apiErrorBoundaryServer.test.ts:83) PR: #3947 Comment by: @propr-dev[bot] (ID: 7299260862) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
ℹ️ Analyzed the follow-up request by @github-actions[bot] Analysis SummaryPR #3947 already contains the fix for the reported shard 2 failure. With MCP disabled, The previously failing test and four related MCP test files passed on Node.js 24. No further code changes were needed. The full CI run on the fixed revision was canceled, so the complete shard result remains unverified. GitHub Actions run No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within the supplied review scope. The PR adds a focused connection page, integrates discovery across existing navigation, and preserves MCP consent destinations through Fly device sign-in. Current-head checks report 29 passed and no failures. ✅ Scoped grant visibility — The setup endpoint filters grants by caller, resource, instance, expiration, revocation, and client type. ✅ Safe setup snippets — Shell arguments are quoted when necessary, and JSON configurations use serialization instead of string interpolation. ✅ Useful interaction coverage — Playwright checks cover client tabs, clipboard copying, dismissal persistence, connected-app visibility, and consent navigation. This was a static review of the supplied code; no commands or tests were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Validate snippets against client parsersThe snapshots in S2: 🟢 Exercise the mounted browser routerA focused integration test could request ScoreThe implementation fits the objective, has substantial focused coverage, and has no verified merge blockers in the supplied code. Current-head validation is green. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
6d75203
into
3758-epic-runtime-abstraction-sc0

AI Implementation Summary
Closes #3942
Branch:
3942/gpt-6.2-sol-promote-propr-mcp-connect-20261201-0018-eioCommits: ✅ Changes committed (9df1c81)
AI Processing Completed
Execution Details:
Summary:
Implemented Connect a coding agent with copyable, instance-specific setup for seven clients, GitHub OAuth guidance, starter prompts, and a connection test hint. The page is linked from the dashboard, navigation, Settings, and Fly setup. Fly device sign-in now returns users to MCP consent.
The dismissible dashboard card hides when the user has an active direct OAuth grant. The page shows last-used activity for direct grants and links hosted-tunnel users to ProPR Connect for grant management. Reachability status reflects the configured HTTPS URL or tunnel registration.
All 14 Playwright checks, targeted API and UI tests, and both type checks passed. Captured three visual previews.
Review digest
Risk-tiered paths
packages/api/auth.ts(+6/−1): auth-looking pathpropr-ui/src/pages/LoginPage.tsx(+13/−4): auth-looking pathpackages/api/mcp/browser.ts(+4/−4)packages/api/mcp/server.ts(+7/−1)packages/api/openapi/directRoutes.ts(+1/−0)packages/api/openapi/routeDocsSystem.ts(+5/−0)packages/api/openapi/schemas.ts(+10/−0)packages/api/routes/mcpSetupRoutes.ts(added, +58/−0)packages/api/server.ts(+2/−0)packages/client/src/generated/apiTypes.ts(+14/−0)propr-ui/src/App.tsx(+2/−0)propr-ui/src/api/mcpSetupApi.ts(added, +13/−0)propr-ui/src/components/Dashboard.tsx(+6/−1)propr-ui/src/components/Dashboard/ConnectAgentPromo.tsx(added, +35/−0)propr-ui/src/components/Dashboard/OnboardingWidget.tsx(+11/−1)propr-ui/src/components/MobileBottomNavigation.tsx(+2/−1)propr-ui/src/components/SidebarNavigation.tsx(+1/−0)propr-ui/src/hooks/useMcpSetup.ts(added, +27/−0)propr-ui/src/pages/ConnectAgentPage.tsx(added, +173/−0)propr-ui/src/pages/SettingsPage/McpServerSection.tsx(+2/−3)propr-ui/src/pages/mcpClientSetup.ts(added, +90/−0)propr-ui/src/routeChunks.ts(+3/−0)src/flyLaunch/setupPages.ts(+6/−2)docs/static/openapi/propr-api.yaml(+73/−2)packages/api/test/deviceAuthSetup.test.ts(+15/−0)packages/api/test/mcpSetupRoutes.test.ts(added, +75/−0)propr-ui/e2e/connect-agent.pw.ts(added, +157/−0)propr-ui/e2e/connect-agent.pw.ts-snapshots/claude-code.yml(added, +11/−0)propr-ui/e2e/connect-agent.pw.ts-snapshots/claude.yml(added, +12/−0)propr-ui/e2e/connect-agent.pw.ts-snapshots/codex.yml(added, +15/−0)propr-ui/e2e/connect-agent.pw.ts-snapshots/cursor.yml(added, +11/−0)propr-ui/e2e/connect-agent.pw.ts-snapshots/gemini.yml(added, +11/−0)propr-ui/e2e/connect-agent.pw.ts-snapshots/opencode.yml(added, +11/−0)propr-ui/e2e/connect-agent.pw.ts-snapshots/vscode.yml(added, +11/−0)propr-ui/src/pages/SettingsPage/McpServerSection.test.tsx(+5/−4)Diff size: 35 files changed, +898/−24 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3942.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Local MCP setup on mobile
The Claude connector tab explains the public HTTPS requirement and how to enable MCP on a local instance.
Full-size original
Connect a coding agent
Codex CLI setup for a public instance, with OAuth guidance, starter prompts, and recent app activity.
Full-size original
Dashboard invitation
The dismissible entry point shown before a member connects a coding agent.
Full-size original