cua-hub for LangChain
io.github.jsshwqz/cua-hub
Native Rust computer-use OS for AI agents: Vision, 4-mode CDP browser, UIA/AT-SPI2 & HITL.
client:LangChain
transport:stdio
runtime:npm
Install cua-hub in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"cua-hub": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "cua-hub"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs