MCP server for Lex episodic memory - stdio transport wrapper
npm install @smartergpt/lex-mcpMCP server wrapper for Lex episodic memory.
``bash`
npx @smartergpt/lex-mcp
Add to .vscode/mcp.json:
`json`
{
"servers": {
"lex": {
"command": "npx",
"args": ["@smartergpt/lex-mcp"],
"env": {
"LEX_WORKSPACE_ROOT": "${workspaceFolder}"
}
}
}
}
Add to claude_desktop_config.json:
`json`
{
"mcpServers": {
"lex": {
"command": "npx",
"args": ["@smartergpt/lex-mcp"]
}
}
}
| Variable | Description | Default |
|----------|-------------|---------|
| LEX_WORKSPACE_ROOT | Workspace root directory | Current directory |LEX_MEMORY_DB
| | SQLite database path | .smartergpt/lex/lex.db |LEX_DEBUG
| | Enable debug logging | Off |
This MCP server provides 11 tools for episodic memory management:
- frame_create - Store episodic memory snapshotframe_search
- - Search frames by reference, branch, or ticketframe_get
- - Retrieve specific frame by IDframe_list
- - List recent frames with filteringframe_validate
- - Validate frame input (dry-run)policy_check
- - Validate code against policy rulestimeline_show
- - Visual timeline of frame evolutionatlas_analyze
- - Analyze code structure and dependenciessystem_introspect
- - Discover Lex capabilities and statehelp
- - Usage help and exampleshints_get` - Retrieve error recovery hints
-
See the Lex documentation for full details.