fix: move mcp_servers to metadata.json to prevent silent plugin.json rejection #431

Merged
lmiranda merged 6 commits from fix/mcp-servers-metadata-json into development 2026-02-04 20:40:07 +00:00
Owner

Summary

  • Created metadata.json files for 8 plugins that need MCP server dependencies
  • Updated install/uninstall/list scripts to read from metadata.json instead of plugin.json
  • Added cache clearing to switch-profile.sh after profile switches

Problem

Claude Code's strict schema validation silently rejects plugins with unknown root-level fields in plugin.json (anthropics/claude-code#20409). This was causing skills to not register with zero error output.

Solution

Moved mcp_servers field to separate metadata.json files that Claude Code's schema validator ignores.

Test plan

  • Verified no plugin.json files have mcp_servers field
  • Verified all 8 metadata.json files created
  • Ran validate-marketplace.sh - passed
  • Ran verify-hooks.sh - passed

🤖 Generated with Claude Code

## Summary - Created `metadata.json` files for 8 plugins that need MCP server dependencies - Updated install/uninstall/list scripts to read from `metadata.json` instead of `plugin.json` - Added cache clearing to `switch-profile.sh` after profile switches ## Problem Claude Code's strict schema validation silently rejects plugins with unknown root-level fields in `plugin.json` (anthropics/claude-code#20409). This was causing skills to not register with zero error output. ## Solution Moved `mcp_servers` field to separate `metadata.json` files that Claude Code's schema validator ignores. ## Test plan - [x] Verified no `plugin.json` files have `mcp_servers` field - [x] Verified all 8 `metadata.json` files created - [x] Ran `validate-marketplace.sh` - passed - [x] Ran `verify-hooks.sh` - passed 🤖 Generated with [Claude Code](https://claude.ai/code)
lmiranda added 6 commits 2026-02-04 20:05:17 +00:00
Reviewed-on: #422
Reviewed-on: #424
Reviewed-on: #426
Reviewed-on: #428
Reviewed-on: #430
Claude Code's strict schema validation silently rejects plugins with unknown
root-level fields in plugin.json (anthropics/claude-code#20409).
Moved mcp_servers to separate metadata.json files.
Updated install/uninstall/list scripts to read from new location.
Added cache clearing to switch-profile.sh.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit a4fb5b6feb into development 2026-02-04 20:40:07 +00:00
lmiranda deleted branch fix/mcp-servers-metadata-json 2026-02-04 20:40:07 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#431