Greptile MCP
Use Greptile MCP tools to work with PR reviews and Greptile context. Keep credentials safe and avoid guessing configuration.
Setup checklist
- •Confirm
GREPTILE_API_KEYis set in the user's shell environment. - •Prefer adding the export to
~/.zshrcor~/.bashrcas shown inreferences/greptile.md. - •For non-interactive runs, ensure the environment variable is passed to the Codex process.
- •If the Greptile MCP server is not configured, ask the user to add it and follow Greptile docs; do not guess config keys.
Tool usage
- •Use
list_pull_requeststo find the PR, thenget_merge_requestfor details. - •Use
list_merge_request_commentsorsearch_greptile_commentsto collect feedback. - •Use
trigger_code_reviewto start a new review when requested. - •Use custom context tools to inspect or add organization rules.
See references/greptile.md for the exact tool list and example prompts.
Safety
- •Do not print, log, or commit the API key.
- •If the key is missing, ask the user to set it and re-run the task.