Skip to content

Add README.md for MCP server documentation #13

Add README.md for MCP server documentation

Add README.md for MCP server documentation #13

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract version from tag
id: version
run: echo "version=${GITHUB_REF#refs/tags/v}" >> "$GITHUB_OUTPUT"
- name: Extract changelog for this version
id: changelog
run: |
version="${{ steps.version.outputs.version }}"
# Extract the section for this version from CHANGELOG.md
changelog=$(awk "/^## \[${version}\]/{found=1; next} /^## \[/{if(found) exit} found{print}" CHANGELOG.md)
if [ -z "$changelog" ]; then
changelog="Release v${version}"
fi
# Write to file for gh release
echo "$changelog" > release_notes.md
cat release_notes.md
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
cache-dependency-path: mcp-server/package-lock.json
- name: Build MCP server
working-directory: mcp-server
run: |
npm ci
npm run build
- name: Build NPM package
working-directory: packages/mobile-dev-tools
run: |
npm ci
npm run build
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: requirements-test.txt
- name: Run tests
run: |
pip install -r requirements-test.txt
pytest tests/ -v --tb=short
- name: Count components
id: counts
run: |
skills=$(ls -d skills/*/SKILL.md 2>/dev/null | wc -l)
rules=$(ls rules/*.mdc 2>/dev/null | wc -l)
echo "skills=$skills" >> "$GITHUB_OUTPUT"
echo "rules=$rules" >> "$GITHUB_OUTPUT"
- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: |
version="${{ steps.version.outputs.version }}"
skills="${{ steps.counts.outputs.skills }}"
rules="${{ steps.counts.outputs.rules }}"
title="v${version} - ${skills} skills, ${rules} rules"
gh release create "v${version}" \
--title "$title" \
--notes-file release_notes.md