diff --git a/package.json b/package.json index cec3546..117ea90 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@anthropic-ai/mcpb", "description": "Tools for building MCP Bundles", - "version": "1.1.3", + "version": "1.1.4", "type": "module", "main": "dist/index.js", "module": "dist/index.js", diff --git a/src/cli/init.ts b/src/cli/init.ts index c8e764a..3111b3f 100644 --- a/src/cli/init.ts +++ b/src/cli/init.ts @@ -3,7 +3,7 @@ import { existsSync, readFileSync, writeFileSync } from "fs"; import { basename, join, resolve } from "path"; import { LATEST_MANIFEST_VERSION } from "../shared/constants.js"; -import type { McpbManifest } from "../types.js"; +import type { McpbManifestLatest } from "../types.js"; interface PackageJson { name?: string; @@ -878,7 +878,7 @@ export function buildManifest( resources: string; default_locale: string; }, -): McpbManifest { +): McpbManifestLatest { const { name, displayName, version, description, authorName } = basicInfo; const { authorEmail, authorUrl } = authorInfo; const { serverType, entryPoint, mcp_config } = serverConfig; diff --git a/src/types.ts b/src/types.ts index 0b6b2a3..9fb510f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,6 @@ import type * as z from "zod"; +import type { McpbManifestSchema as McpbManifestSchemaAny } from "./schemas/any.js"; import type { McpbManifestAuthorSchema, McpbManifestCompatibilitySchema, @@ -46,7 +47,17 @@ export type McpbUserConfigurationOption = z.infer< export type McpbUserConfigValues = z.infer; -export type McpbManifest = z.infer; +/** + * McpbManifest type that accepts any supported manifest version + * This is the default manifest type that should be used for maximum compatibility. + */ +export type McpbManifest = z.infer; + +/** + * McpbManifest type for the latest manifest version only + * Use this when you specifically need the latest version. + */ +export type McpbManifestLatest = z.infer; /** * Information about a MCPB package signature