repotector for LangChain
io.github.dir-ai/repotector
The repo guardian AI agents handshake with before they touch your code.
client:LangChain
transport:stdio
runtime:npm
Install repotector in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"repotector": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "repotector"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs