For AI agentsA Markdown index of these docs is at /llms.txt. Every page is also Markdown: add .md to its address.

Docs / Set up with your agent

LLMGRAPH for Codex

Add the LLMGRAPH MCP server to Codex on Windows: the config file, the cmd /c npx form, and how to check it connected.

Add LLMGRAPH to Codex with one command or one entry in config.toml; if Codex cannot start npx on Windows, use cmd /c npx -y llmgraph-mcp. This guide follows Codex's own docs and is not yet tested by us.

1Add the server to Codex

Add from the vendor's docs, not yet tested by us ~/.codex/config.toml, or .codex/config.toml in a trusted project

$codex mcp add llmgraph -- npx -y llmgraph-mcp

Or in the config file:

toml[mcp_servers.llmgraph] command = "npx" args = ["-y", "llmgraph-mcp"]

Codex's own docs do not mention a cmd /c wrapper on Windows. If it cannot start npx, use cmd /c npx -y llmgraph-mcp.

2Check that it connected

Check from the vendor's docs, not yet tested by us (your agent lists them as tools)

  • Run codex mcp list.
  • In the codex terminal UI, type /mcp to see active MCP servers.

3Sign in once

The first time your agent asks a question, LLMGRAPH answers with a sign-in link and a 6-character code. In a terminal you can run this instead:

$npx -y llmgraph-mcp login

The link works for 10 minutes. Open the full link, including everything after the #, sign in with Google, compare the code on the page with the one your agent shows, and approve this device. Approving your first device starts your 7-day trial. The full steps are in Set up with your agent.

4Make sure Codex uses it

Adding a server doesn't make an agent use it.

Add a line to your agent's instructions file, AGENTS.md:

AGENTS.mdBefore changing code, ask the llmgraph MCP tools who_calls and what_breaks_if_changed; after editing, run check_my_changes; read each answer's label and its lines about what it cannot see.

We can't promise that an agent asks on its own. Every answer starts with llmgraph · : look for it where Codex shows what it asked.

5The five questions

QuestionWhat it answers
who_callsEvery place that calls this function, plus calls we can't see.
what_breaks_if_changedEverything that depends on this, directly or indirectly, and what we can't see.
check_my_changesAfter editing: callers you didn't update, and anything we can't see.
what_is_unknownWhere our view is blind (dynamic calls, unknown types, unreadable files) and why.
explainWhy we said this: the evidence behind one answer line.

Other agents

For agentsthis page as Markdown/docs/agents/codex.mdllms.txt