From 298f3cb1fd03c2e13056b632f7247a2aad7264fa Mon Sep 17 00:00:00 2001 From: shaahji Date: Mon, 26 Oct 2026 13:12:34 -0700 Subject: [PATCH] Add manual workflow to regenerate MCP lockfile from PyPI Upgrade the MCP dependency, validate the generated lockfile, and upload it as an artifact using a workflow_dispatch-only workflow. --- .github/workflows/regenerate-mcp-lock.yml | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/regenerate-mcp-lock.yml diff --git a/.github/workflows/regenerate-mcp-lock.yml b/.github/workflows/regenerate-mcp-lock.yml new file mode 100644 index 000000000..92c4f0e3b --- /dev/null +++ b/.github/workflows/regenerate-mcp-lock.yml @@ -0,0 +1,38 @@ +name: "Regenerate MCP Lockfile" + +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + regenerate: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Checkout Code + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Setup python + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: "3.12" + + - name: Install uv + run: python -m pip install --index-url https://pypi.org/simple uv + + - name: Regenerate lockfile from PyPI + run: | + uv lock --directory mcp --python 3.12 --default-index https://pypi.org/simple --upgrade-package mcp + uv lock --directory mcp --python 3.12 --default-index https://pypi.org/simple --check + + - name: Upload generated lockfile + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: mcp-uv-lock + path: mcp/uv.lock + if-no-files-found: error