diff --git a/src/types.ts b/src/types.ts index 0b6b2a3..23c2061 100644 --- a/src/types.ts +++ b/src/types.ts @@ -15,6 +15,9 @@ import type { McpbUserConfigValuesSchema, McpServerConfigSchema, } from "./schemas/latest.js"; +import type { McpbManifestSchema as McpbManifestSchema_v0_1 } from "./schemas/0.1.js"; +import type { McpbManifestSchema as McpbManifestSchema_v0_2 } from "./schemas/0.2.js"; +import type { McpbManifestSchema as McpbManifestSchema_v0_3 } from "./schemas/0.3.js"; export type McpServerConfig = z.infer; @@ -46,7 +49,14 @@ export type McpbUserConfigurationOption = z.infer< export type McpbUserConfigValues = z.infer; -export type McpbManifest = z.infer; +/** + * Discriminated union of all supported manifest versions. + * Discriminated by manifest_version or dxt_version field. + */ +export type McpbManifest = + | z.infer + | z.infer + | z.infer; /** * Information about a MCPB package signature