postToolsCatalogSyncWithHttpInfo method

Future<Response> postToolsCatalogSyncWithHttpInfo()

Pulls the public MCP registry into our canonical copy and reports what changed.

Pulls the public MCP registry into our canonical copy and reports what changed. SuperAdmin only; every other caller is refused. It is IDEMPOTENT: a listing is keyed by the publisher's own reverse-DNS name, so a second pass over an unchanged registry rewrites the same rows and reports added=0, updated=0. It never deletes — a listing that vanishes upstream may be one an org has already enabled, and dropping its description would not drop its server. And it never touches CURATION: hidden, featured, an admin-set official and a logo survive every sync, because the write does not name those columns.

Note: This method returns the HTTP Response.

Implementation

Future<Response> postToolsCatalogSyncWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/tools/catalog/sync';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}