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 — feat(server): MCP tools for settings, providers, git, pull requests, terminals, projects, pin order, and opening threads by maria-rcks · Pull Request #15445 · pingdotgg/t3code

Conversation

@maria-rcks

@maria-rcks maria-rcks commented Oct 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Stacked on #15428, which is stacked on #15219. GitHub can't target #15428's fork branch, so this PR is based on t3code/mcp-oauth/thread-targets and also shows #15428's commits. The new work is everything after #15428's commits.

Problem

After #15428, an MCP client still couldn't do much of what the app does. It couldn't change settings or keybindings, check providers and quota, run git or PR actions, use terminals, browse host folders to add a project, reorder pins, or open a thread in the user's window.

Change

Each tool is a thin wrapper over the service its WS method already uses. Anything that changes the environment, runs commands, pushes code, or reveals host paths needs a full-access caller.

  • Settings: t3_environment_read can include the full server settings (credentials redacted) and keybindings. t3_environment_preferences_update accepts any non-credential settings patch, a provider instance toggle or custom models, and keybinding upsert/remove. Credential fields, providerInstances and deviceHosts are rejected and stay in the Settings UI. Reads only return each provider instance's customModels from its opaque driver config, and strip credentials from settings URLs. Keybinding rule matching in the keybindings service now compares when expressions and shortcut spellings by meaning, so a listed rule always removes the stored one. The Settings UI gets the same fix.
  • Providers: t3_provider_status (full access, since messages can carry configured URLs) returns install, auth and version per instance, plus rate-limit windows and optional token/cost usage. t3_provider_refresh re-runs the provider checks. There's no login or logout over MCP, since an agent can't complete a sign-in.
  • Git: t3_git_status (read-only, full access because a cold status cache fetches) and t3_git (create/switch branch, pull, and the app's commit/push/open-PR flow). There's no merge or force-push.
  • Pull requests: t3_pull_request_read returns the overview, checks, conversation or a review thread, within a character budget. t3_pull_request_update can comment, reply, resolve or unresolve, request reviewers, and set labels. Reviewer names are matched against the host's candidates. GitHub and Forgejo take logins as given, and on GitLab and Bitbucket an unmatched name must be the host's own id. Merge, close, review approval and title/body edits are left out.
  • Terminals: t3_terminal_list, t3_terminal_read (scrollback with escape codes stripped, full access because output can hold secrets) and t3_terminal_control (open/write/close the same terminals the panel shows). Open attaches to a running shell instead of restarting it.
  • Projects: t3_folder_browse, t3_agent_session_scan and t3_agent_session_import. Creating a new or scratch project already works through t3_project_create and t3_thread_launch.
  • Pin order: t3_thread_organize gets move_pinned and move_active with beforeThreadId. The order-key helpers moved from client-runtime to @t3tools/shared/threadOrderKeys, and client-runtime re-exports them, so web and mobile are unchanged.
  • Open in client: t3_client_open_thread {threadId, panel?} goes through a new subscribeClientIntents stream. The window that acts is the desktop window that most recently reported focus to the preview broker (that history survives reconnects), or failing that a visible, focused window. So an outside agent in a terminal can still bring up a thread. Mobile doesn't act on it yet.
  • Fixes the existing t3_environment_preferences_update crash (Service not found: ThreadCommandExecutor), the same one-line wiring as fix(mcp): allow environment preference updates #15337.

Verification

  • Typecheck passes for server, contracts, shared, client-runtime and web. The MCP, CLI, adapter-allowlist, thread-sort and presentation tests pass, and lint is clean. A new case in core.test.ts checks that settings reads never contain credentials.
  • I ran it live in a dev app, with a full-access Claude Sonnet 5.5 thread calling each tool:
    • A settings toggle and its revert, and a keybinding upsert and remove, all round-tripped.
    • Provider status and refresh worked.
    • Git status, PR overview and PR checks on feat(server): MCP tools for an inbox, approvals, thread diffs, and more thread actions #15428 worked.
    • A terminal was opened, echo mcp-terminal-ok was written and read back, and the terminal was closed.
    • Folder browse and session scan worked.
    • move_pinned reordered the sidebar.

settings and keybinding writes round-trip

git status and pull request reads

terminal open, write, read, list, close

folder browse and agent session scan

pinned order before the move

pinned order after move_pinned

Not verified:

  • t3_git writes (the test checkout was dirty) and t3_pull_request_update, to avoid writing to a real PR.
  • t3_agent_session_import.
  • t3_client_open_thread actually navigating a focused window. It returned delivered: true, but the test browser tab had no focus.
  • The outside-client path over OAuth (feat(server): outside agents sign in to the T3 MCP server with OAuth #15220).

Written by claude-opus-5-5 in Claude Code, running in T3 Code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
maria-rcks added 5 commits October 4, 2026 02:03
@maria-rcks
feat(server): MCP tools for an inbox, approvals, thread diffs, and mo…
a4a5839
…re thread actions
@maria-rcks
fix(server): approvals over MCP accept only the offered decisions
37a238b
@maria-rcks
fix(server): inbox respects snooze, file diffs keep renames, pending …
1db29c2
…list keeps requestIds
@maria-rcks
fix(server): interrupted runs do not wake a snoozed thread in the inbox
49b177a
@maria-rcks
feat(server): MCP tools for settings, providers, git, pull requests, …
09b9533
…terminals, projects, pin order, and opening threads
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL 1,000+ changed lines (additions + deletions). labels Oct 4, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Oct 4, 2026
View reviewed changes
Comment thread apps/server/src/mcp/toolkits/environment/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/mcp/toolkits/environment/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/mcp/toolkits/git/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/mcp/toolkits/terminal/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/mcp/toolkits/environment/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/mcp/toolkits/thread/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/mcp/toolkits/pullRequests/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/mcp/toolkits/review/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/contracts/src/rpc.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

macroscopeapp Bot commented Oct 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — This PR adds a large cross-cutting MCP capability spanning host access, terminals, Git, pull requests, providers, settings, approvals, and client navigation, including externally visible and destructive operations. It also changes authorization plumbing, so the scope and security-sensitive runtime impact require human review.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

maria-rcks added 3 commits October 4, 2026 03:21
@maria-rcks
fix(server): address review findings on MCP settings, reviewers, pin …
59affc8
…moves, and client intents
@maria-rcks
fix(server): one-file thread diffs do not fail on an unreachable baseRef
55dae44
@maria-rcks
Merge branch 't3code/expand-mcp-app-control' into t3code/mcp-app-cont…
982523a
…rol-followups
macroscopeapp[bot]
macroscopeapp Bot reviewed Oct 4, 2026
View reviewed changes
Comment thread apps/server/src/mcp/toolkits/environment/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/mcp/toolkits/thread/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@maria-rcks
fix(server): gate git and provider status, report no-op keybinding re…
b8121ce
…movals, resolve team reviewers, target by focus recency
macroscopeapp[bot]
macroscopeapp Bot reviewed Oct 4, 2026
View reviewed changes
Comment thread apps/server/src/mcp/toolkits/environment/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/mcp/PreviewAutomationBroker.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/mcp/toolkits/environment/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

maria-rcks added 3 commits October 4, 2026 03:48
@maria-rcks
fix(server): keybinding removal matches when by meaning; clarify sett…
0b8bb7d
…ings patch
@maria-rcks
fix(server): any caller that can reach a thread may decline its approval
1b75ae7
@maria-rcks
Merge branch 't3code/expand-mcp-app-control' into t3code/mcp-app-cont…
9692560
…rol-followups
macroscopeapp[bot]
macroscopeapp Bot reviewed Oct 4, 2026
View reviewed changes
Comment thread apps/server/src/mcp/toolkits/environment/handlers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

maria-rcks added 2 commits October 4, 2026 03:52
@maria-rcks
fix(server): only host-id-shaped reviewers pass unmatched on GitLab a…
16977e5
…nd Bitbucket; rank clients by real focus
@maria-rcks
fix(server): keep client focus history across disconnects; match flat…
616bb40
…tened when chains
macroscopeapp[bot]
macroscopeapp Bot reviewed Oct 4, 2026
View reviewed changes
Comment thread apps/server/src/keybindings.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

maria-rcks added 6 commits October 4, 2026 04:02
@maria-rcks
fix(server): keybinding identity compares shortcut spellings by meaning
3c7d9ba
@maria-rcks
fix(server): strip credentials from settings URLs for MCP; match reor…
666b09e
…dered when conditions
@maria-rcks
fix(server): working-tree thread diffs ignore a baseRef they don't use
4a164be
@maria-rcks
Merge branch 't3code/expand-mcp-app-control' into t3code/mcp-app-cont…
e536707
…rol-followups
@maria-rcks
fix(server): pass the working-tree diff's baseRef explicitly
035a10d
@maria-rcks
Merge branch 't3code/expand-mcp-app-control' into t3code/mcp-app-cont…
5dcdaaa
…rol-followups
@maria-rcks

maria-rcks commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator Author

Note

Written by claude-opus-5-5 on behalf of Maria

Moved to #15465, stacked on #15464 (GitHub stack #15466): same head (5dcdaaa), now on a pingdotgg branch, so it targets its parent and shows only its own commits. Review threads here are resolved or answered.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maria-rcks maria-rcks closed this Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XXL 1,000+ changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@maria-rcks
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.
You are visitor 01402775 — 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.