AgentTwin for LangChain
io.github.agenttwin/agenttwin
Test AI agent workflows against service twins with injected faults. Runs locally; no source upload.
client:LangChain
transport:stdio
runtime:npm
Install AgentTwin in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"agenttwin": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "agenttwin"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs