Skip to main content
Glama

Random Number MCP

by zazencodes
MIT License
42
  • Apple
publish.yml2.13 kB
name: Test and Publish on: push: branches: [ main ] pull_request: branches: [ main ] release: types: [ published ] jobs: test: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v3 with: version: "latest" - name: Set up Python ${{ matrix.python-version }} run: uv python install ${{ matrix.python-version }} - name: Install dependencies run: uv sync --dev - name: Run linting run: | uv run ruff check uv run ruff format --check - name: Run type checking run: uv run mypy src/ - name: Run tests run: uv run pytest --cov=random_number_mcp --cov-report=xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 if: matrix.python-version == '3.11' with: file: ./coverage.xml test-installation: runs-on: ubuntu-latest needs: test steps: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v3 with: version: "latest" - name: Set up Python run: uv python install 3.11 - name: Build package run: uv build - name: Test installation run: | uv run --with dist/*.whl random-number-mcp --help || true # Note: --help may not exist, but installation should work publish: if: github.event_name == 'release' runs-on: ubuntu-latest needs: [test, test-installation] environment: name: pypi url: https://pypi.org/project/random-number-mcp permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v3 with: version: "latest" - name: Set up Python run: uv python install 3.11 - name: Build package run: uv build - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: verbose: 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/zazencodes/random-number-mcp'

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