Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@joan-anthropic
Copy link
Contributor

@joan-anthropic joan-anthropic commented Oct 30, 2025

Summary

  • McpbManifestAny type is a package export, with McpbManifest historical type export aliased to "any" (union) type vs. "latest"
  • Update manifest type usage in config and packaging to strictly enforce the latest schema version (0.3) instead of accepting any version
  • manifest validation for already-built MCPBs uses McpbManifestAny
  • Ensures BUILD manifests are validated against the latest schema only during packaging

Changes

  • src/shared/config.ts: Changed GetMcpConfigForManifestOptions and HasRequiredConfigMissingOptions to use McpbManifestLatest instead of McpbManifest
  • src/types.ts: Added McpbManifestLatest type export with proper documentation
  • test/config.test.ts: Updated all tests to use McpbManifestLatest

joan-anthropic and others added 3 commits October 30, 2025 09:40
Update manifest type usage in config and packaging to strictly enforce
the latest schema version (0.3) instead of accepting any version.

Changes:
- src/shared/config.ts: Use McpbManifestLatest instead of McpbManifest
- src/types.ts: Add McpbManifestLatest type export
- test/config.test.ts: Update tests to use McpbManifestLatest

This ensures BUILD manifests are validated against the latest schema
only during packaging, preventing use of older schema versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Apply proper type distinction:
- Reading/validating existing manifests: Use McpbManifest (any version)
- Building/creating new manifests: Use McpbManifestLatest (latest only)

Changes:
- src/shared/config.ts: Revert to McpbManifest for config operations
- src/cli/init.ts: Use McpbManifestLatest for new manifest creation
- test/config.test.ts: Use McpbManifest for testing config operations

This ensures backward compatibility when reading existing manifests
while enforcing latest schema for new builds.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@joan-anthropic joan-anthropic requested a review from a team October 30, 2025 16:58
@joan-anthropic joan-anthropic changed the title feat: use latest MCPB schema for BUILD manifest validation feat: export McpbManifestAny type, use latest MCPB schema for BUILD manifest validation Oct 30, 2025
@joan-anthropic joan-anthropic merged commit 82b12a4 into main Oct 30, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants