Skip to main content
Glama
publish.yaml1.6 kB
name: Release and Publish to NPM on: push: tags: - 'v[0-9]+.[0-9]+.[0-9]+' jobs: release-and-publish: runs-on: ubuntu-latest # These permissions are essential for the workflow to function correctly. # 'contents: write' is now needed for the GitHub CLI to create the release. # 'id-token: write' is REQUIRED for generating provenance with npm. permissions: contents: write id-token: write steps: - uses: actions/checkout@v4 - name: Setup and Install uses: ./.github/actions/setup-and-install - name: Build run: pnpm build - name: Update MCP server.json with version run: | VERSION=$(node -p "require('./package.json').version") sed "s/{{VERSION}}/$VERSION/g" server.json > server.json.tmp mv server.json.tmp server.json - name: Create GitHub Release run: gh release create "${{ github.ref_name }}" --generate-notes env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish to NPM run: pnpm publish --provenance --access public --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish to MCP Registry 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 chmod +x mcp-publisher ./mcp-publisher login github-oidc ./mcp-publisher publish

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/p1va/symbols-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server