fix(schematics): handle PMC download countdown page and ZIP-wrapped schematics
All checks were successful
Deploy to Docker / deploy (push) Successful in 1m21s

The download pipeline was getting HTML instead of the binary file because
PMC's /download/schematic/ returns a countdown confirmation page. Added
downloadSchematic() that uses a full browser flow (project visit → download
page → extract static URL → capture file). Also added ZIP extraction via
adm-zip for schematics wrapped in ZIP archives.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-17 01:33:56 +00:00
parent a739e44ecc
commit a30671c44c
4 changed files with 171 additions and 16 deletions

View File

@@ -10,6 +10,7 @@
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.27.1",
"adm-zip": "^0.5.16",
"express": "^4.21.2",
"minecraft-data": "^3.105.0",
"playwright": "^1.58.2",