feat: run the MCP server on mcp 2.x while keeping 1.x working (#537) #349
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Version Sync Check | |
| on: | |
| pull_request: | |
| paths: | |
| - '.claude-plugin/plugin.json' | |
| - '.claude-plugin/marketplace.json' | |
| - 'skills/*/SKILL.md' | |
| - 'tests/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-version-sync: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Verify version files are in sync | |
| run: | | |
| PLUGIN_VERSION=$(jq -r '.version' .claude-plugin/plugin.json) | |
| MARKETPLACE_VERSION=$(jq -r '.plugins[0].version' .claude-plugin/marketplace.json) | |
| echo "plugin.json version: $PLUGIN_VERSION" | |
| echo "marketplace.json version: $MARKETPLACE_VERSION" | |
| if [ "$PLUGIN_VERSION" != "$MARKETPLACE_VERSION" ]; then | |
| echo "" | |
| echo "[FAIL] ERROR: Version files are out of sync!" | |
| echo "" | |
| echo "Please update both:" | |
| echo " - .claude-plugin/plugin.json" | |
| echo " - .claude-plugin/marketplace.json" | |
| echo "" | |
| echo "to the same version number." | |
| exit 1 | |
| fi | |
| echo "" | |
| echo "[OK] Version files are in sync: $PLUGIN_VERSION" | |