# Greptile MCP MCP

Vendor: Greptile MCP  
Category: other  
Auth: OAUTH2  
Composio slug: `greptile_mcp`

Greptile MCP lets authorized agents search connected codebases, inspect pull requests and code reviews, manage custom context, and analyze engineering knowledge bases.

## Verdict

Greptile MCP connects your team's code repositories to Switchy so AI can review pull requests, search codebases, and answer questions about your architecture. When you @mention Greptile, it can fetch PR details, run custom review rules, pull analytics on review velocity, and read knowledge-base docs you've indexed. Engineers get instant context on unfamiliar repos; managers get sprint metrics without opening dashboards. The OAuth flow requires repository read access, and you'll need to configure which repos Greptile indexes before the MCP can query them.

## Tools

- **Create custom context** — Create a persistent review rule or pattern in the selected organization. Omitted type defaults to CUSTOM_INSTRUCTION, omitted status to ACTIVE, omitted scopes to universal scope, and omitted metadata to an empty object. Returns the stored c
- **Get analytics overview** — Get review analytics for repositories visible to the caller, optionally intersected by exact team, repository, and author filters. Omitted dates mean the current calendar month through now in timeZone; period-change metrics compare the imme
- **Get code review** — Get one code-review run by its stable id. Returns codeReview with body, status, commit, timestamps, allowlisted customer metadata, dispatch user, and optional mergeRequest, plus summaryCitations. CLI/headless reviews have source "headless" 
- **Get custom context** — Get one saved review rule or pattern and up to 10 linked review-comment references. Returns customContext metadata and linkedComments; it does not return evidence bodies or source URIs. Each linked comment has source "pr" or "headless" and 
- **Get knowledge base document** — Read one current knowledge-base markdown document after listing its path. Returns document identity, section, immutable versionId, full characterCount, and content, plus untrustedContent and notice. The serialized response is capped at 80 K
- **Get me** — Identify the caller and discover the organizations available to other tools. Call this when the organization is unknown or after tenant_required; pass an organization's id or handle as organization on a later call. It requires no selected o
- **Get merge request** — Get one pull request or merge request with metadata, statistics, comments, up to 10 recent review records, and summary citations for the latest completed review. Addressed and unaddressed groups reflect each Greptile comment's stored addres
- **List analytics filter options** — List exact team names, repository names, or author logins available to the caller for analytics filters. Query is a trimmed, case-insensitive substring; unique options are locale-sorted. Returns options, full matching total, limit, offset, 
- **List analytics findings** — List review findings visible to the caller, newest first, with optional exact scope, severity, security, stored-addressed-status, text, and date filters. Omitted dates mean the current calendar month through now in timeZone; trend fields co
- **List code reviews** — List code-review runs visible to the caller, newest first, optionally filtered by repository, PR number, or status. Returns codeReviews and the number returned as total. CLI/headless runs have source "headless" and mergeRequest null; PR run
- **List custom context** — List saved review rules and learned patterns visible to the caller, newest first. Returns customContexts with id, type, body, status, scopes, metadata, evidenceCount, commentsCount, and createdAt; evidence bodies and source URIs are not ret
- **List knowledge base documents** — List paths in one repository's current published knowledge base to map its documented subsystems before reading. Returns namespaceId, deprecated repoNamespaceExternalId, repoName, indexPresent, sectionVersions.docs, documentPaths, total, an
- **List knowledge bases** — Discover repositories with reachable Greptile knowledge-base data; start here before asking how an unfamiliar repository works. Returns repositories with namespaceId, deprecated repoNamespaceExternalId, and repoName, plus total and returned
- **List merge request comments** — List all matching comments for one pull request or merge request, newest first. Returns comments, repository, prNumber, and total. Each comment exposes isGreptileComment rather than sourceType, plus stored addressed state, optional extracte
- **List merge requests** — List merge requests and pull requests visible to the caller, newest first. Optionally restrict by a repository tuple, source branch, author, or state; sourceBranch and authorLogin are case-insensitive substring filters. This server cannot d
- **List pull requests** — Alias of list_merge_requests with the same filters and result contract. List visible pull requests newest first; sourceBranch and authorLogin are case-insensitive substring filters, and this server cannot detect a local checkout or current 
- **List repositories** — List repositories visible to the caller in the selected organization, sorted by name. Each entry contains namespaceId for knowledge-base tools and the name/remote/defaultBranch/optional remoteUrl tuple for pull-request and review tools; int
- **Search custom context** — Search visible custom-context bodies by case-insensitive substring, newest matches first. Returns customContexts and query; each result includes id, type, body, status, scopes, metadata, evidenceCount, commentsCount, and createdAt. Evidence
- **Search greptile comments** — Search Greptile-generated review comments by case-insensitive body substring across PR and CLI/headless reviews, newest first. Returns comments, query, the returned count as total, and an addressed/unaddressed/suggestion summary. Results ha
- **Search knowledge base** — Search one repository's current knowledge base for a case-insensitive substring when you know the term, symbol, endpoint, or convention to investigate. Returns repository identity, query, pinned sectionVersions, matching document results wi
- **Trigger code review** — Request a new asynchronous Greptile review for an existing GitHub pull request or GitLab merge request. This queues normal review processing, which consumes review credits, persists a review run, and can post or update review feedback on Gi

## Setup

1. Create or open a Switchy Project.
2. Open Integrations and connect Greptile MCP.
3. Authorise through oauth2.
4. Teammates can now @-mention Greptile MCP tools in chat.

---
Last verified: 2026-10-17T02:00:10.360Z  
Canonical URL: https://switchy.build/directory/mcps/greptile-mcp