Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
code-health.ymlโ€ข5.3 kB
--- name: Code Health on: push: branches: - main pull_request: permissions: contents: read jobs: run-tests: name: Run MongoDB tests if: github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository) strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] fail-fast: false runs-on: ${{ matrix.os }} steps: - uses: GitHubSecurityLab/actions-permissions/monitor@v1 if: matrix.os == 'ubuntu-latest' - uses: actions/checkout@v5 with: persist-credentials: false - uses: docker/setup-docker-action@v4 if: matrix.os == 'ubuntu-latest' name: Setup Docker Environment with: set-host: true - uses: actions/setup-node@v6 with: node-version-file: package.json cache: "npm" - name: Install dependencies run: npm ci - name: Run tests run: npm test env: SKIP_ATLAS_TESTS: "true" SKIP_ATLAS_LOCAL_TESTS: "true" - name: Upload test results if: always() && matrix.os == 'ubuntu-latest' uses: actions/upload-artifact@v5 with: name: test-results path: coverage/lcov.info run-atlas-tests: name: Run Atlas tests if: github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository) runs-on: ubuntu-latest steps: - uses: GitHubSecurityLab/actions-permissions/monitor@v1 - uses: actions/checkout@v5 with: persist-credentials: false - uses: actions/setup-node@v6 with: node-version-file: package.json cache: "npm" - name: Install dependencies run: npm ci - name: Run tests env: MDB_MCP_API_CLIENT_ID: ${{ secrets.TEST_ATLAS_CLIENT_ID }} MDB_MCP_API_CLIENT_SECRET: ${{ secrets.TEST_ATLAS_CLIENT_SECRET }} MDB_MCP_API_BASE_URL: ${{ vars.TEST_ATLAS_BASE_URL }} run: npm test -- tests/integration/tools/atlas/ - name: Upload test results uses: actions/upload-artifact@v5 if: always() with: name: atlas-test-results path: coverage/lcov.info run-atlas-local-tests: name: Run Atlas Local tests if: github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository) runs-on: ubuntu-latest steps: - uses: GitHubSecurityLab/actions-permissions/monitor@v1 - uses: actions/checkout@v5 with: persist-credentials: false - uses: actions/setup-node@v6 with: node-version-file: package.json cache: "npm" - name: Install dependencies run: npm ci - name: Run tests run: npm test -- tests/integration/tools/atlas-local/ - name: Upload test results uses: actions/upload-artifact@v5 if: always() with: name: atlas-local-test-results path: coverage/lcov.info coverage: name: Report Coverage if: always() && (github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository)) runs-on: ubuntu-latest needs: [run-tests, run-atlas-tests, run-atlas-local-tests] steps: - uses: actions/checkout@v5 with: persist-credentials: false - uses: actions/setup-node@v6 with: node-version-file: package.json cache: "npm" - name: Install dependencies run: npm ci - name: Download test results uses: actions/download-artifact@v6 with: name: test-results path: coverage/mongodb - name: Download atlas test results uses: actions/download-artifact@v6 with: name: atlas-test-results path: coverage/atlas - name: Download atlas local test results uses: actions/download-artifact@v6 with: name: atlas-local-test-results path: coverage/atlas-local - name: Merge coverage reports run: | npx -y lcov-result-merger@5.0.1 "coverage/*/lcov.info" "coverage/lcov.info" - name: Coveralls GitHub Action uses: coverallsapp/github-action@v2.3.6 with: file: coverage/lcov.info run-git-secrets: name: Run git secrets if: github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository) runs-on: ubuntu-latest steps: - uses: GitHubSecurityLab/actions-permissions/monitor@v1 - uses: actions/checkout@v5 with: persist-credentials: false - uses: actions/setup-node@v6 with: node-version-file: package.json cache: "npm" - name: Install dependencies run: | sudo apt-get install -y git-secrets - name: Run git-secrets run: git-secrets --register-aws && git-secrets --scan

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/mongodb-js/mongodb-mcp-server'

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