Lex for LangChain
io.github.guffawaffle/lex
Episodic memory and architectural policy for AI agents. Frames, Atlas, and Policy.
client:LangChain
transport:stdio
runtime:npm
Install Lex in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"lex": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@smartergpt/lex-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs