Skip to content

Commit 1fd4b3f

Browse files
committed
New feature: Publishes to MCP Registry.
Adds automated publishing to the Model Context Protocol (MCP) Registry. This includes installing the MCP publisher tool, updating the server.json file with the correct version, logging into the registry, and publishing the package.
1 parent c3686a7 commit 1fd4b3f

File tree

4 files changed

+182
-13
lines changed

4 files changed

+182
-13
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,23 @@ jobs:
9090
run: npm publish
9191
env:
9292
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
93+
94+
- name: Install MCP Publisher
95+
run: |
96+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
97+
98+
- name: Update server.json version
99+
run: |
100+
# Extract version from the release tag (remove 'v' prefix if present)
101+
VERSION=${GITHUB_REF#refs/tags/}
102+
VERSION=${VERSION#v}
103+
echo "Updating server.json version to: $VERSION"
104+
105+
# Update server.json version to match the release
106+
jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > tmp && mv tmp server.json
107+
108+
- name: Login to MCP Registry
109+
run: ./mcp-publisher login github-oidc
110+
111+
- name: Publish to MCP Registry
112+
run: ./mcp-publisher publish

package-lock.json

Lines changed: 136 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "sfcc-dev-mcp",
33
"version": "1.0.14",
44
"description": "MCP server for Salesforce B2C Commerce Cloud development assistance including logs, debugging, and development tools",
5+
"mcpName": "io.github.taurgis/sfcc-dev-mcp",
56
"main": "dist/index.js",
67
"bin": {
78
"sfcc-dev-mcp": "./dist/main.js"
@@ -36,6 +37,7 @@
3637
"test:webdav:start": "cd tests/servers/webdav && npm start",
3738
"test:webdav:dev": "cd tests/servers/webdav && npm run dev",
3839
"test:webdav": "jest --testPathPatterns=mock-webdav-server",
40+
"validate:server-json": "node -e \"const {readFileSync} = require('fs'); const serverJson = JSON.parse(readFileSync('./server.json', 'utf8')); console.log('server.json is valid JSON'); console.log('Server name:', serverJson.name); console.log('Version:', serverJson.version); console.log('Package identifier:', serverJson.packages[0].identifier);\"",
3941
"lint": "eslint .",
4042
"lint:fix": "eslint . --fix",
4143
"lint:check": "eslint . --max-warnings 0",
@@ -68,6 +70,8 @@
6870
"@types/eslint": "9.6.1",
6971
"@types/jest": "30.0.0",
7072
"@types/node": "24.4.0",
73+
"ajv": "^8.17.1",
74+
"ajv-formats": "^3.0.1",
7175
"eslint": "9.35.0",
7276
"husky": "9.1.7",
7377
"jest": "30.1.3",

server.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
3+
"name": "io.github.taurgis/sfcc-dev-mcp",
4+
"description": "MCP server for Salesforce B2C Commerce Cloud development assistance",
5+
"status": "active",
6+
"repository": {
7+
"url": "https://github.com/taurgis/sfcc-dev-mcp",
8+
"source": "github"
9+
},
10+
"version": "1.0.14",
11+
"packages": [
12+
{
13+
"registry_type": "npm",
14+
"registry_base_url": "https://registry.npmjs.org",
15+
"identifier": "sfcc-dev-mcp",
16+
"version": "1.0.14",
17+
"transport": {
18+
"type": "stdio"
19+
}
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)