Skip to main content
Glama

git-files

Read, search, list, and backup files from Git repositories without modifying content. Supports local and remote repositories including GitHub and Gitea for secure file management operations.

Instructions

Read-only file management tool for repository files. Supports reading, searching, listing, and backup operations for both local and remote repositories. File content modification operations are not allowed for security reasons.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesThe file operation to perform. Only read-only operations are supported.
backupPathNoPath for backup (optional for backup operation - will auto-generate if not provided)
branchNoTarget branch for remote read operations
caseSensitiveNoCase sensitive search (default: false)
encodingNoContent encoding for read operations (default: utf8)
excludePatternNoPattern for files to exclude from backup
filePathNoRelative path to the file within the repository (required for read operation)
filePatternNoFile pattern for search (e.g., "*.js")
includePatternNoPattern for files to include in backup
ownerNoRepository owner (for remote operations)
projectPathYesAbsolute path to the project directory (required for all operations)
providerNoProvider for remote operations (optional for local operations)
queryNoSearch query (required for search operation)
repoNoRepository name (for remote operations)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Andre-Buzeli/git-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server