Add danbooru-mcp auto-start, git sync, status API endpoints, navbar status indicators, and LLM format retry

- app.py: add subprocess import; add _ensure_mcp_repo() to clone/pull
  danbooru-mcp from https://git.liveaodh.com/aodhan/danbooru-mcp into
  tools/danbooru-mcp/ at startup; add ensure_mcp_server_running() which
  calls _ensure_mcp_repo() then starts the Docker container if not running;
  add GET /api/status/comfyui and GET /api/status/mcp health endpoints;
  fix call_llm() to retry up to 3 times on unexpected response format
  (KeyError/IndexError), logging the raw response and prompting the LLM
  to respond with valid JSON before each retry
- templates/layout.html: add ComfyUI and MCP status dot indicators to
  navbar; add polling JS that checks both endpoints on load and every 30s
- static/style.css: add .service-status, .status-dot, .status-ok,
  .status-error, .status-checking styles and status-pulse keyframe animation
- .gitignore: add tools/ to exclude the cloned danbooru-mcp repo
This commit is contained in:
Aodhan Collins
2026-03-03 00:57:27 +00:00
parent 0b8802deb5
commit ae7ba961c1
1194 changed files with 17475 additions and 3268 deletions

View File

@@ -22,7 +22,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/Arcade_-_Illustrious.safetensors",
"lora_weight": 0.7,
"lora_triggers": "4rc4d3"
"lora_triggers": "4rc4d3",
"lora_weight_min": 0.7,
"lora_weight_max": 0.7
},
"tags": [
"indoors",
@@ -34,4 +36,4 @@
"neon_lights",
"retro_artstyle"
]
}
}

View File

@@ -19,7 +19,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/ArcadeV2.safetensors",
"lora_weight": 0.7,
"lora_triggers": "4rc4d3"
"lora_triggers": "4rc4d3",
"lora_weight_min": 0.7,
"lora_weight_max": 0.7
},
"tags": [
"arcade",
@@ -33,4 +35,4 @@
"stool",
"dim_lighting"
]
}
}

View File

@@ -21,7 +21,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/Backstage.safetensors",
"lora_weight": 0.8,
"lora_triggers": "b4ckst4g3"
"lora_triggers": "b4ckst4g3",
"lora_weight_min": 0.8,
"lora_weight_max": 0.8
},
"tags": [
"backstage",
@@ -33,4 +35,4 @@
"crowd",
"microphone_stand"
]
}
}

View File

@@ -23,7 +23,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/Barbie_b3dr00m-i.safetensors",
"lora_weight": 1.0,
"lora_triggers": "barbie bedroom"
"lora_triggers": "barbie bedroom",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"barbie_(franchise)",
@@ -46,4 +48,4 @@
"tiara",
"ribbon"
]
}
}

View File

@@ -1,17 +1,28 @@
{
"scene_id": "bedroom_(pink)",
"description": "A pink bedroom with a girly theme.",
"scene": {
"background": "wallpaper",
"foreground": "plush carpet",
"furniture": ["bed", "desk", "chair", "wardrobe", "window"],
"colors": ["pink", "white"],
"lighting": "soft",
"theme": "girly, cute"
},
"lora": {
"lora_name": "Illustrious/Backgrounds/Girl_b3dr00m-i.safetensors",
"lora_weight": 1.0,
"lora_triggers": "Girl_b3dr00m-i"
}
}
"scene_id": "bedroom_(pink)",
"description": "A pink bedroom with a girly theme.",
"scene": {
"background": "wallpaper",
"foreground": "plush carpet",
"furniture": [
"bed",
"desk",
"chair",
"wardrobe",
"window"
],
"colors": [
"pink",
"white"
],
"lighting": "soft",
"theme": "girly, cute"
},
"lora": {
"lora_name": "Illustrious/Backgrounds/Girl_b3dr00m-i.safetensors",
"lora_weight": 1.0,
"lora_triggers": "Girl_b3dr00m-i",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
}
}

View File

@@ -21,7 +21,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/bedroom_0f_4_succubus-i.safetensors",
"lora_weight": 1.0,
"lora_triggers": "bedroom 0f 4 succubus"
"lora_triggers": "bedroom 0f 4 succubus",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"indoors",
@@ -40,4 +42,4 @@
"skull",
"incense"
]
}
}

