Skip to main content
Glama

MCP API Server

by fikri2992
ci.yml4.61 kB
name: CI/CD Pipeline on: push: branches: [ main, develop ] pull_request: branches: [ main ] release: types: [ published ] jobs: test: name: Test runs-on: ubuntu-latest strategy: matrix: node-version: [18.x, 20.x, 22.x] steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Install dependencies run: npm ci - name: Run linting run: npm run lint continue-on-error: true - name: Build project run: npm run build - name: Run tests run: npm run test - name: Test CLI functionality run: | chmod +x dist/src/cli/cli-main.js node dist/src/cli/cli-main.js --help node dist/src/cli/cli-main.js generate --help - name: Upload test results uses: actions/upload-artifact@v4 if: always() with: name: test-results-${{ matrix.node-version }} path: | dist/ test-output/ retention-days: 7 build: name: Build and Package runs-on: ubuntu-latest needs: test if: github.event_name == 'push' || github.event_name == 'release' steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20.x' cache: 'npm' - name: Install dependencies run: npm ci - name: Build project run: npm run build - name: Make CLI executable run: chmod +x dist/src/cli/cli-main.js - name: Create package run: npm pack - name: Upload package artifact uses: actions/upload-artifact@v4 with: name: npm-package path: mcp-builder-*.tgz retention-days: 30 publish-npm: name: Publish to NPM runs-on: ubuntu-latest needs: [test, build] if: github.event_name == 'release' steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' cache: 'npm' - name: Install dependencies run: npm ci - name: Build project run: npm run build - name: Make CLI executable run: chmod +x dist/src/cli/cli-main.js - name: Run final tests run: npm run test - name: Publish to NPM run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} docker: name: Build Docker Image runs-on: ubuntu-latest needs: test if: github.event_name == 'push' || github.event_name == 'release' steps: - name: Checkout code uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub if: github.event_name == 'release' uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Extract metadata id: meta uses: docker/metadata-action@v5 with: images: | ${{ secrets.DOCKER_USERNAME }}/mcp-builder tags: | type=ref,event=branch type=ref,event=pr type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=raw,value=latest,enable={{is_default_branch}} - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64,linux/arm64 push: ${{ github.event_name == 'release' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max security: name: Security Scan runs-on: ubuntu-latest needs: test steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20.x' cache: 'npm' - name: Install dependencies run: npm ci - name: Run security audit run: npm audit --audit-level=moderate - name: Run dependency check run: npx audit-ci --moderate continue-on-error: 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/fikri2992/mcp0'

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