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_contents

Get the contents of a file or directory from a repository

get_repository_tree

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

push_files

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

create_branch

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

list_branches

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

list_commits

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

search_code

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

get_issue

Get details of a specific issue in a project

list_issues

List issues in a project with optional filters

create_issue

Create a new issue in a project

update_issue

Update an existing issue in a project

get_pull_request

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

get_pull_request_diffs

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

list_pull_requests

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

create_pull_request

Create a new pull request (merge request in GitLab)

merge_pull_request

Merge a pull request (merge request in GitLab)

get_pipeline

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

list_pipelines

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

list_pipeline_jobs

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

get_job_log

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

create_comment

Add a comment to an issue or pull request

list_comments

List all comments on an issue or pull request

get_me

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