We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/1mcp-app/agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
name: Release
on:
workflow_call:
concurrency:
group: npm-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
HUSKY: 0
jobs:
publish:
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js and pnpm
uses: ./.github/actions/setup-node-pnpm
- name: Detect pre-release version
id: prerelease
run: |
VERSION="${{ github.ref_name }}"
if [[ "$VERSION" =~ (alpha|beta|rc|preview|next)-? ]] || [[ "$VERSION" =~ -(alpha|beta|rc|preview|next) ]]; then
echo "is_prerelease=true" >> $GITHUB_OUTPUT
echo "npm_tag=next" >> $GITHUB_OUTPUT
echo "Found pre-release version: $VERSION"
else
echo "is_prerelease=false" >> $GITHUB_OUTPUT
echo "npm_tag=latest" >> $GITHUB_OUTPUT
echo "Found stable version: $VERSION"
fi
- name: Build
run: pnpm build
- name: Publish to npm
run: pnpm publish --no-git-checks --access public --tag ${{ steps.prerelease.outputs.npm_tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Generate release changelog
uses: orhun/git-cliff-action@v4
id: git-cliff
with:
config: cliff-release.toml
args: -vv --latest --strip header
env:
GITHUB_REPO: ${{ github.repository }}
- name: Download all binary artifacts
uses: actions/download-artifact@v4
with:
path: binaries/
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref_name }}
body: ${{ steps.git-cliff.outputs.content }}
files: binaries/*/*
draft: false
prerelease: ${{ steps.prerelease.outputs.is_prerelease }}
token: ${{ secrets.GITHUB_TOKEN }}