registry.ts
1 // Define the structure of a registry package 2 export type McpRegistryPackage = { 3 identifier: string 4 registryType: 'mcpb' | 'npm' | 'oci' | 'pypi' | string 5 registryBaseUrl?: string 6 transport?: { 7 type: string 8 } 9 } 10 11 // Define the structure of a registry server 12 export type McpRegistryServer = { 13 server: { 14 name: string 15 description: string 16 version: string 17 repository: { 18 source: string 19 url: string 20 } 21 packages: McpRegistryPackage[] 22 remotes: { 23 url: string 24 type: string 25 }[] 26 } 27 } 28 29 // Define the structure of a registry type 30 export type McpRegistryType = { 31 servers: McpRegistryServer[] 32 metadata: { 33 nextCursor: string 34 count: number 35 } 36 }