Skip to main content
Glama

Ultra MCP

release.yml2.56 kB
name: Release to NPM on: push: branches: [ main ] tags: - 'v*' workflow_dispatch: permissions: contents: write packages: write jobs: release: runs-on: ubuntu-latest environment: npm-publisher steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Bun uses: oven-sh/setup-bun@v2 with: bun-version: latest - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '22' registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: bun install --frozen-lockfile - name: Run tests run: bun run test - name: Build project run: bun run build:all - name: Generate version from commit id: version run: | BASE_VERSION=$(node -p "require('./package.json').version") if [[ "${{ github.ref }}" == refs/tags/* ]]; then # For tags, use the base version as-is NEW_VERSION="${BASE_VERSION}" NPM_TAG="latest" else # For other pushes, use timestamped version COMMIT_HASH=$(git rev-parse --short HEAD) TIMESTAMP=$(date +%Y%m%d%H%M%S) NEW_VERSION="${BASE_VERSION}-${TIMESTAMP}-${COMMIT_HASH}" NPM_TAG="beta" fi echo "version=${NEW_VERSION}" >> $GITHUB_OUTPUT echo "npm_tag=${NPM_TAG}" >> $GITHUB_OUTPUT echo "Generated version: ${NEW_VERSION} with tag: ${NPM_TAG}" - name: Update package.json version run: | if [[ "${{ github.ref }}" != refs/tags/* ]]; then npm version ${{ steps.version.outputs.version }} --no-git-tag-version else echo "Skipping version update for tag release" fi - name: Publish to NPM run: npm publish --tag ${{ steps.version.outputs.npm_tag }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Create GitHub Release if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: tag_name: v${{ steps.version.outputs.version }} name: Release v${{ steps.version.outputs.version }} body: | Auto-release for commit ${{ github.sha }} Install with: `npx ultra-mcp@${{ steps.version.outputs.version }}` draft: false prerelease: true generate_release_notes: true

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/RealMikeChong/ultra-mcp'

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