From 6790217530be2e35838e0325002e015f72af7021 Mon Sep 17 00:00:00 2001 From: fOuttaMyPaint <154358121+TMHSDigital@users.noreply.github.com> Date: Sun, 14 Jun 2026 14:14:34 -0400 Subject: [PATCH] fix: scaffold emits type-correct workflow set and derives stale literals mcp-server repos no longer get the cursor-plugin-specific validate.yml and release.yml. Per standards/ci-cd.md, validate.yml's checks all assume a plugin.json and publish.yml replaces release.yml, so the emitted set now matches standards/drift-checker.config.json exactly (drift-check, stale, publish) plus the optional-for-both pages and label-sync. Also derive the LICENSE copyright year from the current UTC year instead of a hardcoded 2026, make plugin.json keywords type-aware (drop the stock "mcp" keyword unless the repo has an MCP server), add PyYAML to the CI test environment so the YAML-validating tests stop silently importorskip-ing, and add a born-green integration test that renders each type and asserts detected type, empty drift, current markers/pins, README counts, and the exact workflow set. Bumps VERSION 1.16.2 -> 1.16.3. Signed-off-by: fOuttaMyPaint <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor --- .github/workflows/validate.yml | 9 +- VERSION | 2 +- requirements-test.txt | 7 + scaffold/create-tool.py | 17 +- scaffold/templates/LICENSE.j2 | 6 +- scaffold/templates/plugin.json.j2 | 4 +- scaffold/templates/release.mcp.yml.j2 | 72 -------- scaffold/templates/validate.mcp.yml.j2 | 28 --- tests/test_scaffold_born_green.py | 243 +++++++++++++++++++++++++ 9 files changed, 275 insertions(+), 113 deletions(-) delete mode 100644 scaffold/templates/release.mcp.yml.j2 delete mode 100644 scaffold/templates/validate.mcp.yml.j2 create mode 100644 tests/test_scaffold_born_green.py diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 0c83388..e87eb64 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -204,9 +204,12 @@ jobs: grep -q '