From 1dbbffc9727637a9bb4b7a796bdd45781ef9c22c Mon Sep 17 00:00:00 2001 From: Joan Xie Date: Wed, 3 Dec 2025 20:33:10 -0800 Subject: [PATCH] fix: make mcp_config required for all server types in v0.4 schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- package.json | 2 +- schemas/mcpb-manifest-v0.4.schema.json | 3 ++- src/schemas/0.4.ts | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 99389da..09a33ee 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@anthropic-ai/mcpb", "description": "Tools for building MCP Bundles", - "version": "2.1.1", + "version": "2.1.2", "type": "module", "main": "dist/index.js", "module": "dist/index.js", diff --git a/schemas/mcpb-manifest-v0.4.schema.json b/schemas/mcpb-manifest-v0.4.schema.json index 69496ba..5917415 100644 --- a/schemas/mcpb-manifest-v0.4.schema.json +++ b/schemas/mcpb-manifest-v0.4.schema.json @@ -188,7 +188,8 @@ }, "required": [ "type", - "entry_point" + "entry_point", + "mcp_config" ], "additionalProperties": false }, diff --git a/src/schemas/0.4.ts b/src/schemas/0.4.ts index e706e26..e044b91 100644 --- a/src/schemas/0.4.ts +++ b/src/schemas/0.4.ts @@ -37,8 +37,7 @@ export const McpbManifestMcpConfigSchema = McpServerConfigSchema.extend({ export const McpbManifestServerSchema = z.strictObject({ type: z.enum(["python", "node", "binary", "uv"]), entry_point: z.string(), - // mcp_config is optional for UV type (UV handles execution) - mcp_config: McpbManifestMcpConfigSchema.optional(), + mcp_config: McpbManifestMcpConfigSchema, }); export const McpbManifestCompatibilitySchema = z.strictObject({