39 lines
963 B
YAML
39 lines
963 B
YAML
name: Publish to MCP Registry
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies & build
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
|
|
- name: Install mcp-publisher CLI
|
|
run: |
|
|
curl -sL "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
|
|
chmod +x mcp-publisher
|
|
sudo mv mcp-publisher /usr/local/bin/
|
|
|
|
- name: Authenticate with MCP Registry via GitHub OIDC
|
|
run: mcp-publisher login github-oidc
|
|
|
|
- name: Publish server.json to MCP Registry
|
|
run: mcp-publisher publish
|