Skip to content

Commit 13d04aa

Browse files
committed
feat: add skills.json generation for MCP consumption
Add a bash script that generates dist/skills.json from all SKILL.md files across plugins. The MCP server fetches this at runtime to serve skills via its tool and resource APIs. CI workflow updated to regenerate on every push to main when plugins change. Ref: PF-4034
1 parent 5644d0f commit 13d04aa

3 files changed

Lines changed: 254 additions & 4 deletions

File tree

.github/workflows/update-plugins-md.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update PLUGINS.md
1+
name: Update generated files
22

33
on:
44
workflow_dispatch:
@@ -19,11 +19,12 @@ jobs:
1919
- run: git remote set-url origin git@github.com:patternfly/ai-helpers.git
2020
- run: |
2121
bash scripts/generate-plugins-md.sh
22-
git diff --quiet PLUGINS.md README.md || {
22+
bash scripts/generate-skills-json.sh
23+
git diff --quiet PLUGINS.md README.md dist/skills.json || {
2324
git config user.name "github-actions[bot]"
2425
git config user.email "github-actions[bot]@users.noreply.github.com"
25-
git add PLUGINS.md README.md
26-
git commit -m "docs: auto-update PLUGINS.md and README plugin table"
26+
git add PLUGINS.md README.md dist/skills.json
27+
git commit -m "docs: auto-update PLUGINS.md, README plugin table, and skills index"
2728
git pull --rebase
2829
git push
2930
}

0 commit comments

Comments
 (0)