Claude Platform Docs

外掛程式市集

列出外掛程式市集
PluginMarketplaceListPage beta().organization().pluginMarketplaces().list(params = PluginMarketplaceListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugin_marketplaces

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

取得外掛程式市集
BetaPluginMarketplace beta().organization().pluginMarketplaces().retrieve(params = PluginMarketplaceRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugin_marketplaces/{marketplace_id}

依 ID 擷取外掛程式市集。

更新外掛程式市集
BetaPluginMarketplace beta().organization().pluginMarketplaces().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugin_marketplaces/{marketplace_id}

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

驗證外掛程式市集儲存庫
BetaPluginMarketplaceValidationReport beta().organization().pluginMarketplaces().validateRepository(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugin_marketplaces/validate_repository

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

驗證外掛程式市集封存檔
BetaPluginMarketplaceValidationReport beta().organization().pluginMarketplaces().validateArchive(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugin_marketplaces/validate_archive

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

Models
class BetaPluginMarketplace { type = "plugin_marketplace"; id; createdAt; /* 7 more */ }
class BetaPluginMarketplaceValidationPluginError { error; errorCode; name; }
String error

Why the plugin would be skipped by a synchronization.

String errorCode

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

String name

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

class BetaPluginMarketplaceValidationPluginWarning { errorCode; message; }
String errorCode

A stable identifier for the kind of warning.

String message

What would be left out, and why.

class BetaPluginMarketplaceValidationPluginWarnings { name; warnings; }
String name

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

The parts of the plugin a synchronization would leave out.

String errorCode

A stable identifier for the kind of warning.

String message

What would be left out, and why.

class BetaPluginMarketplaceValidationReport { 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.