Skip to main content
Glama
Ray0907

Git MCP Server

by Ray0907

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GIT_TOKENYesPersonal Access Token (e.g., ghp_... for GitHub or glpat-... for GitLab)
LOG_LEVELNoLog level: debug, info, warn, errorinfo
GIT_API_URLNoAPI URL (auto-detected from provider). Use for GitHub Enterprise or Self-Hosted GitLab.
GIT_PROVIDERNoProvider type: gitlab or githubgitlab
GIT_AUTH_TYPENoAuth type: bearer or private-tokenbearer
GIT_READ_ONLYNoDisable write operationsfalse

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_file_contentsB

Get the contents of a file or directory from a repository

get_repository_treeC

List files and directories in a repository. Use recursive=true to get full tree.

push_filesA

Push multiple files to a repository in a single commit. Supports create, update, delete, and move actions.

create_branchA

Create a new branch in the repository. Use this before making code changes to work on a separate branch.

list_branchesB

List branches in a repository. Optionally search for specific branches.

list_commitsC

List commits in a repository. Filter by branch, path, date range, or author.

search_codeB

Search for code in a repository. Returns matching files and lines.

get_issueC

Get details of a specific issue in a project

list_issuesC

List issues in a project with optional filters

create_issueC

Create a new issue in a project

update_issueC

Update an existing issue in a project

get_pull_requestB

Get details of a pull request (merge request in GitLab)

get_pull_request_diffsC

Get the changes/diffs of a pull request to see what files were modified

list_pull_requestsC

List pull requests (merge requests in GitLab) with optional filters

create_pull_requestC

Create a new pull request (merge request in GitLab)

merge_pull_requestC

Merge a pull request (merge request in GitLab)

get_pipelineC

Get details of a specific CI/CD pipeline (workflow run in GitHub)

list_pipelinesB

List CI/CD pipelines (workflow runs in GitHub) with optional filters

list_pipeline_jobsC

List all jobs in a CI/CD pipeline to see results

get_job_logC

Get the log/trace output of a CI/CD job

create_commentC

Add a comment to an issue or pull request

list_commentsC

List all comments on an issue or pull request

get_meB

Get information about the currently authenticated user.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/Ray0907/git-mcp-server'

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