21 lines
419 B
Python
21 lines
419 B
Python
from fastapi import FastAPI
|
|
|
|
from personal_mcp.mcp import create_mcp
|
|
from personal_mcp.web.app import create_app as create_fastapi
|
|
|
|
__all__ = ["create_app", "main"]
|
|
|
|
|
|
def create_app() -> FastAPI:
|
|
"""Create the HTTP application for ASGI servers using factory mode."""
|
|
return create_fastapi()
|
|
|
|
|
|
def main() -> None:
|
|
"""Run the root MCP server."""
|
|
create_mcp().run()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|