mcp-git-explorer
v0.3.0Simple MCP server for fetching the remote git repository content as a structured text file
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_codebase
Clone a Git repository and generate a structured text file containing its contents. This tool clones a git repository from the provided URL, processes its contents, and returns a single text file containing the repository structure and the content of all files. Binary files and empty text files are excluded. The tool respects .gitignore and .repomixignore patterns. The output includes an estimated token count using the o200k_base encoding. Args: repo_url (str): The URL of the Git repository to clone use_token (b…
| Parameter | Type | Description |
|---|---|---|
repo_url * | string | |
use_token | boolean |
estimate_codebase
Get statistics about a Git repository without downloading all content. This tool clones a git repository from the provided URL, analyzes its structure, and returns statistical information useful for LLM processing, including: - Estimated token count - Total file count - Repository structure Args: repo_url (str): The URL of the Git repository to clone use_token (bool, optional): Whether to use the GitLab token for authentication. Defaults to True. Returns:…
| Parameter | Type | Description |
|---|---|---|
repo_url * | string | |
use_token | boolean |
check_gitlab_token_status
Check if the GitLab token is configured in the environment. Returns: A message indicating whether the GitLab token is configured
get_file
Fetch the content of a single specified file from a Git repository. This tool clones a Git repository from the provided URL, reads the content of the specified file, and returns it as a string. The repository is cloned with depth=1 for efficiency. If the file does not exist or an error occurs, an appropriate error message is returned. Args: repo_url (str): The URL of the Git repository to clone. file_path (str): The relative path to the file within the repository. use_token (bool, optional): Whether to use t…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
repo_url * | string | |
use_token | boolean |