You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make mcpb package version optional and fix schema validation (#686)
<!-- Provide a brief summary of your changes -->
## Motivation and Context
<!-- Why is this change needed? What problem does it solve? -->
The following PR:
* Makes mcpb package version property optional
* Bumps the schema and reflects that in the code
* Makes sure the publisher tests are being covered by doing `make check`
## How Has This Been Tested?
<!-- Have you tested this in a real application? Which scenarios were
tested? -->
## Breaking Changes
<!-- Will users need to update their code or configurations? -->
## Types of changes
<!-- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
## Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [ ] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [ ] My code follows the repository's style guidelines
- [ ] New and existing tests pass locally
- [ ] I have added appropriate error handling
- [ ] I have added or updated documentation as needed
## Additional context
<!-- Add any other context, implementation notes, or design decisions
-->
---------
Signed-off-by: Radoslav Dimitrov <[email protected]>
The identifier is `namespace/repository`, and version is the tag and optionally digest.
314
+
The identifier format is `registry/namespace/repository:tag` (e.g., `docker.io/user/app:1.0.0` or `ghcr.io/user/app:1.0.0`). The version can also be specified as a digest.
319
315
320
-
The official MCP registry currently supports Docker Hub (`https://docker.io`) and GitHub Container Registry (`https://ghcr.io`).
316
+
The official MCP registry currently supports Docker Hub (`docker.io`) and GitHub Container Registry (`ghcr.io`).
Copy file name to clipboardExpand all lines: docs/reference/server-json/CHANGELOG.md
+54Lines changed: 54 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,60 @@
2
2
3
3
Changes to the server.json schema and format.
4
4
5
+
## 2025-10-17
6
+
7
+
### Changed
8
+
9
+
The `version` field is now **optional** for MCPB packages, providing flexibility for publishers.
10
+
11
+
**Key Changes:**
12
+
13
+
-**MCPB packages can now include an optional `version` field** - Previously rejected by validation, MCPB packages can now optionally specify a version field for clarity and metadata purposes.
14
+
-**Both formats are valid**:
15
+
- MCPB packages **with** version field: Provides explicit version metadata
16
+
- MCPB packages **without** version field: Version information is embedded in the download URL (as before)
17
+
18
+
**Migration:**
19
+
20
+
Publishers using MCPB packages can optionally add a `version` field to their package configuration. This is particularly useful when:
21
+
- The version information is not clearly visible in the download URL
22
+
- You want to provide explicit version metadata for tooling and clients
23
+
- You need consistent version tracking across different package types
24
+
25
+
Existing MCPB packages without the version field continue to work without any changes.
0 commit comments