20 lines
371 B
Python
20 lines
371 B
Python
import uvicorn
|
|
|
|
from .config import get_settings
|
|
|
|
|
|
def main(cli: bool = True) -> None:
|
|
"""Run the root MCP server."""
|
|
settings = get_settings(cli=cli)
|
|
uvicorn.run(
|
|
"personal_mcp.app:create_app",
|
|
factory=True,
|
|
host=settings.host,
|
|
port=settings.port,
|
|
reload=settings.reload,
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|