Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LANGUAGENoOptional language setting for commit messages. Supported values: `en` (English), `zh` or `zh-CN` (Simplified Chinese), `zh-TW` (Traditional Chinese). The tool will prompt users to provide commit messages in the configured language.en
MGIT_CMDNoOptional mgit command to execute (can be full path)mgit
REPO_NAMEYesRequired repository name for push operations. Use `mgit list` (or `${MGIT_CMD} list`) to view available repository names.
PROJECT_NAMENoOptional project branding for tool descriptions

Tools

Functions exposed to the LLM to take actions

NameDescription
my-project-repo_mgit_push

[My Awesome Project] Execute mgit push command for repository "my-project-repo" with a commit message.

IMPORTANT:

  • You MUST call get_push_history tool FIRST to view the last 5 push records before using this tool

  • Confirm that the changes in this push have not been pushed before, otherwise modify the push message and push again

  • The repository name is configured via REPO_NAME environment variable

  • Language setting: en (default: en)

  • Push history check is enabled (CHECK_PUSH_HISTORY=true). You must review push history before pushing.

USAGE:

  1. First call get_push_history to view recent push records

  2. Then call this tool with the commit message parameter. Example: {message: "Update project files"}

Please provide the commit message in English language.

NOTE: If the push result contains a branch merge URL (such as a pull request URL), please output it to the user. If you can open a browser, you may also automatically open the URL.

my-project-repo_get_push_history

[My Awesome Project] Get the last 5 push history records for repository "my-project-repo". This tool MUST be called before using mgit_push to ensure the current changes have not been pushed before. After calling this tool, you can proceed with mgit_push.

my-project-repo_get_operation_logs

[My Awesome Project] Get operation logs

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/liliangshan/mcp-server-mgit'

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