app factory

This commit is contained in:
John Lancaster
2026-07-21 08:49:36 -05:00
parent 7970e76d4f
commit 27f783fc90
3 changed files with 48 additions and 33 deletions
+10 -3
View File
@@ -1,7 +1,14 @@
from personal_mcp.mcp import mcp
from personal_mcp.web.app import app
from fastapi import FastAPI
__all__ = ["app", "main", "mcp"]
from personal_mcp.mcp import mcp
from personal_mcp.web.app import create_app as create_fastapi
__all__ = ["create_app", "main", "mcp"]
def create_app() -> FastAPI:
"""Create the HTTP application for ASGI servers using factory mode."""
return create_fastapi()
def main() -> None: