@@ -76,28 +76,25 @@ jobs:
7676 with open('server.json', 'r') as f:
7777 data = json.load(f)
7878 version = '${{ steps.version-check.outputs.current_version }}'
79+
80+ # Update top-level version
7981 data['version'] = version
82+
83+ # Update all packages
8084 if 'packages' in data:
8185 for package in data['packages']:
8286 registry_type = package.get('registryType')
8387
84- # Per 2025-09-29 schema: version is required for ALL packages
88+ # Update version field ( required for all packages in 2025-09-29)
8589 package['version'] = version
8690
87- # For OCI packages: also update version in identifier
91+ # Update identifier with new version tag
8892 if registry_type == 'oci':
8993 identifier = package.get('identifier', '')
9094 if ':' in identifier:
9195 base = identifier.rsplit(':', 1)[0]
92- package['identifier'] = f'{base}:v{version}'
93-
94- # Update Docker args with new version
95- transport = package.get('transport', {})
96- args = transport.get('args') if isinstance(transport, dict) else None
97- if isinstance(args, list):
98- for idx, arg in enumerate(args):
99- if isinstance(arg, str) and 'ghcr.io/codealive-ai/codealive-mcp:' in arg:
100- args[idx] = f'ghcr.io/codealive-ai/codealive-mcp:v{version}'
96+ package['identifier'] = f'{base}:{version}'
97+
10198 with open('server.json', 'w') as f:
10299 json.dump(data, f, indent=2)
103100 "
0 commit comments