fix: catch and log main crash
This commit is contained in:
@@ -210,4 +210,9 @@ def query_notebook(notebook: str, query: str, limit: int = 5) -> str:
|
||||
return f"Query failed: {e}"
|
||||
|
||||
if __name__ == "__main__":
|
||||
mcp.run()
|
||||
try:
|
||||
logging.info("Starting knowledge-mcp server...")
|
||||
mcp.run()
|
||||
except Exception as e:
|
||||
logging.critical(f"Server crashed: {e}", exc_info=True)
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user