Skip to content
LangChain

DoboCache for LangChain

io.github.dobo123123/dobocache

Stabilizes LLM prompt-cache prefixes so provider caching hits. One command setup, no baseURL edit.

client:LangChain transport:stdio runtime:npm

Install DoboCache in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "dobocache": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "dobocache"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

DoboCache in other clients