Skip to content

Commit 6168349

Browse files
committed
Switch MCP Publisher installation back to manual method
- Replace npm-based installation of MCP Publisher CLI with curl-based manual installation - Update associated commands to use local binary (`./mcp-publisher`) instead of global command
1 parent ac9bc13 commit 6168349

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,18 @@ jobs:
204204
- name: Install MCP Publisher CLI
205205
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
206206
run: |
207-
npm install -g @modelcontextprotocol/publisher
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
208209
209210
- name: Login to MCP Registry (GitHub OIDC)
210211
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
211212
run: |
212-
mcp-publisher login github-oidc
213+
./mcp-publisher login github-oidc
213214
214215
- name: Publish to MCP Registry
215216
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'
216217
run: |
217-
mcp-publisher publish server.json
218+
./mcp-publisher publish
218219
219220
- name: Create GitHub Release
220221
if: steps.version-check.outputs.version_changed == 'true' && github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)