npm why (who installs this package) for LangChain
io.github.lawatch/npm-why
Why a package is in node_modules, which versions, who pulls it in: npm explain from package-lock.
client:LangChain
transport:stdio
runtime:oci
Install npm why (who installs this package) in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"npm-why": {
"transport": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/lawatch/npm-why:1.0.0"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs