Skip to main content
Glama

Git Repo Browser MCP

git_hooks

Manage Git hooks in your repository to automate workflows, customize actions, and enforce policies using list, get, create, enable, and disable operations.

Instructions

Manage git hooks in the repository.

Input Schema

NameRequiredDescriptionDefault
actionYesHook action (list, get, create, enable, disable)list
hook_nameNoName of the hook (e.g., 'pre-commit', 'post-merge')
repo_pathYesThe path to the local Git repository
scriptNoScript content for the hook (for create action)

Input Schema (JSON Schema)

{ "properties": { "action": { "default": "list", "description": "Hook action (list, get, create, enable, disable)", "enum": [ "list", "get", "create", "enable", "disable" ], "type": "string" }, "hook_name": { "description": "Name of the hook (e.g., 'pre-commit', 'post-merge')", "type": "string" }, "repo_path": { "description": "The path to the local Git repository", "type": "string" }, "script": { "description": "Script content for the hook (for create action)", "type": "string" } }, "required": [ "repo_path", "action" ], "type": "object" }

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/bsreeram08/git-commands-mcp'

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