claude-code - 💡(How to fix) Fix [FEATURE] Let me change the location of .mcp.json and or define its config in setting.json or with environment variables

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

I'm trying to package up a reusable vscode dev container config and I don't want to scatter around settings files in the project root, I want everything tucked away under a subfolder (.devcontainer.json).

Proposed Solution

I should be able to do one of the following:

  • With an env var change the location of .mcp.json to a subfolder instead of project root (like my .devcontainer folder)
  • define mcp server settings directly with environment variables like I can the fields in settings.json
  • configure claude's MCP config via some specific settings in its vscode extension (not ideal and would be specific only to vscode)

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

Configuration and settings

Use Case Example

  • I could define multiple mcp configs in the same project and switch between them (think mono-repo)
  • I could have my entire IDE config defined under .devcontainer.json subfolders and switch between them
  • I could potentially have a reusable container image that contains a specific .mcp.json and point to it with an env var
  • If mcp server config could be set with environment variables and with settings.json I would only have a single config file to pass to my devs that would configure all of claude

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING