Skip to content

Commit 693342d

Browse files
authored
Merge pull request #2 from AztecProtocol/ci/publish-and-rename
Rename package to @aztec/mcp-server and add CI workflow
2 parents f62509f + a6038cc commit 693342d

File tree

6 files changed

+7068
-1092
lines changed

6 files changed

+7068
-1092
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
commitlint:
11+
runs-on: ubuntu-latest
12+
if: github.event_name == 'pull_request'
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
- run: npm ci
21+
- name: Lint commits
22+
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
23+
24+
test:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
- run: npm ci
32+
- run: npm test
33+
- run: npm run build
34+
35+
release:
36+
needs: test
37+
runs-on: ubuntu-latest
38+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
39+
permissions:
40+
contents: write
41+
issues: write
42+
pull-requests: write
43+
env:
44+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
steps:
47+
- uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 0
50+
- uses: actions/setup-node@v4
51+
with:
52+
node-version: 20
53+
registry-url: https://registry.npmjs.org
54+
- run: npm ci
55+
- run: npm run build
56+
- name: Release
57+
run: npx semantic-release
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"branches": ["main"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/npm",
7+
"@semantic-release/github"
8+
]
9+
}

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ An MCP (Model Context Protocol) server that provides local access to Aztec docum
1515
### With npx (recommended)
1616

1717
```bash
18-
npx aztec-mcp-server
18+
npx @aztec/mcp-server
1919
```
2020

2121
### Global install
2222

2323
```bash
24-
npm install -g aztec-mcp-server
24+
npm install -g @aztec/mcp-server
2525
aztec-mcp
2626
```
2727

@@ -36,7 +36,7 @@ Add to your `.mcp.json`:
3636
"mcpServers": {
3737
"aztec-local": {
3838
"command": "npx",
39-
"args": ["-y", "aztec-mcp-server@latest"]
39+
"args": ["-y", "@aztec/mcp-server@latest"]
4040
}
4141
}
4242
}
@@ -135,7 +135,7 @@ Override with the `AZTEC_MCP_REPOS_DIR` environment variable:
135135
"mcpServers": {
136136
"aztec-local": {
137137
"command": "npx",
138-
"args": ["-y", "aztec-mcp-server"],
138+
"args": ["-y", "@aztec/mcp-server"],
139139
"env": {
140140
"AZTEC_MCP_REPOS_DIR": "/custom/path"
141141
}
@@ -153,7 +153,7 @@ Set the default Aztec version with the `AZTEC_DEFAULT_VERSION` environment varia
153153
"mcpServers": {
154154
"aztec-local": {
155155
"command": "npx",
156-
"args": ["-y", "aztec-mcp-server"],
156+
"args": ["-y", "@aztec/mcp-server"],
157157
"env": {
158158
"AZTEC_DEFAULT_VERSION": "v3.0.0-devnet.6-plugin.1"
159159
}
@@ -166,8 +166,8 @@ Set the default Aztec version with the `AZTEC_DEFAULT_VERSION` environment varia
166166

167167
```bash
168168
# Clone the repo
169-
git clone https://github.com/critesjosh/aztec-mcp-server
170-
cd aztec-mcp-server
169+
git clone https://github.com/aztecprotocol/mcp-server
170+
cd mcp-server
171171

172172
# Install dependencies
173173
npm install

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default { extends: ['@commitlint/config-conventional'] };

0 commit comments

Comments
 (0)