Skip to content

[plugins] Phase 4: REST API + thv plugin CLI + content preview (THV-0077) #5528

Description

@JAORMX

Goal: Expose plugins over REST and the thv plugin CLI, including content preview.

Deliverables:

  • pkg/api/v1/plugins.go + plugins_types.go — REST under /api/v1beta/plugins (template skills.go), incl. /content + /marketplace.
  • pkg/plugins/client/ — HTTP client (template pkg/skills/client/).
  • cmd/thv/app/plugin*.go — cobra commands mirroring cmd/thv/app/skill*.go; add plugin marketplace generate (no skills analog).
  • GetContent wiring (template skillsvc/content.go).

Dependency/gate: depends on Phase 3 PluginService interface frozen — can overlap late P3.

Testing/exit gate: each CLI command vs. mock registry; API handler tests (template skills_test.go); info shows hooks + "declared, NOT managed by ToolHive" for MCP.

Part of #5525
Refs RFC PR stacklok/rfcs#77

Activity

  1. added
    enhancement
    cli
    api
    on Jun 15, 2026
  2. added
    needs-triage
    on Jun 15, 2026
  3. self-assigned this
    on Jun 15, 2026
  4. removed
    needs-triage
    on Jul 13, 2026
  5. added 4 commits that reference this issue on Jul 28, 2026
    ee4988d
    505489c
    c7fbeac
    b0a3453
  6. added a commit that references this issue on Jul 28, 2026
    724ad1f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apiclienhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions