[Feature]: Setting to enable Claude Code built-in MCPs (and optionally custom CLI flags) for spawned Claude sessions
Before submitting
- [x] I searched existing issues and did not find a duplicate. (Closest: #4150 and #5266, but both are about t3code's own preview/browser MCP, not about flags/built-ins for the spawned Claude session.)
- [x] I am describing a concrete problem or use case, not just a vague idea.
Area
apps/desktop (possibly apps/server — wherever the Claude session is spawned)
Problem or use case
t3code spawns Claude sessions with a fixed launch configuration I can't influence. Claude Code has opt-in capabilities that are enabled purely by CLI flags — e.g. --chrome attaches the built-in claude-in-chrome MCP (22 tools driving the user's real, logged-in browser via the Claude in Chrome extension). Because I can't pass flags, those built-ins never show up in t3code sessions, while all user-configured MCP servers from ~/.claude.json pass through fine.
Verified on Windows 11: claude -p --chrome "list your claude-in-chrome tools" lists all 22 mcp__claude-in-chrome__* tools; the same prompt without the flag, or inside a t3code session, returns none.
Proposed solution
A setting that controls whether Claude Code's built-in MCPs are enabled for new spawned sessions (a simple on/off toggle that passes --chrome and any future built-in flags through). More generally, an "additional CLI flags for spawned Claude sessions" field in settings would cover this and similar cases without t3code having to special-case each flag.
Why this matters
Built-ins like claude-in-chrome control the user's actual browser with shared login state and pause for the user on login pages and CAPTCHAs — something Playwright-style MCPs and the t3code preview browser (separate, non-logged-in profile) can't do. Claude Code advertises these as "always available", so their silent absence in t3code is surprising, and today the only fix is leaving t3code entirely.
Smallest useful scope
One settings toggle (off by default) that appends --chrome when spawning Claude sessions for users authenticated via /login. The generic flags field can come later or never.
Alternatives considered
- Playwright MCP inside t3code: works, but separate browser profile, no shared auth state, blocked by CAPTCHA/2FA.
- Running
claude --chrome/claude -p --chromeoutside t3code: works, but abandons the t3code session entirely.
Risks or tradeoffs
- Chrome integration requires OAuth login (Pro/Max/Team/Enterprise); API-key / setup-token sessions can't use it, so the flag must no-op there.
- Browser tools add context overhead — off by default is the right call.
- A free-form flags field could let users pass flags that conflict with how t3code manages sessions; an allowlist or a warning may be needed.
- Login/CAPTCHA handoffs need the user present; remote/mobile t3code clients may not be on the same machine as the browser.
Examples or references
- https://code.claude.com/docs/en/chrome
Closing — this already exists. The Claude provider settings have a "Launch arguments" field (its placeholder literally says e.g. --chrome), defined in packages/contracts/src/settings.ts. ClaudeAdapter.ts parses it with parseCliArgs and forwards the flags as extraArgs to the spawned session. Exactly what I asked for. Sorry for the noise.