Skip to content

Commit ac9bc13

Browse files
committed
Switch MCP Publisher integration to npm package
- Replace manual installation of MCP Publisher CLI via curl with npm-based installation - Update associated commands to use `mcp-publisher` directly instead of local binary
1 parent ae6b370 commit ac9bc13

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,18 +204,17 @@ jobs:
204204
- name: Install MCP Publisher CLI
205205
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
206206
run: |
207-
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
208-
chmod +x mcp-publisher
207+
npm install -g @modelcontextprotocol/publisher
209208
210209
- name: Login to MCP Registry (GitHub OIDC)
211210
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
212211
run: |
213-
./mcp-publisher login github-oidc
212+
mcp-publisher login github-oidc
214213
215214
- name: Publish to MCP Registry
216215
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
217216
run: |
218-
./mcp-publisher publish server.json
217+
mcp-publisher publish server.json
219218
220219
- name: Create GitHub Release
221220
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)