View File

@@ -23,7 +23,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/Before_the_Chalkboard_IL.safetensors",
"lora_weight": 1.0,
"lora_triggers": "standing beside desk, chalkboard, indoors"
"lora_triggers": "standing beside desk, chalkboard, indoors",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"classroom",
@@ -37,4 +39,4 @@
"standing",
"school_uniform"
]
}
}

View File

@@ -19,7 +19,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/Canopy_Bed.safetensors",
"lora_weight": 0.8,
"lora_triggers": "c4nopy"
"lora_triggers": "c4nopy",
"lora_weight_min": 0.8,
"lora_weight_max": 0.8
},
"tags": [
"indoors",
@@ -32,4 +34,4 @@
"soft_lighting",
"no_humans"
]
}
}

View File

@@ -24,7 +24,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/Cozy_bedroom_-_Illustrious.safetensors",
"lora_weight": 0.8,
"lora_triggers": "cozybedroom"
"lora_triggers": "cozybedroom",
"lora_weight_min": 0.8,
"lora_weight_max": 0.8
},
"tags": [
"modern",
@@ -34,4 +36,4 @@
"bright",
"dutch_angle"
]
}
}

View File

@@ -17,7 +17,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/ForestILL.safetensors",
"lora_weight": 0.75,
"lora_triggers": "forest, tree, dark_background"
"lora_triggers": "forest, tree, dark_background",
"lora_weight_min": 0.75,
"lora_weight_max": 0.75
},
"tags": [
"forest",
@@ -33,4 +35,4 @@
"outdoors",
"nature"
]
}
}

View File

@@ -21,7 +21,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/Girl_b3dr00m-i.safetensors",
"lora_weight": 1.0,
"lora_triggers": "Girl b3dr00m"
"lora_triggers": "Girl b3dr00m",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"indoors",
@@ -36,4 +38,4 @@
"string_lights",
"pastel_colors"
]
}
}

View File

@@ -17,7 +17,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/glass_block_wall_il_2_d16.safetensors",
"lora_weight": 1.0,
"lora_triggers": "glass block wall"
"lora_triggers": "glass block wall",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"glass_wall",
@@ -27,4 +29,4 @@
"blurry_background",
"wall"
]
}
}

View File

@@ -21,7 +21,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/homeless_ossan_V2.safetensors",
"lora_weight": 0.8,
"lora_triggers": "homeless_ossan"
"lora_triggers": "homeless_ossan",
"lora_weight_min": 0.8,
"lora_weight_max": 0.8
},
"tags": [
"dutch_angle",
@@ -29,4 +31,4 @@
"scenery",
"no_humans"
]
}
}

View File

@@ -21,7 +21,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/IL_Medieval_brothel_Bedroom_r1.safetensors",
"lora_weight": 1.0,
"lora_triggers": "medieval_brothel, bedroom, canopy bed, wooden floor, wooden wall, candle, night, red curtains, carpet, window"
"lora_triggers": "medieval_brothel, bedroom, canopy bed, wooden floor, wooden wall, candle, night, red curtains, carpet, window",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"medieval",
@@ -39,4 +41,4 @@
"dim_light",
"red_theme"
]
}
}

View File

@@ -23,7 +23,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/IL_Vintage_Tavern.safetensors",
"lora_weight": 0.7,
"lora_triggers": "vinbmf, scenery, vintage, medieval, wooden tables, tavern, counter, red lamps, dark, red tapestry, small chandelier"
"lora_triggers": "vinbmf, scenery, vintage, medieval, wooden tables, tavern, counter, red lamps, dark, red tapestry, small chandelier",
"lora_weight_min": 0.7,
"lora_weight_max": 0.7
},
"tags": [
"anime",
@@ -40,4 +42,4 @@
"indoors",
"scenery"
]
}
}

View File

@@ -23,7 +23,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/Laboratory_-_IL.safetensors",
"lora_weight": 0.7,
"lora_triggers": "l4b"
"lora_triggers": "l4b",
"lora_weight_min": 0.7,
"lora_weight_max": 0.7
},
"tags": [
"indoors",
@@ -47,4 +49,4 @@
"science_fiction",
"stasis_tank"
]
}
}

