-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_main.py
More file actions
29 lines (20 loc) · 739 Bytes
/
Copy pathapp_main.py
File metadata and controls
29 lines (20 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""Main FastAPI application for Project Scouter."""
import logging
from fastapi import FastAPI
from src.scouter.agent.mcp import app as mcp_app
from src.scouter.config import config as app_config
from src.scouter.config import setup_logging
from src.scouter.ingestion.api import router as ingestion_router
# Setup logging
setup_logging()
logger = logging.getLogger(__name__)
cfg = app_config.llm
logger.info("Starting Scouter in %s environment", cfg.env)
app: FastAPI = FastAPI(
title="Project Scouter",
description="Rapid assessment and retrieval from knowledge graph",
)
# Include REST API routers
app.include_router(ingestion_router)
# Mount FastMCP for tool access
app.mount("/mcp", mcp_app) # type: ignore[arg-type]