← Back to Pull requests

Add read-only Claude Code marketplace.json compatibility endpoint #602

Closed
unknown closed this pull request without merging on Aug 05, 2026 21:06 UTC
View on GitHub
unknown unknown commented on Jul 31, 2026 14:06 UTC
Author

Description

Adds a read-only GET /plugin-marketplace/marketplace.json endpoint that re-exposes AgentRegistry's Plugin resources in the Claude Code marketplace.json shape (code.claude.com/docs/en/plugin-marketplaces), so a bare URL to this endpoint can be registered directly with claude plugin marketplace add.

  • Motivation: let AgentRegistry serve as a source for claude plugin marketplace add without a separate export step.

  • What changed:

  • - pkg/pluginmarketplace: translates a resolved v1alpha1.Plugin source pin into the marketplace.json url/git-subdir source forms (phase 1 — no github shorthand 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 RBAC ListFilter as the native Plugin read path.
    - internal/registry/config / router wiring: new PLUGIN_MARKETPLACE_COMPAT_ENABLED flag (default false) 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

    ``release-note
    Add optional read-only Claude Code marketplace.json compatibility endpoint (
    PLUGIN_MARKETPLACE_COMPAT_ENABLED), letting claude plugin marketplace add point directly at an AgentRegistry Plugin catalogue.
    `

    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).

    Diff: 235 lines (+176 / -59) across 2 files Reviewer: lcopi Review duration: 7619m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 235 lines diff across 2 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.327
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #602"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.1% (MEDIUM) · Higher = larger blast radius
    42.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.7% · Safe to merge
    16.7%