get_repository_info
Get information about an indexed repository including status and metadata
Index a repository with Greptile, then ask questions about it in natural language and get answers that cite the code they came from.
LABSCO SUMMARY
Indexing is a separate step from asking, so a repository is prepared once and queried many times — and get_repository_info is what tells you whether it is ready, rather than an empty answer. query_repository takes a list of repositories rather than one, which is what makes a question spanning two services answerable at all. Passing a session ID with previous messages keeps a line of questioning coherent instead of restating context each turn.
A client for Greptile's code search: index a repository on a branch, then query it conversationally.
A Greptile API key in GREPTILE_API_KEY and a GitHub token in GITHUB_TOKEN.
One command plus a key — npx greptile-mcp-server, then supply credentials
USE CASES
Indexing happens once and answers come back with the code they point at, so the first question does not have to be a file search.
When a client and a service are separate repos, the answer lives in neither one alone; the query takes both at once.
A second question usually depends on the first. The session ID and previous messages carry that thread instead of repeating it.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
get_repository_infoGet information about an indexed repository including status and metadata
greptile_env_checkCheck environment variable configuration and setup status
greptile_helpGet comprehensive help and usage examples for all Greptile MCP tools
index_repositoryIndex a repository to make it searchable for future queries
query_repositoryQuery repositories using natural language to get detailed answers with code references
BEFORE YOU INSTALL
5 tools when we connected. greptile_env_check is not in the documentation. Run index_repository on a codebase before query_repository can answer anything about it.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 5 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx greptile-mcp-server{
"mcpServers": {
"greptile": {
"command": "npx",
"args": [
"greptile-mcp-server"
],
"env": {
"GREPTILE_API_KEY": "<YOUR_GREPTILE_API_KEY>",
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}