shell-use for LangChain
io.github.kyuheon-kr/shell-use
Let agents use the shell like a human.
client:LangChain
transport:stdio
runtime:oci
Install shell-use in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"shell-use": {
"transport": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/kyuheon-kr/shell-use:1.0.0"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs