Skip to content

Commit fe1c7dc

Browse files
committed
Fix OCI package validation, upgrade actions, use latest mcp-publisher
- Remove version field from OCI packages (version goes in identifier tag only) - Upgrade actions/checkout to v5 (Node.js 20 deprecation) - Use releases/latest/download for mcp-publisher (future-proof) - server.json: use :latest placeholder (release workflow sets exact version)
1 parent af2baa8 commit fe1c7dc

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
name: Test
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323

2424
- uses: actions/setup-python@v5
2525
with:
@@ -50,7 +50,7 @@ jobs:
5050
needs: test
5151
runs-on: ubuntu-latest
5252
steps:
53-
- uses: actions/checkout@v4
53+
- uses: actions/checkout@v5
5454

5555
- uses: docker/setup-buildx-action@v3
5656

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
environment: release
3434
steps:
3535
- name: Checkout repository
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3737
with:
3838
fetch-depth: 0
3939

@@ -105,12 +105,16 @@ jobs:
105105
data['version'] = version
106106
if 'packages' in data:
107107
for package in data['packages']:
108-
package['version'] = version
109-
if package.get('registryType') == 'oci':
108+
registry_type = package.get('registryType')
109+
if registry_type == 'oci':
110+
# OCI packages: version goes in identifier tag, NOT as a field
111+
package.pop('version', None)
110112
identifier = package.get('identifier', '')
111113
if ':' in identifier:
112114
base = identifier.rsplit(':', 1)[0]
113115
package['identifier'] = f'{base}:{version}'
116+
else:
117+
package['version'] = version
114118
with open('server.json', 'w') as f:
115119
json.dump(data, f, indent=2)
116120
f.write('\n')
@@ -168,7 +172,7 @@ jobs:
168172
169173
- name: Install MCP Publisher CLI
170174
run: |
171-
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.5.0/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
175+
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
172176
chmod +x mcp-publisher
173177
174178
- name: Login to MCP Registry (GitHub OIDC)

server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"packages": [
3434
{
3535
"registryType": "oci",
36-
"identifier": "ghcr.io/codealive-ai/codealive-mcp:0.5.1",
36+
"identifier": "ghcr.io/codealive-ai/codealive-mcp:latest",
3737
"runtimeHint": "docker",
3838
"transport": {
3939
"type": "stdio"

0 commit comments

Comments
 (0)