Skip to content

MCP per-agent configuration ignored after global deactivation #6543

@rom100main

Description

@rom100main

Description

So for example if you configure opencode.json like this

    "tools": {
        "mcp-*": false
    },
    "agent": {
        "plan": {
            "tools": {
                "mcp-github": true,
                "mcp-context7": true,
                "mcp-ddg-search": true
            }
        },
    }

and then ask the agent ask his list of available MCP, it will say he has access to none
while the docs https://opencode.ai/docs/tools/#per-agent say otherwise

same if you deactivate MCP in opencode.json but reactivate them in agent/*.md files, MCP will not be accessible

OpenCode version

1.0.220

Steps to reproduce

  1. Edit the opencode.json file as described above.
  2. Ask the agent to list all of their available MCP.

Screenshot and/or share link

No response

Operating System

macOS 15.7.3

Terminal

Ghostty, Alacritty (Zed)

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