NestLens for LangChain
io.github.mogretici/nestlens
Lets an agent read what NestLens recorded in a NestJS app: requests, queries, exceptions and logs.
client:LangChain
transport:stdio
runtime:npm
Install NestLens in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"nestlens": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "nestlens-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs