Skip to content

[Feature]: Allow disabling the built-in browser/preview MCP tools #4150

Description

@kevhardy

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I am describing a concrete problem or use case, not just a vague idea.

Area

apps/server

Problem or use case

t3code automatically adds its browser MCP tools to the provider's session. When users already have a browser workflow configured, such as Playwright or another browser MCP, agents see overlapping tools operating on different browser contexts. This can cause agents to select the wrong tool, inspect the wrong page, or mix browser state. There is currently no supported way to disable T3 Code's browser MCP.

Proposed solution

Add a server-level setting to disable the built-in browser MCP, with the current behavior remaining enabled by default. When disabled, t3code should neither register the MCP server nor inject related browser instructions. A setting could be exposed in the General section of the UI to toggle it off or passed in as a cli flag.

Why this matters

Users should be able to make their configured browser MCP the single authoritative browser workflow. This would reduce tool ambiguity and make agent behavior more predictable.

Smallest useful scope

A cli flag passed that prevents any t3code related MCP injections from being added to new sessions.

Alternatives considered

Telling agents to specifically ignore t3code mcp tools. Still retains the context of those tools.

Risks or tradeoffs

No response

Examples or references

No response

Contribution

  • I would be open to helping implement this.

Activity

  1. added
    enhancementRequested improvement or new capability.
    needs-triageIssue needs maintainer review and initial categorization.
    on Jul 19, 2026
  2. stanley50z commented on Jul 24, 2026

    @stanley50z

    Agree. It seems like T3's in app browser is prioritized most of the time, and the workarounds are not elegant. prompting to prioritize the other browser tool don't work very well, and telling agent to ignore T3's tool adds unnecessary context to sessions not in t3code.

  3. kevhardy commented on Jul 25, 2026

    @kevhardy
    Author

    Current workaround for Codex and Claude by adding these to their Launch arguments under their respective provider options:

    Codex Launch arguments:

    -c mcp_servers.t3-code.url=http://127.0.0.1:1/mcp -c mcp_servers.t3-code.enabled=false
    

    Claude Launch arguments:

    --disallowedTools 'mcp__t3-code__*'
    

    Note: This seems to remove their tools but the browser related developer instructions will still be in their initial prompt.

  4. Asheropensoucre commented on Jul 31, 2026

    @Asheropensoucre

    i agree i dont want to use the MCP at all i keep telling the model to stop using it but it keeps running tests with it burning my tokens until this is fixed its makes the app unstable on a pro plan

  5. bman654 commented on Aug 12, 2026

    @bman654

    FWIW I added:

    {
      "permissions": {
         "deny": ["mcp__t3-code__*"]
      }
    }

    to my ~/.claude/settings.json and that seems to work also. The MCP was consuming several 1000 tokens of context.

  6. locked and limited conversation to collaborators on Aug 15, 2026
  7. converted this issue into a discussion #6792 on Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequested improvement or new capability.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions