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", "name": "@anthropic-ai/mcpb",
"description": "Tools for building MCP Bundles", "description": "Tools for building MCP Bundles",
"version": "2.1.1", "version": "2.1.2",
"type": "module", "type": "module",
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/index.js", "module": "dist/index.js",

View file

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

View file

@ -37,8 +37,7 @@ export const McpbManifestMcpConfigSchema = McpServerConfigSchema.extend({
export const McpbManifestServerSchema = z.strictObject({ export const McpbManifestServerSchema = z.strictObject({
type: z.enum(["python", "node", "binary", "uv"]), type: z.enum(["python", "node", "binary", "uv"]),
entry_point: z.string(), entry_point: z.string(),
// mcp_config is optional for UV type (UV handles execution) mcp_config: McpbManifestMcpConfigSchema,
mcp_config: McpbManifestMcpConfigSchema.optional(),
}); });
export const McpbManifestCompatibilitySchema = z.strictObject({ export const McpbManifestCompatibilitySchema = z.strictObject({