Skip to content
LangChain

buck2 mcp for LangChain

io.github.mrfentmen/buck2-mcp

Buck2 MCP: parse BUCK files, validate targets, loads and names.

client:LangChain transport:stdio runtime:npm

Install buck2 mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "buck2-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@mrfentmen/buck2-mcp"],
        }
})

tools = await client.get_tools()

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

buck2 mcp in other clients