Skip to content
LangChain

importfix for LangChain

io.github.cloudcorprecords/importfix

Detect circular imports, report the exact cycle per component, and suggest a break point.

client:LangChain transport:stdio runtime:npm

Install importfix in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "importfix": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@reneturcios/importfix"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

importfix in other clients