Claude Platform Docs

外掛程式市集

列出外掛程式市集
client.Beta.Organization.PluginMarketplaces.List(ctx, params) (*PageCursor[BetaPluginMarketplace], error)
GET/v1/organizations/plugin_marketplaces

列出 Plugin 所在的外掛程式市集,依最新優先排序:包括組織自有的市集及其成員的個人市集。

取得外掛程式市集
client.Beta.Organization.PluginMarketplaces.Get(ctx, marketplaceID, params) (*BetaPluginMarketplace, error)
GET/v1/organizations/plugin_marketplaces/{marketplace_id}

依 ID 擷取外掛程式市集。

更新外掛程式市集
client.Beta.Organization.PluginMarketplaces.Update(ctx, marketplaceID, params) (*BetaPluginMarketplace, error)
POST/v1/organizations/plugin_marketplaces/{marketplace_id}

設定組織自有外掛程式市集之一的預設安裝設定。該市集中每個沒有自身設定的 Plugin(包括之後新增的 Plugin)都會以此預設值作為其全組織設定。

驗證外掛程式市集儲存庫
client.Beta.Organization.PluginMarketplaces.ValidateRepository(ctx, params) (*BetaPluginMarketplaceValidationReport, error)
POST/v1/organizations/plugin_marketplaces/validate_repository

檢查存放於公開 GitHub 儲存庫中的外掛程式市集是否能同步至 claude.ai,而不會連接或儲存該市集。

驗證外掛程式市集封存檔
client.Beta.Organization.PluginMarketplaces.ValidateArchive(ctx, params) (*BetaPluginMarketplaceValidationReport, error)
POST/v1/organizations/plugin_marketplaces/validate_archive

檢查以市集目錄 .zip 形式上傳的外掛程式市集是否能同步至 claude.ai,而不會連接或儲存該市集。

Models
type BetaPluginMarketplace struct { Type: "plugin_marketplace"; ID; CreatedAt; /* 7 more */ }
type BetaPluginMarketplaceValidationPluginError struct { Error; ErrorCode; Name }
Error string

Why the plugin would be skipped by a synchronization.

ErrorCode string

A stable identifier for the reason — the value to branch on.

Name string

The plugin's name, as its entry in marketplace.json declares it.

type BetaPluginMarketplaceValidationPluginWarning struct { ErrorCode; Message }
ErrorCode string

A stable identifier for the kind of warning.

Message string

What would be left out, and why.

type BetaPluginMarketplaceValidationPluginWarnings struct { Name; Warnings }
Name string

The plugin's name, as its entry in marketplace.json declares it.

The parts of the plugin a synchronization would leave out.

ErrorCode string

A stable identifier for the kind of warning.

Message string

What would be left out, and why.

type BetaPluginMarketplaceValidationReport struct { Type: "plugin_marketplace_validation_report"; CommitSha; ManifestError; /* 6 more */ }

The outcome of validating plugin marketplace content: a report, not a stored object, so nothing in it can be retrieved afterwards.