# Greptile MCP MCP Server

> **Greptile MCP MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to Greptile MCP.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/greptile-mcp
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

Greptile MCP Server lets AI coding agents access Greptile code reviews directly from their IDE, enabling them to fetch PR feedback, apply suggested fixes, search recurring review issues, manage coding standards, and check review status before merging.

---

## Details

- Server ID: `greptile-mcp`
- Version: 1.0.0
- Tools: 21
- Authentication: OAuth, managed by MewCP
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — Greptile MCP has to be in the toolset
first. In order:

1. Add Greptile MCP to your toolset at https://mewcp.com/mcp/greptile-mcp
2. Connect your Greptile MCP account (OAuth); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `manage_connections(requests?)` — connection status and account aliases, plus
  links the user opens to add an app or connect an account
- `call_tool(app_maskedId, tool_name, args, alias?)` — execute

If Greptile MCP isn't in the toolset or connected yet, `manage_connections` with
app_maskedId `greptile-mcp` returns a link that adds it and connects an account.

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (21)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `get_me` _(read)_ — Identify the caller and discover the organizations available to other tools. Call this when the organization is unknown or after tenant_required; pass an…
- `list_repositories` _(read)_ — List repositories visible to the caller in the selected organization, sorted by name. Each entry contains namespaceId for knowledge-base tools and the…
- `list_custom_context` _(read)_ — List saved review rules and learned patterns visible to the caller, newest first. Returns customContexts with id, type, body, status, scopes, metadata,…
- `get_custom_context` _(read)_ — Get one saved review rule or pattern and up to 10 linked review-comment references. Returns customContext metadata and linkedComments; it does not return…
- `search_custom_context` _(read)_ — Search visible custom-context bodies by case-insensitive substring, newest matches first. Returns customContexts and query; each result includes id, type,…
- `list_merge_requests` _(read)_ — List merge requests and pull requests visible to the caller, newest first. Optionally restrict by a repository tuple, source branch, author, or state;…
- `list_pull_requests` _(read)_ — Alias of list_merge_requests with the same filters and result contract. List visible pull requests newest first; sourceBranch and authorLogin are…
- `get_merge_request` _(read)_ — Get one pull request or merge request with metadata, statistics, comments, up to 10 recent review records, and summary citations for the latest completed…
- `list_merge_request_comments` _(read)_ — List all matching comments for one pull request or merge request, newest first. Returns comments, repository, prNumber, and total. Each comment exposes…
- `list_code_reviews` _(read)_ — List code-review runs visible to the caller, newest first, optionally filtered by repository, PR number, or status. Returns codeReviews and the number returned…
- `get_code_review` _(read)_ — Get one code-review run by its stable id. Returns codeReview with body, status, commit, timestamps, allowlisted customer metadata, dispatch user, and optional…
- `trigger_code_review` _(destructive)_ — Request a new asynchronous Greptile review for an existing GitHub pull request or GitLab merge request. This queues normal review processing, which consumes…
- `search_greptile_comments` _(read)_ — Search Greptile-generated review comments by case-insensitive body substring across PR and CLI/headless reviews, newest first. Returns comments, query, the…
- `create_custom_context` _(write)_ — Create a persistent review rule or pattern in the selected organization. Omitted type defaults to CUSTOM_INSTRUCTION, omitted status to ACTIVE, omitted scopes…
- `list_knowledge_bases` _(read)_ — Discover repositories with reachable Greptile knowledge-base data; start here before asking how an unfamiliar repository works. Returns repositories with…
- `list_knowledge_base_documents` _(read)_ — List paths in one repository's current published knowledge base to map its documented subsystems before reading. Returns namespaceId, deprecated…
- `get_knowledge_base_document` _(read)_ — Read one current knowledge-base markdown document after listing its path. Returns document identity, section, immutable versionId, full characterCount, and…
- `search_knowledge_base` _(read)_ — Search one repository's current knowledge base for a case-insensitive substring when you know the term, symbol, endpoint, or convention to investigate. Returns…
- `list_analytics_filter_options` _(read)_ — List exact team names, repository names, or author logins available to the caller for analytics filters. Query is a trimmed, case-insensitive substring; unique…
- `get_analytics_overview` _(read)_ — Get review analytics for repositories visible to the caller, optionally intersected by exact team, repository, and author filters. Omitted dates mean the…
- `list_analytics_findings` _(read)_ — List review findings visible to the caller, newest first, with optional exact scope, severity, security, stored-addressed-status, text, and date filters.…

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/greptile-mcp/connect/claude
- ChatGPT: https://mewcp.com/mcp/greptile-mcp/connect/chatgpt
- Grok: https://mewcp.com/mcp/greptile-mcp/connect/grok
- DeepSeek Harness: https://mewcp.com/mcp/greptile-mcp/connect/dsh
- Mistral Vibe: https://mewcp.com/mcp/greptile-mcp/connect/mistral-vibe
- VS Code: https://mewcp.com/mcp/greptile-mcp/connect/vscode
- Cursor: https://mewcp.com/mcp/greptile-mcp/connect/cursor
- Codex: https://mewcp.com/mcp/greptile-mcp/connect/codex
- Claude Code: https://mewcp.com/mcp/greptile-mcp/connect/claude-code
- OpenCode: https://mewcp.com/mcp/greptile-mcp/connect/opencode
- OpenClaw: https://mewcp.com/mcp/greptile-mcp/connect/openclaw
- Antigravity: https://mewcp.com/mcp/greptile-mcp/connect/antigravity
- Hermes: https://mewcp.com/mcp/greptile-mcp/connect/hermes
- Kimi Code: https://mewcp.com/mcp/greptile-mcp/connect/kimi-code
- Grok Build: https://mewcp.com/mcp/greptile-mcp/connect/grok-build
- Devin Desktop: https://mewcp.com/mcp/greptile-mcp/connect/devin-desktop
- Zed: https://mewcp.com/mcp/greptile-mcp/connect/zed
- Muse Code: https://mewcp.com/mcp/greptile-mcp/connect/muse-code
- Cline: https://mewcp.com/mcp/greptile-mcp/connect/cline
- Kilo Code: https://mewcp.com/mcp/greptile-mcp/connect/kilo-code
- Kiro: https://mewcp.com/mcp/greptile-mcp/connect/kiro
- Junie: https://mewcp.com/mcp/greptile-mcp/connect/junie
- Amp: https://mewcp.com/mcp/greptile-mcp/connect/amp
- Qwen Code: https://mewcp.com/mcp/greptile-mcp/connect/qwen-code
- Goose: https://mewcp.com/mcp/greptile-mcp/connect/goose
- Python: https://mewcp.com/mcp/greptile-mcp/connect/python
- TypeScript: https://mewcp.com/mcp/greptile-mcp/connect/typescript