fix: Fix mcp server start log messages (#692)

<!-- .github/pull_request_template.md -->

## Description
Change log messages so they are more understandable to mcp users

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
Igor Ilic 2025-04-01 15:18:24 +02:00 committed by GitHub
parent ff0878dba8
commit 7367005f25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -198,7 +198,7 @@ async def main():
try:
from mcp.server.stdio import stdio_server
logger.info("Starting Cognee MCP server...")
logger.info("Cognee MCP server started...")
async with stdio_server() as (read_stream, write_stream):
await mcp.run(
@ -215,7 +215,8 @@ async def main():
raise_exceptions=True,
)
logger.info("Cognee MCP server started.")
logger.info("Cognee MCP server closed.")
except Exception as e:
logger.error(f"Server failed to start: {str(e)}", exc_info=True)
raise