We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/joe-watkins/wcag-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
name: Check for WCAG Updates
on:
schedule:
# Run weekly on Mondays at 9am UTC
- cron: '0 9 * * 1'
workflow_dispatch: # Allow manual triggers from GitHub UI
jobs:
check-updates:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Check for W3C WCAG submodule updates
id: check
run: |
cd data/wcag
git fetch origin
LOCAL=$(git rev-parse HEAD)
REMOTE=$(git rev-parse origin/main)
if [ "$LOCAL" != "$REMOTE" ]; then
echo "updates=true" >> $GITHUB_OUTPUT
echo "✅ WCAG updates available!"
echo "Local: $LOCAL"
echo "Remote: $REMOTE"
else
echo "updates=false" >> $GITHUB_OUTPUT
echo "✅ Already up to date"
fi
- name: Install dependencies
if: steps.check.outputs.updates == 'true'
run: npm ci
- name: Update submodule and rebuild data
if: steps.check.outputs.updates == 'true'
run: |
echo "Updating WCAG submodule..."
cd data/wcag
git checkout main
git pull origin main
cd ../..
echo "Rebuilding WCAG data..."
npm run build
- name: Check for changes
if: steps.check.outputs.updates == 'true'
id: git-check
run: |
git diff --exit-code data/wcag.json || echo "changes=true" >> $GITHUB_OUTPUT
- name: Create Pull Request
if: steps.check.outputs.updates == 'true' && steps.git-check.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v6
with:
commit-message: 'chore: update WCAG data from W3C repository'
title: '🔄 Update WCAG Data'
body: |
## Automated WCAG Data Update
This PR updates the WCAG data from the official W3C repository.
### Changes
- Updated `data/wcag` submodule to latest commit
- Rebuilt `data/wcag.json` with latest data
- Parsed latest Understanding documentation
### What to Review
- Check that the data looks correct
- Verify any new success criteria are properly parsed
- Ensure Understanding documentation is complete
---
**This PR was automatically generated by the weekly WCAG update workflow.**
branch: update-wcag-data
delete-branch: true
labels: |
automated
data-update
- name: Summary
if: steps.check.outputs.updates == 'true'
run: |
if [ "${{ steps.git-check.outputs.changes }}" == "true" ]; then
echo "✅ Created PR with updated WCAG data"
else
echo "ℹ️ Submodule updated but no data changes detected"
fi