Skip to content

Commit 2a78810

Browse files
Merge pull request #173 from modelcontextprotocol/fix/mcp-config-required
fix: make mcp_config required for all server types in v0.4 schema
2 parents 3635e20 + 1dbbffc commit 2a78810

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@anthropic-ai/mcpb",
33
"description": "Tools for building MCP Bundles",
4-
"version": "2.1.1",
4+
"version": "2.1.2",
55
"type": "module",
66
"main": "dist/index.js",
77
"module": "dist/index.js",

schemas/mcpb-manifest-v0.4.schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@
188188
},
189189
"required": [
190190
"type",
191-
"entry_point"
191+
"entry_point",
192+
"mcp_config"
192193
],
193194
"additionalProperties": false
194195
},

src/schemas/0.4.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ export const McpbManifestMcpConfigSchema = McpServerConfigSchema.extend({
3737
export const McpbManifestServerSchema = z.strictObject({
3838
type: z.enum(["python", "node", "binary", "uv"]),
3939
entry_point: z.string(),
40-
// mcp_config is optional for UV type (UV handles execution)
41-
mcp_config: McpbManifestMcpConfigSchema.optional(),
40+
mcp_config: McpbManifestMcpConfigSchema,
4241
});
4342

4443
export const McpbManifestCompatibilitySchema = z.strictObject({

0 commit comments

Comments
 (0)