Add this to ~/.codex/config.yaml (merge into your existing file):
mcp_servers:
codesteward-graph:
command: uvx
args:
- "--from"
- "codesteward-mcp[graph-all,graphqlite]"
- "codesteward-mcp"
- "--transport"
- "stdio"Codex reads AGENTS.md from ~/AGENTS.md (global), the repo root, and the
current directory in that order.
# From the codesteward repo:
cat templates/global-codex/AGENTS.md >> ~/AGENTS.mdOr use the setup command which merges idempotently:
uvx --from "codesteward-mcp[graph-all,graphqlite]" codesteward-mcp setupcd /path/to/your/project
codexThe agent will automatically derive repo_id from the directory name,
check graph_status, rebuild if needed, and prefer graph queries for
structural questions.