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.ymlsimilarity index 100%rename from .github/workflows/publish-mcp.ymlrename to .github/workflows/mcp-registry.ymldiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 52649590..6f944542 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -12,7 +12,6 @@ jobs:name: Releaseruns-on: ubuntu-latestpermissions:- id-token: write # Required for OIDC authentication with MCP Registrycontents: writepull-requests: writesteps:@@ -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 publishdiff --git a/public/cover.png b/public/cover.pngindex 760a6ac1..ff708289 100644Binary files a/public/cover.png and b/public/cover.png differdiff --git a/server.json b/server.jsonindex 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": {