View File

@@ -26,7 +26,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/M4DSCIENC3-IL.safetensors",
"lora_weight": 1.0,
"lora_triggers": "M4DSCIENC3, laboratory, dungeon"
"lora_triggers": "M4DSCIENC3, laboratory, dungeon",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"laboratory",
@@ -50,4 +52,4 @@
"no_humans",
"scenery"
]
}
}

View File

@@ -23,7 +23,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/midis_LargeRoom_V0.5[IL].safetensors",
"lora_weight": 1.0,
"lora_triggers": "largeroom"
"lora_triggers": "largeroom",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"masterpiece",
@@ -32,4 +34,4 @@
"wide_shot",
"very_aesthetic"
]
}
}

View File

@@ -18,7 +18,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/Mushroom.safetensors",
"lora_weight": 0.7,
"lora_triggers": "mshr00m"
"lora_triggers": "mshr00m",
"lora_weight_min": 0.7,
"lora_weight_max": 0.7
},
"tags": [
"forest",
@@ -30,4 +32,4 @@
"fantasy",
"night"
]
}
}

View File

@@ -23,7 +23,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/mysterious_4lch3my_sh0p-i.safetensors",
"lora_weight": 1.0,
"lora_triggers": "mysterious 4lch3my sh0p"
"lora_triggers": "mysterious 4lch3my sh0p",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"mysterious alchemy shop",
@@ -32,4 +34,4 @@
"background",
"magic shop"
]
}
}

View File

@@ -21,7 +21,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/nightclub.safetensors",
"lora_weight": 1.0,
"lora_triggers": "nightclub"
"lora_triggers": "nightclub",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"nightclub",
@@ -31,4 +33,4 @@
"bar_counter",
"disco_ball"
]
}
}

View File

@@ -21,7 +21,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/privacy_screen_anyillustriousXLFor_v11_came_1420_v1.0.safetensors",
"lora_weight": 1.0,
"lora_triggers": "privacy_curtains, hospital_curtains"
"lora_triggers": "privacy_curtains, hospital_curtains",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"hospital",
@@ -34,4 +36,4 @@
"white_wall",
"partition"
]
}
}

View File

@@ -22,7 +22,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/RetroKitchenILL.safetensors",
"lora_weight": 1.0,
"lora_triggers": "retro kitchens"
"lora_triggers": "retro kitchens",
"lora_weight_min": 1.0,
"lora_weight_max": 1.0
},
"tags": [
"kitchen",
@@ -41,4 +43,4 @@
"window",
"sunlight"
]
}
}

View File

@@ -19,7 +19,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/ScenicILL.safetensors",
"lora_weight": 0.8,
"lora_triggers": "scenery"
"lora_triggers": "scenery",
"lora_weight_min": 0.8,
"lora_weight_max": 0.8
},
"tags": [
"scenery",
@@ -39,4 +41,4 @@
"masterpiece",
"best_quality"
]
}
}

View File

@@ -17,7 +17,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/space_backround_illustrious.safetensors",
"lora_weight": 0.8,
"lora_triggers": "space_backround"
"lora_triggers": "space_backround",
"lora_weight_min": 0.8,
"lora_weight_max": 0.8
},
"tags": [
"space",
@@ -29,4 +31,4 @@
"science_fiction",
"milky_way"
]
}
}

View File

@@ -21,7 +21,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/VIP.safetensors",
"lora_weight": 0.7,
"lora_triggers": "v1p"
"lora_triggers": "v1p",
"lora_weight_min": 0.7,
"lora_weight_max": 0.7
},
"tags": [
"nightclub",
@@ -37,4 +39,4 @@
"neon_lights",
"dim_lighting"
]
}
}

View File

@@ -22,7 +22,9 @@
"lora": {
"lora_name": "Illustrious/Backgrounds/Wedding_Venue.safetensors",
"lora_weight": 0.7,
"lora_triggers": "w3dd1ng"
"lora_triggers": "w3dd1ng",
"lora_weight_min": 0.7,
"lora_weight_max": 0.7
},
"tags": [
"w3dd1ng",
@@ -40,4 +42,4 @@
"nature",
"day"
]
}
}