Skip to content
LangChain

repo2graph for LangChain

io.github.srinivasan-78/repo2graph

Ask a codebase questions and get cited code back, from a tree-sitter graph of the repo.

client:LangChain transport:stdio runtime:pypi

Install repo2graph in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "repo2graph": {
            "transport": "stdio",
            "command": "uvx",
            "args": ["repo2graph"],
        }
})

tools = await client.get_tools()

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

repo2graph in other clients