Skip to content

Feature Request: Add MCP to modes config #852

Closed

Description

@AdiY00

There are two parts to it - tool permissions and context management.

  • Tool Permisions: pretty much the same as the built in tools but with the ones provided from MCPs instead.
  • Context Management: There's probably a lot that could be done to provide the minimum amount of information needed at all time. In this case, I wouldn't want to have all of the tool descriptions of all my MCP servers provided in all modes.

Can think of many modes I would like to make (like git/gh, research, security, debug, deploy, etc...) that would use different sets of MCPs, and having each mode only have the tool descriptions for what I need it to do sounds really smooth.

Activity

  1. changed the title [-]Add MCP to modes config[/-] [+]Feature Request: Add MCP to modes config[/+] on Jul 11, 2025
  2. self-assigned this
    on Jul 12, 2025
  3. elementalvoid commented on Aug 4, 2025

    @elementalvoid

    This would be wonderful for both Modes and Agents.

  4. rekram1-node commented on Aug 29, 2025

    @rekram1-node
    Contributor

    You can do this now, say I want an agent that does research with context7 but I dont want that mcp to be available for other agents

    You can do something like:

    {
      "$schema": "https://opencode.ai/config.json",
      "agent": {
        "research": {
          "description": "use this agent for reading docs or researching stuff",
          "tools": {
            "context7*": true
          }
        }
      },
      "tools": {
        "context7*": false
      }
    }

    So in this configuration I am disabling the context7 tools for all agents besides research

    Since this issue was made "modes" have become "agents" so there is a bit of change but this should accomplish what you've requested, lmk if you need further assistance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions