@@ -81,21 +81,15 @@ jobs:
8181 for package in data['packages']:
8282 registry_type = package.get('registryType')
8383
84- # Per 2025-10-11 schema: version is optional for OCI/MCPB (embedded in identifier)
84+ # Per 2025-09-29 schema: version is required for ALL packages
85+ package['version'] = version
86+
87+ # For OCI packages: also update version in identifier
8588 if registry_type == 'oci':
86- # Update version in identifier
8789 identifier = package.get('identifier', '')
8890 if ':' in identifier:
8991 base = identifier.rsplit(':', 1)[0]
9092 package['identifier'] = f'{base}:v{version}'
91- # Remove separate version field (optional for OCI)
92- package.pop('version', None)
93- elif registry_type == 'mcpb':
94- # MCPB uses direct download URLs, no version field needed
95- package.pop('version', None)
96- else:
97- # For npm, pypi, nuget: version field is required
98- package['version'] = version
9993
10094 # Update Docker args with new version
10195 transport = package.get('transport', {})
@@ -122,7 +116,7 @@ jobs:
122116 import urllib.request
123117 from jsonschema import ValidationError, validate
124118
125- schema_url = "https://static.modelcontextprotocol.io/schemas/2025-10-11 /server.schema.json"
119+ schema_url = "https://static.modelcontextprotocol.io/schemas/2025-09-29 /server.schema.json"
126120
127121 try:
128122 with urllib.request.urlopen(schema_url, timeout=30) as response:
0 commit comments