September 16, 2026
AI agents gain codebase knowledge: Greptile adds Knowledge Base via MCP
On September 16, 2026, [Greptile](/tools/greptile) opened Knowledge Base access through MCP for AI agents. The base stores the codebase’s structure and the history of past incidents. Agents such as Claude can use this knowledge when writing code.

Greptile
@greptile
Introducing Knowledge Base MCP. Greptile maintains a detailed knowledge base of how every part of your codebase is structured, along with a history of past incidents. Starting today, coding agents such as Codex and Claude can access Knowledge Base through Greptile MCP and use Greptile’s knowledge to write better code.
· 64.5K views
On September 15, 2025, Greptile MCP helped run and rerun reviews, show results, and manage repository rules. Now Codex also gets access to the published Knowledge Base through it: an architecture index, glossary, file map, module documentation, and the history of revert, rollback, and incident PRs.
Setup. In Codex, setup uses the commands `codex mcp add greptile --url https://api.greptile.com/mcp`, `codex mcp login greptile`, and `codex mcp list`. Greptile MCP connects through OAuth without registering an OAuth client. Shared configuration can be placed in `.codex/config.toml`. Each developer authorizes separately.
Knowledge Base requires no manual setup: Greptile first scans the entire repository, then updates the documentation as the code changes.
The next milestone will emerge on live repositories: it will become clear whether incident history changes how the agent works.
Source

