/** * MCP Registry adapter for source-sync. * * Owns: paginated MCP registry server list sync, entry construction/filtering, * and MCP-specific metadata extraction helpers. */ import type { AssetCatalogEntry, SourceDefinition } from "../../../../types.js"; import type { SourceSyncContext, SourceSyncSourceState } from "../types.js"; /** * Syncs the MCP registry using the paginated servers API with a single * resumable offset cursor. */ export declare function syncMcpRegistrySource(source: SourceDefinition, context: SourceSyncContext): Promise; /** * Constructs an `AssetCatalogEntry` from a raw MCP registry server object. * Returns null when the required `name` field is absent or the entry is not * the latest version. */ export declare function buildMcpRegistryCatalogEntry(source: SourceDefinition, context: SourceSyncContext, item: Record): AssetCatalogEntry | null; /** * Returns true when the raw MCP registry item represents the latest version * of its server. Defaults to true when the `isLatest` meta flag is absent. */ export declare function isLatestMcpRegistryEntry(item: Record): boolean; /** * Extracts the `updatedAt` / `publishedAt` / `statusChangedAt` timestamp from * a raw MCP registry item's official metadata block. */ export declare function getMcpRegistryUpdatedAt(item: Record): string | undefined; /** * Constructs a stable origin URL for an MCP registry server by appending the * server name as the URL hash fragment. */ export declare function buildMcpRegistryOriginUrl(baseUrl: string, serverName: string, fallbackUrl: string | undefined): string; /** * Extracts the list of remote transport type strings from a raw MCP server * object's `remotes` array. */ export declare function extractMcpRegistryRemoteTypes(server: Record): string[];