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
commented
Oct 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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:






Not verified:
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.
…terminals, projects, pin order, and opening threads
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
macroscopeapp
Bot
commented
Oct 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…moves, and client intents
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…movals, resolve team reviewers, target by focus recency
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…nd Bitbucket; rank clients by real focus
Uh oh!
There was an error while loading. Please reload this page.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
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.
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.
|