")
open(p("script.py"),"w").write("print('mcp test')\n")
open(p("contact.vcf"),"w").write("BEGIN:VCARD\nVERSION:3.0\nFN:Max Mustermann\nEMAIL:max@example.com\nEND:VCARD\n")
open(p("event.ics"),"w").write("BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nUID:t1\nSUMMARY:Test\nDTSTART:20260701T100000Z\nEND:VEVENT\nEND:VCALENDAR\n")
# ---- Archive ----
with zipfile.ZipFile(p("archive.zip"),"w") as z: z.write(p("notes.txt"),"notes.txt"); z.write(p("data.csv"),"data.csv")
with tarfile.open(p("backup.tar.gz"),"w:gz") as t: t.add(p("readme.md"),"readme.md")
os.remove(p("scan_src.png"))
print("Generiert:")
for f in sorted(os.listdir(D)): print(f" {os.path.getsize(p(f)):>8} {f}")