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:
parent
ff0878dba8
commit
7367005f25
1 changed files with 3 additions and 2 deletions
|
|
@ -198,7 +198,7 @@ async def main():
|
||||||
try:
|
try:
|
||||||
from mcp.server.stdio import stdio_server
|
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):
|
async with stdio_server() as (read_stream, write_stream):
|
||||||
await mcp.run(
|
await mcp.run(
|
||||||
|
|
@ -215,7 +215,8 @@ async def main():
|
||||||
raise_exceptions=True,
|
raise_exceptions=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
logger.info("Cognee MCP server started.")
|
logger.info("Cognee MCP server closed.")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Server failed to start: {str(e)}", exc_info=True)
|
logger.error(f"Server failed to start: {str(e)}", exc_info=True)
|
||||||
raise
|
raise
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue