Add read-only Claude Code marketplace.json compatibility endpoint - #602
Open
danielle-mustillo wants to merge 3 commits into
Open
Add read-only Claude Code marketplace.json compatibility endpoint#602danielle-mustillo wants to merge 3 commits into
danielle-mustillo wants to merge 3 commits into
Conversation
added 2 commits
July 30, 2026 23:50
gen-openapi force-enabled MCPRegistryCompatEnabled for spec generation but not PluginMarketplaceCompatEnabled, so the new marketplace.json endpoint was silently missing from openapi.yaml and the generated TS client. Enable it the same way and regenerate. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
xytian315
reviewed
Jul 31, 2026
Comment on lines
+66
to
+71
| PluginMarketplaceCompatEnabled bool `env:"PLUGIN_MARKETPLACE_COMPAT_ENABLED" envDefault:"false"` | ||
| // PluginMarketplaceCompatPathPrefix optionally mounts the compatibility API | ||
| // under a base prefix (e.g. "/plugins"); empty serves the standard | ||
| // "/plugin-marketplace/marketplace.json" path at the root. Any prefix set | ||
| // here must match the base URL registered with the consuming agent. | ||
| PluginMarketplaceCompatPathPrefix string `env:"PLUGIN_MARKETPLACE_COMPAT_PATH_PREFIX" envDefault:""` |
Collaborator
There was a problem hiding this comment.
question: should it be AGENT_REGISTRY_PLUGIN_MARKETPLACE_*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a read-only
GET /plugin-marketplace/marketplace.jsonendpoint that re-exposes AgentRegistry'sPluginresources in the Claude Codemarketplace.jsonshape (code.claude.com/docs/en/plugin-marketplaces), so a bare URL to this endpoint can be registered directly withclaude plugin marketplace add.claude plugin marketplace addwithout a separate export step.pkg/pluginmarketplace: translates a resolvedv1alpha1.Pluginsource pin into themarketplace.jsonurl/git-subdirsource forms (phase 1 — nogithubshorthand form, since AgentRegistry always resolves to a concrete repository URL).internal/registry/api/handlers/pluginmarketplace: the HTTP handler, walking every Plugin row across all namespaces (paginated internally) and skipping any not-yet-resolved or unsupported-source entries so the document never contains a partial/broken entry. Honors the same optional per-kind RBACListFilteras the native Plugin read path.internal/registry/config/ router wiring: newPLUGIN_MARKETPLACE_COMPAT_ENABLEDflag (defaultfalse) and optional path prefix, since the endpoint flattens every namespace into one unscoped catalogue.docs/plugin-marketplace-compatibility.md: usage docs.Change Type
/kind feature
Changelog
Additional Notes
Off by default. The endpoint flattens every namespace into a single catalogue with no built-in scoping in OSS (nil
ListFilter) — enable only where a full, unscoped Plugin catalogue is acceptable to expose (a public OSS registry, or behind a trusted gateway).