MCPcopy Create free account
hub / github.com/contextform/freecad-mcp / __init__

Method __init__

AICopilot/memory_system.py:15–25  ·  view source on GitHub ↗
(self, db_path: Optional[str] = None)

Source from the content-addressed store, hash-verified

13 """Intelligent memory for CAD operations"""
14
15 def __init__(self, db_path: Optional[str] = None):
16 # Store in user's FreeCAD config directory
17 if not db_path:
18 import FreeCAD
19 config_dir = Path(FreeCAD.getUserAppDataDir()) / "AICopilot"
20 config_dir.mkdir(exist_ok=True)
21 db_path = config_dir / "memory.db"
22
23 self.db_path = db_path
24 self.conn = sqlite3.connect(str(db_path))
25 self._init_database()
26
27 def _init_database(self):
28 """Initialize database schema"""

Callers

nothing calls this directly

Calls 1

_init_databaseMethod · 0.95

Tested by

no test coverage detected