Skip to content
LangChain

codex octopus for LangChain

io.github.xiaolai/codex-octopus

Spawn multiple specialized Codex agents as MCP servers, each independently configured.

client:LangChain transport:stdio runtime:npm

Install codex octopus in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

codex octopus in other clients