Skip to content

Commit ae6b370

Browse files
committed
Simplify server description and reintroduce Docker build/publish steps to GitHub Actions
- Shortened MCP server description in `server.json` for clarity - Restored Docker setup, metadata, tagging, and publishing pipeline to `main.yml` workflow - Ensured alignment with automated versioning and validation steps
1 parent 44afd45 commit ae6b370

File tree

2 files changed

+46
-45
lines changed

2 files changed

+46
-45
lines changed

.github/workflows/main.yml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -90,49 +90,6 @@ jobs:
9090
json.dump(data, f, indent=2)
9191
"
9292
93-
- name: Set up Docker Buildx
94-
uses: docker/setup-buildx-action@v3
95-
96-
- name: Docker meta
97-
id: meta
98-
uses: docker/metadata-action@v5
99-
with:
100-
images: ${{ env.IMAGE_NAME }}
101-
tags: |
102-
type=ref,event=branch
103-
type=ref,event=pr
104-
type=semver,pattern={{version}},value=${{ steps.version-check.outputs.current_version }},enable=${{ github.ref == 'refs/heads/main' && steps.version-check.outputs.version_changed == 'true' }}
105-
type=semver,pattern=v{{version}},value=${{ steps.version-check.outputs.current_version }},enable=${{ github.ref == 'refs/heads/main' && steps.version-check.outputs.version_changed == 'true' }}
106-
type=raw,value=latest,enable={{is_default_branch}}
107-
108-
- name: Login to GitHub Container Registry
109-
uses: docker/login-action@v3
110-
with:
111-
registry: ${{ env.DOCKER_REGISTRY }}
112-
username: ${{ env.DOCKER_USERNAME }}
113-
password: ${{ env.DOCKER_PASSWORD }}
114-
115-
- name: Build and push Docker image
116-
uses: docker/build-push-action@v5
117-
with:
118-
push: true
119-
platforms: linux/amd64,linux/arm64
120-
file: ./Dockerfile
121-
tags: ${{ steps.meta.outputs.tags }}
122-
labels: |
123-
${{ steps.meta.outputs.labels }}
124-
io.modelcontextprotocol.server.name=io.github.codealive-ai/codealive-mcp
125-
cache-from: type=gha
126-
cache-to: type=gha
127-
128-
- name: Create git tag
129-
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
130-
run: |
131-
git config user.name "github-actions[bot]"
132-
git config user.email "github-actions[bot]@users.noreply.github.com"
133-
git tag "v${{ steps.version-check.outputs.current_version }}"
134-
git push origin "v${{ steps.version-check.outputs.current_version }}"
135-
13693
- name: Validate server.json
13794
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
13895
run: |
@@ -201,6 +158,49 @@ jobs:
201158
)
202159
PY
203160
161+
- name: Set up Docker Buildx
162+
uses: docker/setup-buildx-action@v3
163+
164+
- name: Docker meta
165+
id: meta
166+
uses: docker/metadata-action@v5
167+
with:
168+
images: ${{ env.IMAGE_NAME }}
169+
tags: |
170+
type=ref,event=branch
171+
type=ref,event=pr
172+
type=semver,pattern={{version}},value=${{ steps.version-check.outputs.current_version }},enable=${{ github.ref == 'refs/heads/main' && steps.version-check.outputs.version_changed == 'true' }}
173+
type=semver,pattern=v{{version}},value=${{ steps.version-check.outputs.current_version }},enable=${{ github.ref == 'refs/heads/main' && steps.version-check.outputs.version_changed == 'true' }}
174+
type=raw,value=latest,enable={{is_default_branch}}
175+
176+
- name: Login to GitHub Container Registry
177+
uses: docker/login-action@v3
178+
with:
179+
registry: ${{ env.DOCKER_REGISTRY }}
180+
username: ${{ env.DOCKER_USERNAME }}
181+
password: ${{ env.DOCKER_PASSWORD }}
182+
183+
- name: Build and push Docker image
184+
uses: docker/build-push-action@v5
185+
with:
186+
push: true
187+
platforms: linux/amd64,linux/arm64
188+
file: ./Dockerfile
189+
tags: ${{ steps.meta.outputs.tags }}
190+
labels: |
191+
${{ steps.meta.outputs.labels }}
192+
io.modelcontextprotocol.server.name=io.github.codealive-ai/codealive-mcp
193+
cache-from: type=gha
194+
cache-to: type=gha
195+
196+
- name: Create git tag
197+
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
198+
run: |
199+
git config user.name "github-actions[bot]"
200+
git config user.email "github-actions[bot]@users.noreply.github.com"
201+
git tag "v${{ steps.version-check.outputs.current_version }}"
202+
git push origin "v${{ steps.version-check.outputs.current_version }}"
203+
204204
- name: Install MCP Publisher CLI
205205
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
206206
run: |

server.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-16/server.schema.json",
33
"name": "io.github.codealive-ai/codealive-mcp",
44
"version": "0.2.0",
5-
"description": "Connect AI assistants to CodeAlive's semantic code search and analysis platform. Accelerates AI code agents with comprehensive knowledge graphs and deep understanding of code relationships across all programming languages and multi-repository content.",
5+
"description": "Semantic code search and analysis from CodeAlive for AI assistants and agents.",
66
"keywords": [
77
"context-engineering",
88
"agent-knowledge",
@@ -27,7 +27,8 @@
2727
"homepage": "https://github.com/CodeAlive-AI/codealive-mcp",
2828
"repository": {
2929
"type": "git",
30-
"url": "https://github.com/CodeAlive-AI/codealive-mcp.git"
30+
"url": "https://github.com/CodeAlive-AI/codealive-mcp.git",
31+
"source": "github"
3132
},
3233
"packages": [
3334
{

0 commit comments

Comments
 (0)