[BUG] `strictKnownMarketplaces` raises errors when installing a local marketplace

Status Open
Reported on v2.1.220
Maintainer reply None cached
Activity 1 comment · opened Jul 30, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

With a managed settings of

{
  "strictKnownMarketplaces": [
    {
      "pathPattern": ".*",
      "source": "pathPattern"
    }
  ]
}

all local marketplaces should be allowed (per https://code.claude.com/docs/en/plugin-marketplaces#common-configurations).

However, when installing a marketplace from a local directory, errors are thrown about the Marketplace not being in the allowed marketplace list, and marketplace-blocked-by-policy.

Note, it does appear that the marketplace gets installed, but the errors create confusion.

What Should Happen?

Claude should install the marketplace without errors

Error Messages/Logs

#9 4.125 2026-07-30T14:52:55.294Z [DEBUG] Plugin not available for MCP: local-plugin@local-marketplace - error type: marketplace-blocked-by-policy
#9 4.125 2026-07-30T14:52:55.294Z [DEBUG] Plugin loading errors: Marketplace 'local-marketplace' is not in the allowed marketplace list
#9 4.125 2026-07-30T14:52:55.294Z [DEBUG] getPluginSkills: Processing 0 enabled plugins
#9 4.125 2026-07-30T14:52:55.294Z [DEBUG] Plugin loading errors: Marketplace 'local-marketplace' is not in the allowed marketplace list
#9 4.125 2026-07-30T14:52:55.294Z [DEBUG] Plugin loading errors: Marketplace 'local-marketplace' is not in the allowed marketplace list
#9 4.125 2026-07-30T14:52:55.294Z [DEBUG] Plugin loading errors: Marketplace 'local-marketplace' is not in the allowed marketplace list
#9 4.125 2026-07-30T14:52:55.327Z [DEBUG] Plugin local-plugin@local-marketplace not found in any marketplace, skipping
#9 4.125 2026-07-30T14:52:55.422Z [DEBUG] Plugin not available for MCP: local-plugin@local-marketplace - error type: marketplace-blocked-by-policy
#9 4.125 2026-07-30T14:52:55.422Z [DEBUG] Plugin not available for MCP: local-plugin@local-marketplace - error type: marketplace-blocked-by-policy
#9 4.125 2026-07-30T14:52:55.422Z [DEBUG] performBackgroundPluginInstallations called
#9 4.125 2026-07-30T14:52:55.455Z [DEBUG] refreshActivePlugins: clearing all plugin caches
#9 4.125 2026-07-30T14:52:55.466Z [DEBUG] refreshActivePlugins: 1 enabled, 0 commands, 6 agents, 0 hooks, 0 MCP, 0 LSP
#9 4.125 2026-07-30T14:52:55.466Z [DEBUG] getPluginSkills: Processing 1 enabled plugins

Steps to Reproduce

The README.md file at https://github.com/jonathanmorley/reproductions/tree/claude-marketplace-errors contains instructions on how to reproduce this bug.

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.220

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Warp

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