GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — How to enable/disable mcp server per project · Issue #5013 · anomalyco/opencode

How to enable/disable mcp server per project #5013

New issue
Copy link
New issue
Copy link
Closed
Closed
How to enable/disable mcp server per project#5013
Copy link

Description

@meatballs
meatballs
opened on Dec 3, 2025
Issue body actions

Question

I have an mcp server that only applies to some projects. I tried adding its config to my global config file but with it disabled by default so that I could override that at project level.

e.g.

my global config:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "my-mcp-server": {
      "type": "local",
      "command": [...],
      "enabled": false
    },
    ...
}

and then in my project config:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "my-mcp-server": {
      "enabled": true
    },
    ...
}

But opencode then won't start and tells me the config is invalid.

Have I misunderstood something? I thought I could override values this way.

Reacted by Daniel Riedl, IT Lackey, Perry Mitchell, Nikolai Kolodziej and Daniel Ehrhardt

Activity

  1. atkr commented on Dec 3, 2025

    @atkr
    atkr
    on Dec 3, 2025
    More actions

    I'm assuming your project level config is considered invalid as you are missing the required keys in the my-mcp-server section.

    Perhaps an easier way to achieve the same result would be to leave it enabled in your global config, but disabled/not allowed in the tool section. Then in your project config, enable/allow the tool to be used.

    Reacted by Owen Campbell
  2. meatballs commented on Dec 3, 2025

    @meatballs
    meatballs
    on Dec 3, 2025
    Author
    More actions

    I just didn't bother showing the entire config. It's valid. If I enable that global config and get rid of the project config, it all works fine

  3. thdxr
    closed this as completedon Mar 25, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.