We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/prasadabhishek/photographi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
name: Publish to PyPI
on:
push:
tags:
- 'v*'
jobs:
test:
name: Run Verification Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Run tests
run: pytest tests/ -v
release-and-publish:
name: Release & Publish
needs: test
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write # Required for PyPI trusted publishing
contents: write # Required for creating GitHub releases
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
# Extract version from tag (e.g., v0.1.0 -> 0.1.0)
- name: Extract version
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
# Extract changelog section for this version
- name: Extract changelog
id: changelog
run: |
python scripts/extract_changelog.py ${{ steps.version.outputs.VERSION }} > release_notes.md
echo "Changelog extracted for v${{ steps.version.outputs.VERSION }}"
# Create GitHub Release with changelog
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
body_path: release_notes.md
draft: false
prerelease: false
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1