Skip to content

Commit 0d034da

Browse files
critesjoshclaude
andcommitted
Rename package to @aztec/mcp-server and add CI workflow
- Rename npm package from aztec-mcp-server to @aztec/mcp-server - Update repository URL to aztecprotocol/mcp-server - Add publishConfig for public scoped package access - Add GitHub Actions CI: runs tests on PRs, auto-publishes to npm on version bump merges to main Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f62509f commit 0d034da

2 files changed

Lines changed: 52 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
- run: npm ci
18+
- run: npm test
19+
- run: npm run build
20+
21+
publish:
22+
needs: test
23+
runs-on: ubuntu-latest
24+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
registry-url: https://registry.npmjs.org
31+
- run: npm ci
32+
- run: npm run build
33+
- name: Check if version changed
34+
id: version
35+
run: |
36+
CURRENT=$(node -p "require('./package.json').version")
37+
PUBLISHED=$(npm view @aztec/mcp-server version 2>/dev/null || echo "0.0.0")
38+
if [ "$CURRENT" != "$PUBLISHED" ]; then
39+
echo "changed=true" >> $GITHUB_OUTPUT
40+
else
41+
echo "changed=false" >> $GITHUB_OUTPUT
42+
fi
43+
- name: Publish to npm
44+
if: steps.version.outputs.changed == 'true'
45+
run: npm publish
46+
env:
47+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "aztec-mcp-server",
2+
"name": "@aztec/mcp-server",
33
"version": "1.6.0",
44
"description": "MCP server for Aztec development - clones and searches Aztec documentation and examples",
55
"type": "module",
@@ -28,7 +28,7 @@
2828
"license": "MIT",
2929
"repository": {
3030
"type": "git",
31-
"url": "https://github.com/critesjosh/aztec-mcp-server"
31+
"url": "https://github.com/aztecprotocol/mcp-server"
3232
},
3333
"dependencies": {
3434
"@modelcontextprotocol/sdk": "^1.0.0",
@@ -43,6 +43,9 @@
4343
"engines": {
4444
"node": ">=18.0.0"
4545
},
46+
"publishConfig": {
47+
"access": "public"
48+
},
4649
"files": [
4750
"dist",
4851
"README.md"

0 commit comments

Comments
 (0)