docs / agent setup
Connect Codag to Claude Code, Codex, or Cursor over the Model Context Protocol.
Run setup once. It installs the hook and the MCP server so your agent reads logs through Codag from then on.
# install the hook + MCP server
codag setup
# or run the MCP server directly
codag mcp serve
Codag speaks the Model Context Protocol, so it plugs into any MCP-capable agent. Claude Code, Codex, and Cursor all connect to the same server. Once it is registered, the agent calls Codag instead of raw grep or cat when it needs to read a large log, gets back the lines that matter, and keeps its context for reasoning. The agent stays in control of the next step. Codag is a tool it calls, not a replacement for its model.