ask codex for LangChain
io.github.lykhoyda/ask-codex
Bridge Claude with OpenAI Codex CLI for AI-to-AI collaboration, code review, and second opinions
client:LangChain
transport:stdio
runtime:npm
Install ask codex in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"ask-codex": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@ask-llm/codex-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs