File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 7979 data['version'] = version
8080 if 'packages' in data:
8181 for package in data['packages']:
82- package['version'] = version
82+ registry_type = package.get('registryType')
83+ # For OCI packages: version is embedded in identifier (2025-10-11 schema)
84+ if registry_type == 'oci':
85+ identifier = package.get('identifier', '')
86+ # Update identifier with new version tag
87+ if ':' in identifier:
88+ base = identifier.rsplit(':', 1)[0]
89+ package['identifier'] = f'{base}:v{version}'
90+ # Remove separate version field if it exists (old schema)
91+ package.pop('version', None)
92+ else:
93+ # For npm, pypi, nuget: keep separate version field
94+ package['version'] = version
95+
96+ # Update Docker args with new version
8397 transport = package.get('transport', {})
8498 args = transport.get('args') if isinstance(transport, dict) else None
8599 if isinstance(args, list):
Original file line number Diff line number Diff line change 11[project ]
22name = " codealive-mcp"
3- version = " 0.4.1 "
3+ version = " 0.4.2 "
44description = " MCP server for the CodeAlive API"
55readme = " README.md"
66requires-python = " >=3.11"
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json" ,
33 "name" : " io.github.CodeAlive-AI/codealive-mcp" ,
4- "version" : " 0.2.0 " ,
4+ "version" : " 0.4.1 " ,
55 "description" : " Semantic code search and analysis from CodeAlive for AI assistants and agents." ,
66 "keywords" : [
77 " context-engineering" ,
3333 "packages" : [
3434 {
3535 "registryType" : " oci" ,
36- "registryBaseUrl" : " https://ghcr.io" ,
37- "identifier" : " codealive-ai/codealive-mcp" ,
38- "version" : " 0.2.0" ,
36+ "identifier" : " ghcr.io/codealive-ai/codealive-mcp:v0.4.1" ,
3937 "transport" : {
4038 "type" : " stdio" ,
4139 "command" : " docker" ,
4543 " -i" ,
4644 " -e" ,
4745 " CODEALIVE_API_KEY=YOUR_API_KEY_HERE" ,
48- " ghcr.io/codealive-ai/codealive-mcp:v0.2.0 "
46+ " ghcr.io/codealive-ai/codealive-mcp:v0.4.1 "
4947 ]
5048 }
5149 }
You can’t perform that action at this time.
0 commit comments