Merge pull request #173 from modelcontextprotocol/fix/mcp-config-required

fix: make mcp_config required for all server types in v0.4 schema
This commit is contained in:
joan-anthropic 2025-12-03 20:49:16 -08:00 • committed by GitHub
commit 2a788100a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -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",

View file

@ -188,7 +188,8 @@
},
"required": [
"type",
"entry_point"
"entry_point",
"mcp_config"
],
"additionalProperties": false
},

View file

@ -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({