Skip to content

Context7 Platform -- Up-to-date docs for AI agents

fix: remove 'v' prefix from version input in MCP publish workflow

enesgules326c1e876361
diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml
index 5ee03109..ccb13c7a 100644
--- a/.github/workflows/publish-mcp.yml
+++ b/.github/workflows/publish-mcp.yml
@@ -28,6 +28,8 @@ jobs:
run: |
if [ -n "${{ inputs.version }}" ]; then
VERSION="${{ inputs.version }}"
+ # Remove 'v' prefix if it exists
+ VERSION="${VERSION#v}"
else
VERSION=$(node -p "require('./package.json').version")
fi