Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/cli/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
13 changes: 12 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type * as z from "zod";

import type { McpbManifestSchema as McpbManifestSchemaAny } from "./schemas/any.js";
import type {
McpbManifestAuthorSchema,
McpbManifestCompatibilitySchema,
Expand Down Expand Up @@ -46,7 +47,17 @@ export type McpbUserConfigurationOption = z.infer<

export type McpbUserConfigValues = z.infer<typeof McpbUserConfigValuesSchema>;

export type McpbManifest = z.infer<typeof McpbManifestSchema>;
/**
* 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<typeof McpbManifestSchemaAny>;

/**
* McpbManifest type for the latest manifest version only
* Use this when you specifically need the latest version.
*/
export type McpbManifestLatest = z.infer<typeof McpbManifestSchema>;

/**
* Information about a MCPB package signature
Expand Down