Skip to content

feat(server): restore Connect MCP pairing scopes - #56

Open
nullStack65 wants to merge 1 commit into
mainfrom
cursor/restore-connect-pairing-529f
Open

nullStack65 wants to merge 1 commit into
mainfrom
cursor/restore-connect-pairing-529f

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

What Changed

An environment again advertises Connect MCP pairing and can exchange a pairing code for a session.

  • GET /.well-known/oauth-authorization-server lists the pairing scopes (orchestration:read, orchestration:operate, and the rest of the standard client set for full access).
  • POST /oauth/mcp/token exchanges a pairing code. access: "auto" grants read and operate, which is what another machine needs to drive this one. t3code-peer-link is the software id a peer registers with.
  • CI runs scripts/connect-pairing-smoke.ts against the built server bundle and fails if that discovery path is missing.

Why

This fork diverged from upstream at d7819c18 (2026-09-22, desktop 0.0.42). Upstream T3 0.1.8 (bf469bb) added MCP pairing scopes after that, in the OAuth discovery document and the pairing-code exchange. The fork already had Clerk and the relay, but not those scopes or /.well-known/oauth-authorization-server on the environment, so another machine could not complete a Connect pairing and drive this one.

Merging all of 0.1.8 would take the thousands of unrelated commits since the split and collide with the fork's own patches. This keeps those patches and restores only the pairing surface, mapped onto the scopes this fork already enforces. Upstream's settings:write and source-control:write are not scopes here; full access is the fork's standard client set.

Installing the fixed build on the Air

The Air (account kara3) is Apple Silicon. This fork does not follow upstream's update channel, and desktop in-app update is off (no latest-mac.yml).

  1. After this is on main, run Fork release with include_macos_arm64 set.
  2. Download T3-Code-<version>-arm64.dmg from the nullStack65/t3code GitHub Release and check SHA256SUMS.
  3. Open the DMG, copy the app into Applications, and use Gatekeeper's Open action if the build is unsigned.
  4. Install over the existing app. User data and existing pairings stay, because the app id is unchanged.
  5. On the host, enable T3 Connect under Settings → Connections. On the Air, sign in to the same account and choose that environment, or redeem a pairing code.

Details are in docs/operations/fork-release.md.

UI Changes

No UI change.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Provenance

Model: Grok 4.7
Task: feature

Open in Web Open in Cursor 

The fork diverged from upstream on 2026-09-22, before T3 0.1.8 taught an
environment to advertise MCP pairing scopes and exchange a pairing code.
Another machine could not link and drive this one. This adds that discovery
endpoint and code exchange on the fork's existing auth scopes, without
merging the rest of upstream.

Model: Grok 4.7
Task: feature
Agent: cursor
Co-authored-by: Kameron Smith <nullStack65@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • 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

@nullStack65

Copy link
Copy Markdown
Owner Author

Closing and reopening so CI runs under nullStack65 after Actions was re-enabled for this repo (only CI and Fork release). Head remains 30fd059.

@nullStack65

Copy link
Copy Markdown
Owner Author

START: Build and install PR 56 locally on Jeff Air, exact head 30fd059. Run typecheck, tests, pairing smoke, arm64 DMG; fsync recovery record before app replacement. No push, merge, CI wait, or upstream release install.

@nullStack65

Copy link
Copy Markdown
Owner Author

CHECKPOINT: HTTPS clone/fetch complete; detached HEAD verified exactly 30fd059. Dependency command: vp env exec --node 24.13.1 --package-manager pnpm@11.10.0 vp i (running). Existing app confirmed com.t3tools.t3code version 0.1.9-assemblyai.2; no app replacement yet.

@nullStack65

Copy link
Copy Markdown
Owner Author

RESULT: BLOCKED on Jeff Air disk capacity at exact detached head 30fd059. Dependency command vp env exec --node 24.13.1 --package-manager pnpm@11.10.0 vp i stopped with exit 143 when free space fell below 500 MiB (716 resolved, 261 downloaded, 0 added). Typecheck, tests, JS build, pairing smoke and DMG packaging NOT RUN; no pass/fail counts or artifact hashes available. Original com.t3tools.t3code app version 0.1.9-assemblyai.2 untouched; no replacement or launch attempted. Required result and postinstall JSON records fsynced under /Users/kara3/closura-repos/. No writable secondary volume found. Unblock: free disk space on Air; recommend at least 10 GB available, then resume exact-source build. No push, merge or CI wait. secret_scan: not_performed.

@nullStack65

Copy link
Copy Markdown
Owner Author

START cleanup/resume: User authorized only regenerable development caches to free about 15 GB on Jeff Air, stop if less than 10 GB can be freed. Preserve personal files/browser profiles. Resume source 30fd059, local checks and arm64 build, fsynced recovery then installation; no push/merge.

@nullStack65

Copy link
Copy Markdown
Owner Author

Frozen 2026-11-22 CEO portfolio audit — cash-path priority; can reopen at the Dec 18 runway check.

@nullStack65 nullStack65 reopened this Nov 22, 2026

This branch has not been deployed

No deployments
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.

2 participants