Skip to main content
Glama
meilisearch

Meilisearch MCP Server

Official
by meilisearch
publish.yml3.36 kB
name: Publish to PyPI and Docker Hub on: push: branches: - main jobs: check-version: runs-on: ubuntu-latest outputs: version_changed: ${{ steps.check_version.outputs.version_changed }} current_version: ${{ steps.get_version.outputs.current_version }} steps: - uses: actions/checkout@v4 with: fetch-depth: 2 - name: Get current version id: get_version run: | CURRENT_VERSION=$(grep "version = " pyproject.toml | cut -d'"' -f2) echo "current_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT - name: Check if version changed id: check_version run: | if git diff HEAD^ HEAD -- pyproject.toml | grep -q "version = "; then echo "version_changed=true" >> $GITHUB_OUTPUT else echo "version_changed=false" >> $GITHUB_OUTPUT fi build-and-publish-pypi: needs: check-version if: needs.check-version.outputs.version_changed == 'true' runs-on: ubuntu-latest environment: name: pypi url: https://pypi.org/p/meilisearch-mcp permissions: id-token: write # IMPORTANT: mandatory for trusted publishing steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install build dependencies 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 with: verbose: true print-hash: true build-and-publish-docker-latest: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Log in to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push latest Docker image uses: docker/build-push-action@v6 with: context: . platforms: linux/amd64,linux/arm64 push: true tags: getmeili/meilisearch-mcp:latest cache-from: type=gha cache-to: type=gha,mode=max build-and-publish-docker-versioned: needs: check-version if: needs.check-version.outputs.version_changed == 'true' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Log in to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push versioned Docker image uses: docker/build-push-action@v6 with: context: . platforms: linux/amd64,linux/arm64 push: true tags: getmeili/meilisearch-mcp:${{ needs.check-version.outputs.current_version }} cache-from: type=gha cache-to: type=gha,mode=max

Latest Blog Posts

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/meilisearch/meilisearch-mcp'

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