fix: MCP migration fixes
This commit is contained in:
parent
809f2ecb06
commit
a81f1a4551
4 changed files with 6 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -37,6 +37,7 @@ share/python-wheels/
|
||||||
.installed.cfg
|
.installed.cfg
|
||||||
*.egg
|
*.egg
|
||||||
.python-version
|
.python-version
|
||||||
|
cognee-mcp/.python-version
|
||||||
MANIFEST
|
MANIFEST
|
||||||
|
|
||||||
# PyInstaller
|
# PyInstaller
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
3.11.5
|
|
||||||
|
|
@ -380,7 +380,7 @@ async def search(search_query: str, search_type: str) -> list:
|
||||||
elif (
|
elif (
|
||||||
search_type.upper() == "GRAPH_COMPLETION" or search_type.upper() == "RAG_COMPLETION"
|
search_type.upper() == "GRAPH_COMPLETION" or search_type.upper() == "RAG_COMPLETION"
|
||||||
):
|
):
|
||||||
return search_results[0]
|
return str(search_results[0])
|
||||||
elif search_type.upper() == "CHUNKS":
|
elif search_type.upper() == "CHUNKS":
|
||||||
return str(search_results)
|
return str(search_results)
|
||||||
elif search_type.upper() == "INSIGHTS":
|
elif search_type.upper() == "INSIGHTS":
|
||||||
|
|
@ -787,7 +787,7 @@ async def main():
|
||||||
# Run Alembic migrations from the main cognee directory where alembic.ini is located
|
# Run Alembic migrations from the main cognee directory where alembic.ini is located
|
||||||
print("Running database migrations...")
|
print("Running database migrations...")
|
||||||
migration_result = subprocess.run(
|
migration_result = subprocess.run(
|
||||||
["alembic", "upgrade", "head"],
|
["python", "-m", "alembic", "upgrade", "head"],
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
text=True,
|
text=True,
|
||||||
cwd=Path(__file__).resolve().parent.parent.parent,
|
cwd=Path(__file__).resolve().parent.parent.parent,
|
||||||
|
|
|
||||||
|
|
@ -43,10 +43,10 @@ sleep 2
|
||||||
if [ "$ENVIRONMENT" = "dev" ] || [ "$ENVIRONMENT" = "local" ]; then
|
if [ "$ENVIRONMENT" = "dev" ] || [ "$ENVIRONMENT" = "local" ]; then
|
||||||
if [ "$DEBUG" = "true" ]; then
|
if [ "$DEBUG" = "true" ]; then
|
||||||
echo "Waiting for the debugger to attach..."
|
echo "Waiting for the debugger to attach..."
|
||||||
debugpy --wait-for-client --listen 0.0.0.0:$DEBUG_PORT -m gunicorn -w 3 -k uvicorn.workers.UvicornWorker -t 30000 --bind=0.0.0.0:$HTTP_PORT --log-level debug --reload cognee.api.client:app
|
debugpy --wait-for-client --listen 0.0.0.0:$DEBUG_PORT -m gunicorn -w 1 -k uvicorn.workers.UvicornWorker -t 30000 --bind=0.0.0.0:$HTTP_PORT --log-level debug --reload cognee.api.client:app
|
||||||
else
|
else
|
||||||
gunicorn -w 3 -k uvicorn.workers.UvicornWorker -t 30000 --bind=0.0.0.0:$HTTP_PORT --log-level debug --reload cognee.api.client:app
|
gunicorn -w 1 -k uvicorn.workers.UvicornWorker -t 30000 --bind=0.0.0.0:$HTTP_PORT --log-level debug --reload cognee.api.client:app
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
gunicorn -w 3 -k uvicorn.workers.UvicornWorker -t 30000 --bind=0.0.0.0:$HTTP_PORT --log-level error cognee.api.client:app
|
gunicorn -w 1 -k uvicorn.workers.UvicornWorker -t 30000 --bind=0.0.0.0:$HTTP_PORT --log-level error cognee.api.client:app
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue