Skip to content

0.5.0: structured output, annotations and titles for every tool #8

0.5.0: structured output, annotations and titles for every tool

0.5.0: structured output, annotations and titles for every tool #8

Workflow file for this run

name: Publish to npm and MCP Registry
# Publishing runs entirely on GitHub's runners — nothing is installed locally.
# Trigger: push a version tag, e.g. git tag v0.1.3 && git push origin v0.1.3
on:
push:
tags: ["v*"]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write # OIDC — lets the MCP Registry verify this run without a token
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
# Publish the npm package (skips gracefully if this version already exists)
- name: Publish to npm
run: npm publish --access public || echo "npm version already published, continuing"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install mcp-publisher
run: |
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
- name: Authenticate to MCP Registry (OIDC)
run: ./mcp-publisher login github-oidc
- name: Publish server to MCP Registry
run: ./mcp-publisher publish