mcp-sqlite-memory-bank 1.5.1__py3-none-any.whl → 1.6.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ Cursor, and other LLM-powered tools to interact with structured data in a
8
8
  safe, explicit, and extensible way.
9
9
 
10
10
  Author: Robert Meisner
11
- Version: 0.1.0
11
+ Version: 1.6.0
12
12
  License: MIT
13
13
  """
14
14
 
@@ -93,7 +93,7 @@ __all__ = [
93
93
  "explore_tables",
94
94
  "add_embeddings",
95
95
  "semantic_search",
96
- "find_related",
96
+ "find_related",
97
97
  "smart_search",
98
98
  "embedding_stats",
99
99
  "auto_semantic_search",
@@ -11,29 +11,35 @@ import sys
11
11
  import os
12
12
 
13
13
  # Add the project root to Python path to avoid import issues
14
- project_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
14
+ project_root = os.path.dirname(
15
+ os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
16
+ )
15
17
  if project_root not in sys.path:
16
18
  sys.path.insert(0, project_root)
17
19
 
18
20
  # Configure logging before any other imports
19
21
  logging.basicConfig(
20
- level=logging.INFO,
21
- format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
22
+ level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
22
23
  )
23
24
 
24
- def main():
25
+
26
+ def main() -> None:
25
27
  """Main entry point for the MCP server."""
26
28
  try:
27
29
  # Import here to avoid circular import issues
28
30
  from .server import app, DB_PATH
29
-
31
+
30
32
  # Handle help argument
31
33
  if "--help" in sys.argv or "-h" in sys.argv:
32
34
  print("SQLite Memory Bank MCP Server")
33
35
  print("Usage: python -m src.mcp_sqlite_memory_bank")
34
36
  print("")
35
- print("This starts the SQLite Memory Bank as an MCP (Model Context Protocol) server.")
36
- print("The server communicates via STDIO and provides memory management tools")
37
+ print(
38
+ "This starts the SQLite Memory Bank as an MCP (Model Context Protocol) server."
39
+ )
40
+ print(
41
+ "The server communicates via STDIO and provides memory management tools"
42
+ )
37
43
  print("for LLMs and AI agents.")
38
44
  print("")
39
45
  print(f"Database location: {DB_PATH}")
@@ -41,13 +47,15 @@ def main():
41
47
  print("Environment variables:")
42
48
  print(" DB_PATH: Override the default database path")
43
49
  return
44
-
50
+
45
51
  # Log startup information
46
- logging.info(f"Starting SQLite Memory Bank MCP server with database at {DB_PATH}")
47
-
52
+ logging.info(
53
+ f"Starting SQLite Memory Bank MCP server with database at {DB_PATH}"
54
+ )
55
+
48
56
  # Run the FastMCP app in stdio mode for MCP clients
49
57
  app.run(transport="stdio")
50
-
58
+
51
59
  except KeyboardInterrupt:
52
60
  logging.info("Server stopped by user")
53
61
  sys.exit(0)
@@ -55,5 +63,6 @@ def main():
55
63
  logging.error(f"Failed to start MCP server: {e}")
56
64
  sys.exit(1)
57
65
 
66
+
58
67
  if __name__ == "__main__":
59
68
  main()