Contraptify for LangChain
io.github.torsviklabs/contraptify
Design redstone machines with your AI and test them tick by tick with Java Edition 26.3 rules.
client:LangChain
transport:streamable-http
tools:5
Install Contraptify in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"contraptify": {
"transport": "streamable_http",
"url": "https://mcp.contraptify.com/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs