Strict 0.4 schema still requires server.mcp_config for uv type (contradicts spec + loose schema; incomplete fix of #201)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- typescript
Research direction
Compare src/schemas/0.4.ts with src/schemas_loose/0.4.ts and MANIFEST.md:432, then run the described strict and loose schema reproduction. Verify that a 0.4 uv server without mcp_config is accepted by validateManifest and pack while the schemas remain consistent.
Written by the indexing model from the issue text.
Description
Summary
The strict 0.4 schema still requires server.mcp_config, which contradicts both MANIFEST.md and the loose schema for uv-type servers. This is the same failure as #201 (closed as completed) — but #201 was resolved by adding mcp_config to the hello-world-uv example, not by fixing the schema, so a spec-compliant UV extension without mcp_config still fails mcpb validate and mcpb pack.
Mechanism
- MANIFEST.md:432 (uv server type): "
mcp_configis optional (host manages execution)". src/schemas_loose/0.4.ts:40:mcp_config: McpbManifestMcpConfigSchema.optional()(correct).src/schemas/0.4.ts:39:mcp_config: McpbManifestMcpConfigSchema— required.validateManifest(src/node/validate.ts) andpack(src/cli/pack.ts) use the strict schema, so a UV manifest with nomcp_configis rejected.
Reproduction (executed)
A manifest_version: "0.4" manifest with server: { type: "uv", entry_point: "main.py" } and no mcp_config:
- loose schema →
success: true - strict schema →
success: false,server.mcp_config: Required
Suggested fix
Make it optional in the strict schema to match the loose schema + spec:
mcp_config: McpbManifestMcpConfigSchema.optional(),
Ideally enforce it as required only for non-uv server types via .superRefine, but at minimum it must be optional so UV extensions validate. (Refs #201.)
Environment: current main (70fe3b3).
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 210
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from modelcontextprotocol/mcpb
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
modelcontextprotocol/mcpb#301 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
modelcontextprotocol/mcpb#265 ·
-
replaceVariables interpolates the variable key into a RegExp unescaped (over-match + crash/ReDoS) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/mcpb#262 ·
-
mcpb unpack fails on archives containing directory entries (unusable on standard ZIP/.mcpb files) Open
Difficulty 1/5 Under an hour Newbie friendliness 86/100
modelcontextprotocol/mcpb#261 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
modelcontextprotocol/mcpb#258 ·
All issues in modelcontextprotocol/mcpb
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·