Commit 9e3e39c
feat(site-template): build mcp-server sites, drop innerHTML, add main landmark and meta [skip version]
The shared template could not build an MCP-server repo: build_site.py exited 1
when .cursor-plugin/plugin.json was absent, which MCP servers do not ship, so
they hand-rolled their pages instead (T1). It also used innerHTML for the theme
and copy icons (C1), had no main landmark or skip link (A1), and emitted no
og:image when site.ogImage was unset (S1).
- build_site.py: plugin.json is now optional. When absent it falls back to
site.json + package.json for display name (humanized from the package name,
acronyms like MCP upper-cased), description, repository, version, and license.
site.json is the one required input.
- template.html.j2: theme-toggle and install copy-button icons are built with
DOMParser + importNode instead of innerHTML, matching the catalog's hardening.
Wrapped content in <main id="main"> with a visually-hidden skip link, and the
theme toggle now sets an aria-label reflecting the current state.
- template head: og:image defaults to the directory logo when site.ogImage is
unset, plus Twitter card tags and an optional canonical/og:url from
site.canonical.
- SETUP-PROMPT.md: documents the plugin.json fallback and updates troubleshooting.
Verified by building site-template/build_site.py against C:\Dev\screencast-mcp
with no synthesized plugin.json: it builds and renders (title and h1 "Screencast
MCP", 25-tool table, footer v0.8.12), the rendered output has zero innerHTML and
a populated themeIcon, and the source repo is untouched.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: TMHSDigital <TMHospitalityStrategies@gmail.com>1 parent 901d776 commit 9e3e39c
3 files changed
Lines changed: 115 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
261 | | - | |
| 262 | + | |
262 | 263 | | |
263 | | - | |
| 264 | + | |
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
267 | | - | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
237 | 303 | | |
238 | 304 | | |
239 | 305 | | |
| |||
262 | 328 | | |
263 | 329 | | |
264 | 330 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | 331 | | |
271 | 332 | | |
272 | 333 | | |
273 | 334 | | |
274 | 335 | | |
275 | | - | |
276 | 336 | | |
| 337 | + | |
277 | 338 | | |
278 | 339 | | |
279 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
250 | 257 | | |
251 | 258 | | |
252 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
253 | 264 | | |
254 | 265 | | |
255 | 266 | | |
| |||
259 | 270 | | |
260 | 271 | | |
261 | 272 | | |
| 273 | + | |
| 274 | + | |
262 | 275 | | |
263 | 276 | | |
264 | 277 | | |
| |||
283 | 296 | | |
284 | 297 | | |
285 | 298 | | |
| 299 | + | |
| 300 | + | |
286 | 301 | | |
287 | 302 | | |
288 | 303 | | |
| |||
550 | 565 | | |
551 | 566 | | |
552 | 567 | | |
| 568 | + | |
| 569 | + | |
553 | 570 | | |
554 | 571 | | |
555 | 572 | | |
| |||
604 | 621 | | |
605 | 622 | | |
606 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
607 | 637 | | |
608 | 638 | | |
| 639 | + | |
609 | 640 | | |
610 | 641 | | |
611 | | - | |
612 | | - | |
613 | | - | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
614 | 647 | | |
615 | 648 | | |
616 | 649 | | |
| |||
622 | 655 | | |
623 | 656 | | |
624 | 657 | | |
625 | | - | |
626 | | - | |
627 | | - | |
| 658 | + | |
628 | 659 | | |
| 660 | + | |
629 | 661 | | |
630 | 662 | | |
631 | 663 | | |
| |||
673 | 705 | | |
674 | 706 | | |
675 | 707 | | |
| 708 | + | |
676 | 709 | | |
677 | 710 | | |
678 | 711 | | |
679 | 712 | | |
680 | | - | |
| 713 | + | |
681 | 714 | | |
682 | 715 | | |
683 | 716 | | |
| |||
0 commit comments