refactor: remove text parameter from subprocess call in UI startup

This commit is contained in:
Daulet Amirkhanov 2025-09-26 17:53:17 +01:00
parent b7441f81cd
commit 143d9433b1
2 changed files with 2 additions and 1 deletions

View file

@ -38,10 +38,12 @@ mcp = FastMCP("Cognee")
logger = get_logger()
@mcp.custom_route("/health", methods=["GET"])
async def health_check(request) -> dict:
return JSONResponse({"status": "ok"})
@mcp.tool()
async def cognee_add_developer_rules(
base_path: str = ".", graph_model_file: str = None, graph_model_name: str = None

View file

@ -601,7 +601,6 @@ def start_ui(
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
preexec_fn=os.setsid if hasattr(os, "setsid") else None,
)