Skip to content

Commit 46cb288

Browse files
yeldarbyclaude
andcommitted
Move plugin source .mcp.json out of repo root
Symptom: starting Claude Code in this repo loaded the *template* shape of the Roboflow MCP config -- the one with the literal placeholder "x-api-key:${ROBOFLOW_API_KEY}" -- because Claude Code treats any .mcp.json at the project root as a project-scope MCP config and auto-loads it. The plugin marketplace install path patches a *separate* cached copy under ~/.claude/plugins/cache/, so the patched copy never gets loaded in this dir. Net effect: developers working on this repo hit a 401 from mcp.roboflow.com with the literal "${ROBOFLOW_API_KEY}" string as the key value. The file isn't legacy -- .claude-plugin/plugin.json's `mcpServers` field points at it and `claude plugin install` bundles its contents into the cache. So we keep the file but move it under .claude-plugin/ where Claude Code's project-level auto-loader won't see it. The plugin.json reference becomes "./.mcp.json" relative to the plugin manifest dir; cache layout is unchanged because Claude Code's plugin install logic preserves the source filename, and the installer's patcher still finds .mcp.json in the cache as before. Also fix .codex-plugin/plugin.json's mcpServers pointer, which was "./.mcp.json" relative to .codex-plugin/ but no such file ever existed there -- repoint at ../.claude-plugin/.mcp.json so both plugin manifests share one source of truth. No installer changes needed. No test changes needed (the Pester / bats tests cover the CACHE file, not the source). Pre-existing 2 failing claude-desktop tests still fail unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 71e7b00 commit 46cb288

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

File renamed without changes.

.codex-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"mcp"
2121
],
2222
"skills": "./skills/",
23-
"mcpServers": "./.mcp.json",
23+
"mcpServers": "../.claude-plugin/.mcp.json",
2424
"interface": {
2525
"displayName": "Roboflow",
2626
"shortDescription": "Build computer vision projects with Roboflow",

0 commit comments

Comments
 (0)