We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rekog-labs/MCP-Nest'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
name: Publish
on:
release:
types: [published]
permissions:
contents: read
id-token: write # Required for OIDC trusted publishing
jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.4
- name: Install dependencies
run: npm ci
- name: Build
run: bun run build
- name: Run tests
run: bun test
- name: Update package.json version
run: |
TAG_VERSION=${{ github.event.release.tag_name }}
# Remove 'v' prefix if present
TAG_VERSION=${TAG_VERSION#v}
npm version $TAG_VERSION --no-git-tag-version
- name: Publish to npm
run: |
TAG_VERSION=${{ github.event.release.tag_name }}
TAG_VERSION=${TAG_VERSION#v}
# Check if this is a pre-release version
if [[ "$TAG_VERSION" =~ (alpha|beta|rc|next|canary) ]]; then
echo "Publishing pre-release version with --tag next"
npm publish --provenance --access public --tag next
else
echo "Publishing stable version with --tag latest"
npm publish --provenance --access public --tag latest
fi