Skip to content

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

chore: refactor MCP registry workflow and update server.json (#1354)

Enes Gules7a04a0484192
diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/mcp-registry.yml
similarity index 100%
rename from .github/workflows/publish-mcp.yml
rename to .github/workflows/mcp-registry.yml
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 52649590..6f944542 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -12,7 +12,6 @@ jobs:
name: Release
runs-on: ubuntu-latest
permissions:
- id-token: write # Required for OIDC authentication with MCP Registry
contents: write
pull-requests: write
steps:
@@ -49,30 +48,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
-
- - name: Check if MCP was published
- id: check-mcp
- if: steps.changesets.outputs.published == 'true'
- run: |
- PUBLISHED='${{ steps.changesets.outputs.publishedPackages }}'
- if echo "$PUBLISHED" | jq -e '.[] | select(.name == "@upstash/context7-mcp")' > /dev/null; then
- VERSION=$(echo "$PUBLISHED" | jq -r '.[] | select(.name == "@upstash/context7-mcp") | .version')
- echo "mcp_published=true" >> $GITHUB_OUTPUT
- echo "mcp_version=$VERSION" >> $GITHUB_OUTPUT
- fi
-
- - name: Update server.json
- if: steps.check-mcp.outputs.mcp_published == 'true'
- run: |
- VERSION="${{ steps.check-mcp.outputs.mcp_version }}"
- echo $(jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json) > server.json
- git add server.json
- git commit -m "chore: update server.json to v$VERSION" || true
- git push || true
-
- - name: Publish to MCP Registry
- if: steps.check-mcp.outputs.mcp_published == 'true'
- run: |
- curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.4.0/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
- ./mcp-publisher login github-oidc
- ./mcp-publisher publish
diff --git a/public/cover.png b/public/cover.png
index 760a6ac1..ff708289 100644
Binary files a/public/cover.png and b/public/cover.png differ
diff --git a/server.json b/server.json
index 7b9057da..c8f03dcb 100644
--- a/server.json
+++ b/server.json
@@ -34,7 +34,7 @@
},
{
"registryType": "mcpb",
- "identifier": "https://raw.githubusercontent.com/upstash/context7/master/packages/mcp/mcpb/context7.mcpb",
+ "identifier": "https://github.com/upstash/context7/blob/master/packages/mcp/mcpb/context7.mcpb",
"version": "1.0.1",
"fileSha256": "aea76f179ceb92d22c289147c9d8343fb558d6dec93b144c9794e99239bb8194",
"transport": {