Skip to content
LangChain

Codex Delegate for LangChain

io.github.andreilungeanu/codex-delegate-mcp

Bridge AI coding hosts to the OpenAI Codex CLI for delegated implementation.

client:LangChain transport:stdio runtime:npm

Install Codex Delegate in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

Codex Delegate in other clients