Skip to content

feat(settings): let agents use provider-native visual tools instead of T3 Preview - #6

Open
hwanseoc wants to merge 1 commit into
mainfrom
feat/mcp-server-toggle
Open

feat(settings): let agents use provider-native visual tools instead of T3 Preview#6
hwanseoc wants to merge 1 commit into
mainfrom
feat/mcp-server-toggle

Conversation

@hwanseoc

@hwanseoc hwanseoc commented Jul 31, 2026

Copy link
Copy Markdown
Owner

By default, with no option to opt out, T3 Code injects its own MCP server into every provider session — Codex, Claude, Cursor, Grok, and OpenCode all receive the preview_* browser tools, and Codex additionally receives developer instructions telling it to route through them. This is great when you're doing web development, where letting the agent drive a browser to check its own work is most of the value. When you're doing backend, systems, or mobile work it just distracts: the agent spends context on a toolkit it can't use and probes it anyway. It's worse if you already run Playwright or another browser MCP, since two overlapping toolsets end up operating on different browser contexts.

For those who wish to have the agent exhibit the same behavior in T3 Code as in the provider's own CLI, this PR adds an Agent visual tools setting under Settings → General. T3 Preview is the default and is exactly today's behavior. Provider native stops the MCP mount and the Codex browser instructions for newly started sessions. Nothing changes unless you turn it off.

The gate is a single settings read in ProviderService.prepareMcpSession before credentials are issued, so every adapter is covered without per-adapter changes, and switching modes revokes any credential left over on that thread. Codex instructions key off whether the t3-code server is actually mounted rather than off the setting, so they can never advertise tools the session doesn't have.

Verification: 205 tests across the seven touched files, plus clean tsgo typechecks, vp lint, and vp fmt --check.

Builds on the approach from an existing upstream PR proposing the same control with the default inverted; credited via commit co-authorship.

@hwanseoc
hwanseoc force-pushed the feat/mcp-server-toggle branch from 6a67297 to d6922cc Compare August 8, 2026 15:48
@hwanseoc hwanseoc changed the title feat(server): add setting to disable the t3-code MCP server for agents feat(settings): let agents use provider-native visual tools instead of T3 Preview Aug 8, 2026
@hwanseoc
hwanseoc force-pushed the feat/mcp-server-toggle branch from d6922cc to aa4f26e Compare August 8, 2026 16:37
Adds an Agent visual tools setting under Settings > General with two modes.
T3 Preview stays the default and matches current behavior. Provider native
stops T3 from mounting the t3-code MCP server for newly started sessions and
stops Codex from receiving the collaborative-browser instructions.

The gate is a single read in ProviderService.prepareMcpSession before
credential issuance, so every adapter is covered without per-adapter changes.
Codex instructions key off whether the t3-code server is actually mounted, so
they cannot advertise tools the session does not have.

Co-authored-by: joshfcc <joshfcc@users.noreply.github.com>
@hwanseoc
hwanseoc force-pushed the feat/mcp-server-toggle branch from aa4f26e to e47f564 Compare August 8, 2026 20:31
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.

1 participant