fix mcp-server crash and Kiwix FQDN resolution
mcp_server.py / local-ai-setup.sh: FastMCP.get_asgi_app() was removed in mcp 1.x — replace with sse_app(), which returns the same Starlette ASGI app for SSE transport. Fixes the crash loop the container was stuck in. laptop_full_setup.sh Caddyfile: $(hostname).local requires mDNS (Avahi/Bonjour) to resolve from a proxy machine, which is often not available on all LAN clients. Replace every occurrence with $LOCAL_IP (the machine's LAN IP) so the generated Caddyfile.example works reliably regardless of mDNS support. https://claude.ai/code/session_012gDnantBmFTWZGCiKyjazx
This commit is contained in:
+1
-1
@@ -199,5 +199,5 @@ def rag_health() -> str:
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
app = mcp.get_asgi_app()
|
||||
app = mcp.sse_app()
|
||||
uvicorn.run(app, host="0.0.0.0", port=8002)
|
||||
|
||||
Reference in New Issue
Block a user