Skip to main content
Glama

STAC MCP Server

by BnJam
ci.yml3.23 kB
name: CI on: push: branches: [main] pull_request: # Prevent duplicate parallel runs for same branch/PR (e.g. when pushing multiple commits in succession to a PR) # or when a PR is opened while a push to the same branch is being processed. # Cancels any in-progress runs for the same branch/PR when a new run is triggered. # See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: test: name: Tests (Python ${{ matrix.python-version }}) runs-on: ubuntu-latest permissions: contents: write strategy: matrix: python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install uv uses: astral-sh/setup-uv@v3 - name: Sync dependencies (dev + extras) run: | uv sync --all-extras --dev - name: Lint run: | uv run ruff format stac_mcp/ tests/ uv run ruff check stac_mcp/ tests/ --fix --no-cache - name: Build (hatchling via uv) to validate packaging run: | uv build - name: Tests + coverage run: | uv run coverage run -m pytest -v uv run coverage xml uv run python scripts/generate_coverage_badge.py coverage.xml coverage-badge.svg uv run coverage report - name: Check coverage threshold run: | uv run coverage report --fail-under=85 - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: coverage-artifacts-${{ matrix.python-version }} path: | coverage.xml coverage-badge.svg - name: Commit badge (main only) if: github.ref == 'refs/heads/main' && matrix.python-version == '3.12' run: | if git diff --quiet coverage-badge.svg 2>/dev/null; then echo 'No badge changes' else git config user.name 'github-actions' git config user.email 'actions@github.com' git add coverage-badge.svg git commit -m 'chore(ci): update coverage badge' git pull --rebase origin main git push fi codeql: name: CodeQL Analysis runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: ["python"] steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Python 3.12 uses: actions/setup-python@v5 with: python-version: "3.12" - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - name: Install uv uses: astral-sh/setup-uv@v3 - name: Install dependencies (runtime only) run: | uv sync - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3

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/BnJam/stac-mcp'

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