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:
commit
2a788100a6
3 changed files with 4 additions and 4 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,8 @@
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"type",
|
"type",
|
||||||
"entry_point"
|
"entry_point",
|
||||||
|
"mcp_config"
|
||||||
],
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue