Skip to content

Commit 4d59d70

Browse files
KoblerSsjvans
andauthored
feat: Mcp registry (#95)
* chore: update .gitignore and add server.json configuration file * chore: update CHANGELOG for version 0.0.4 with MCP Registry support * chore: add MCP publishing workflow to release process * Update CHANGELOG.md Co-authored-by: sjvans <30337871+sjvans@users.noreply.github.com> * add publishing to MCP registry to release.yml * add version of @cap-js/mcp-server * check that versions match in release.yml * test check versions step * #environment: npm * 0.0.4 in server.json * cleanup --------- Co-authored-by: sjvans <30337871+sjvans@users.noreply.github.com> Co-authored-by: D050513 <sebastian.van.syckel@sap.com>
1 parent b8c8323 commit 4d59d70

4 files changed

Lines changed: 55 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,56 @@ jobs:
1212
runs-on: ubuntu-latest
1313
environment: npm
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-node@v5
1717
with:
1818
node-version: 24
1919
registry-url: https://registry.npmjs.org/
20+
2021
- name: run tests
2122
run: |
2223
npm i -g @sap/cds-dk
2324
npm i
2425
npm run lint
2526
npm run test
27+
2628
- name: get version
2729
id: package-version
2830
uses: martinbeentjes/npm-get-version-action@v1.2.3
31+
- name: check versions
32+
run: |
33+
version_in_server_json=$(jq -r '.packages[0].version' server.json)
34+
if [ "$version_in_server_json" != "${{ steps.package-version.outputs.current-version }}" ]; then
35+
echo "Version in server.json ($version_in_server_json) does not match package.json (${{
36+
steps.package-version.outputs.current-version
37+
}})"
38+
exit 1
39+
fi
40+
version_in_plugin_json=$(jq -r '.version' .claude-plugin/plugin.json)
41+
if [ "$version_in_plugin_json" != "${{ steps.package-version.outputs.current-version }}" ]; then
42+
echo "Version in .claude-plugin/plugin.json ($version_in_plugin_json) does not match package.json (${{
43+
steps.package-version.outputs.current-version
44+
}})"
45+
exit 1
46+
fi
47+
2948
- name: parse changelog
3049
id: parse-changelog
3150
uses: schwma/parse-changelog-action@v1.0.0
3251
with:
3352
version: '${{ steps.package-version.outputs.current-version }}'
53+
3454
- name: create a GitHub release
3555
uses: ncipollo/release-action@v1
3656
with:
3757
tag: 'v${{ steps.package-version.outputs.current-version }}'
3858
body: '${{ steps.parse-changelog.outputs.body }}'
3959
- run: npm publish --access public --provenance
60+
61+
- name: Download MCP Publisher
62+
run: |
63+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
64+
- name: Publish to MCP Registry
65+
run: |
66+
./mcp-publisher login github-oidc
67+
./mcp-publisher publish

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
99
### Added
1010

1111
- Support for MCP Bundles (Claude Desktop), Claude Code CLI plugin, and Claude Code MCP config
12+
- Support for [MCP Registry](https://github.blog/ai-and-ml/generative-ai/how-to-find-install-and-manage-mcp-servers-with-the-github-mcp-registry/)
1213

1314
## Version 0.0.3 - 2025-09-22
1415

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@cap-js/mcp-server",
3+
"mcpName": "io.github.cap-js/mcp-server",
34
"version": "0.0.4",
45
"description": "Model Context Protocol (MCP) server for AI-assisted development of CAP applications.",
56
"repository": {

server.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3+
"name": "io.github.cap-js/mcp-server",
4+
"description": "Model Context Protocol (MCP) server for AI-assisted development of CAP applications.",
5+
"repository": {
6+
"url": "https://github.com/cap-js/mcp-server",
7+
"source": "github"
8+
},
9+
"version": "1.0.0",
10+
"Icon": {
11+
"src": "https://github.com/cap-js/mcp-server/blob/main/icon.png"
12+
},
13+
"packages": [
14+
{
15+
"registryType": "npm",
16+
"identifier": "@cap-js/mcp-server",
17+
"version": "0.0.4",
18+
"transport": {
19+
"type": "stdio"
20+
}
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)