@smartergpt/lex-mcp
v2.7.0
Published
MCP server for Lex episodic memory - stdio transport wrapper
Maintainers
Readme
@smartergpt/lex-mcp
Thin MCP stdio wrapper for @smartergpt/lex episodic memory.
Lex owns all capabilities. This package owns delivery over Model Context Protocol.
Quick Start
npx @smartergpt/lex-mcpConfiguration
VS Code / Copilot
Add to .vscode/mcp.json:
{
"servers": {
"lex": {
"command": "npx",
"args": ["@smartergpt/lex-mcp"],
"env": {
"LEX_WORKSPACE_ROOT": "${workspaceFolder}"
}
}
}
}Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"lex": {
"command": "npx",
"args": ["@smartergpt/lex-mcp"]
}
}
}Quick Smoke Test
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | npx @smartergpt/lex-mcpEnvironment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| LEX_WORKSPACE_ROOT | Workspace root directory | Current directory |
| LEX_DB_PATH | SQLite database path (canonical) | .smartergpt/lex/memory.db |
| LEX_MEMORY_DB | Alias for LEX_DB_PATH (compat only) | — |
| LEX_DEBUG | Enable debug logging to stderr | Off |
When both LEX_DB_PATH and LEX_MEMORY_DB are set, LEX_DB_PATH wins.
Tools
This MCP server provides 14 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 hintscontradictions_scan- Detect conflicting information across framesdb_stats- Database statistics and activity metricsturncost_calculate- Turn Cost governance metrics
Learn More
See the Lex documentation for full details.
