Fixes › Cursor, VS Code, Windsurf, Codex

Too many MCP tools: trimming tools in Cursor, VS Code, Codex and Devin Desktop

CursorVS CodeWindsurfCodex

The error

Tool limit warnings, slow or confused tool choice, or the agent ignoring tools from a server you enabled

Why it happens

Agents choose tools better from a short list. Big servers like GitHub, AWS or Kubernetes can expose dozens of tools each, so a few servers add up quickly. The legacy Windsurf Cascade agent had a hard cap of 100 tools; the current clients' docs don't publish a fixed number, but all of them let you switch servers or tools off.

How to fix it

  1. Disable servers you are not using
    Cursor: Customize → MCP, toggle the server off. Devin Desktop (formerly Windsurf): Customize → MCPs → This computer. Codex: enabled = false in the server's config.toml table.
  2. Limit tools per server
    VS Code (Copilot): list only the tools you want in the server's tools array instead of ["*"]. Codex: enabled_tools / disabled_tools.
    # Codex ~/.codex/config.toml
    [mcp_servers.github]
    command = "docker"
    args = ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"]
    disabled_tools = ["create_repository"]
  3. Use server-side toolsets
    Some servers let you load only a subset. GitHub's server supports GITHUB_TOOLSETS; the Kubernetes server has a toolsets setting in its TOML config.
    "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "…", "GITHUB_TOOLSETS": "repos,issues,pull_requests" }

Related servers

Sources