text diff mcp for LangChain
io.github.mrfentmen/text-diff-mcp
Unified diffs of two texts: change hunks with context, plus added and removed line counts
client:LangChain
transport:stdio
runtime:npm
Install text diff mcp in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"text-diff-mcp": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@mrfentmen/text-diff-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs