File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ server.
2828- After generating the tool, call the tool to actually test it.
2929- When testing by calling the tool, prefer to not set the ` jsRender ` parameter.
3030
31+ # Releasing
32+
33+ - When bumping server versions, make sure all instances of the old server version are updated. These
34+ are in ` package.json ` , ` server.json ` and possibly in other files.
35+
3136# Documentation
3237
3338- Update readme with new tool, toolset and parameter information.
Original file line number Diff line number Diff line change @@ -11,56 +11,7 @@ concurrency:
1111 cancel-in-progress : false
1212
1313jobs :
14- semantic-release :
15- runs-on : ubuntu-latest
16- outputs :
17- released : ${{ steps.release.outputs.released }}
18- tag : ${{ steps.release.outputs.tag }}
19- permissions :
20- contents : write
21- issues : write
22- pull-requests : write
23- id-token : write
24-
25- steps :
26- - name : Checkout
27- uses : actions/checkout@v5
28- with :
29- fetch-depth : 0
30- persist-credentials : true
31-
32- - name : Setup Node.js
33- uses : actions/setup-node@v5
34- with :
35- node-version : ' lts/*'
36- registry-url : ' https://registry.npmjs.org'
37-
38- - name : Install dependencies
39- run : npm ci
40-
41- - name : Build
42- run : npm run build --if-present
43-
44- - name : Semantic release
45- id : release
46- env :
47- GH_TOKEN : ${{ secrets.GH_TOKEN }}
48- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
49- run : |
50- set -e
51- BEFORE=$(git describe --tags --abbrev=0 2>/dev/null || true)
52- npx semantic-release
53- AFTER=$(git describe --tags --abbrev=0 2>/dev/null || true)
54- if [ -n "$AFTER" ] && [ "$BEFORE" != "$AFTER" ]; then
55- echo "released=true" >> "$GITHUB_OUTPUT"
56- echo "tag=$AFTER" >> "$GITHUB_OUTPUT"
57- else
58- echo "released=false" >> "$GITHUB_OUTPUT"
59- fi
60-
6114 mcp-publish :
62- needs : semantic-release
63- if : needs.semantic-release.outputs.released == 'true'
6415 runs-on : ubuntu-latest
6516 permissions :
6617 id-token : write
7021 - name : Checkout tag
7122 uses : actions/checkout@v5
7223 with :
73- ref : ${{ needs.semantic-release.outputs.tag }}
24+ ref : main
7425
7526 - name : Setup Node.js
7627 uses : actions/setup-node@v5
Original file line number Diff line number Diff line change 1- # Contributing
1+ # Publishing
2+
3+ When After merging changes to the server, the following steps need to be done:
4+
5+ 1 . Server version bump (major/minor/patch)
6+
7+ 2 . Publish to MCP registry.
8+
9+ ## Server version bump
10+
11+ Publishing is done manually through a developer machine. This enabled bundling multiple
12+ features/fixes under one release.
13+
14+ When you want to publish a new version:
15+
16+ - Pull ` main ` locally.
17+
18+ - Bump the server version numbers in the following files: ` package.json ` , ` server.json ` . Note that
19+ there may be more files where the version number
20+
21+ - Choose between major, minor or patch bump accordingly.
22+
23+ - Run ` npm publish ` . This command should instruct you how to authenticate with NPM. The full command
24+ should look like this:
25+
26+ ```
27+ NPM_CONFIG__AUTHTOKEN=<one_time_token>npm publish --access public
28+ ```
You can’t perform that action at this time.
0 commit comments