Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | Host to bind to for SSE transport | 0.0.0.0 |
| PORT | No | Port for SSE transport | 8050 |
| DEBUG | No | Enable debug mode | false |
| LOG_LEVEL | No | Logging level | info |
| TRANSPORT | No | Transport method (sse or stdio) | sse |
| GITHUB_TOKEN | Yes | GitHub/GitLab Personal Access Token for repository access (required) | |
| GREPTILE_API_KEY | Yes | API key for accessing the Greptile API (required) | |
| GREPTILE_TIMEOUT | No | Timeout for Greptile API requests in seconds | 60.0 |
| GREPTILE_BASE_URL | No | Base URL for Greptile API | https://api.greptile.com/v2 |
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| codebase_exploration | Start exploring a codebase with guided questions |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Greptile MCP Help | Comprehensive documentation for all Greptile MCP features |
| Current Configuration | Current server configuration and settings |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| greptile_help | Get comprehensive help and usage examples for all Greptile MCP tools |
| greptile_env_check | Check environment variable configuration and setup status |
| index_repository | Index a repository to make it searchable for future queries |
| query_repository | Query repositories using natural language to get detailed answers with code references |
| get_repository_info | Get information about an indexed repository including status and metadata |