Skip to main content
Glama

FastAPI OpenAPI MCP Server

by jason-chang
release.yml2.52 kB
name: Release on: push: tags: - 'v*' jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python 3.13 uses: actions/setup-python@v4 with: python-version: '3.13' - name: Install uv uses: astral-sh/setup-uv@v3 with: version: "latest" - name: Install dependencies run: | uv sync --dev - name: Run tests run: | uv run pytest --cov=openapi_mcp --cov-report=term-missing build-and-publish: runs-on: ubuntu-latest needs: test if: startsWith(github.ref, 'refs/tags/') steps: - uses: actions/checkout@v4 - name: Set up Python 3.13 uses: actions/setup-python@v4 with: python-version: '3.13' - name: Install uv uses: astral-sh/setup-uv@v3 with: version: "latest" - name: Install build dependencies run: | uv sync --dev - name: Build package run: | uv build - name: Check package run: | uv run twine check dist/* - name: Generate release notes id: release_notes run: | # Extract version from tag VERSION=${GITHUB_REF#refs/tags/v} echo "version=$VERSION" >> $GITHUB_OUTPUT # Generate release notes from CHANGELOG if [ -f CHANGELOG.md ]; then # Extract the relevant section from CHANGELOG awk "/^## \[$VERSION\]/{flag=1; next} /^## \[/{flag=0} flag" CHANGELOG.md > release_notes.md || echo "No changelog entry for $VERSION" > release_notes.md else echo "No CHANGELOG.md found" > release_notes.md fi - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.ref_name }} name: Release ${{ steps.release_notes.outputs.version }} body_path: release_notes.md files: dist/* draft: false prerelease: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} packages-dir: dist/ - name: Publish to Test PyPI (for testing) uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository-url: https://test.pypi.org/legacy/ packages-dir: dist/ 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/jason-chang/fastapi-openapi-mcp'

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