Skip to main content
Glama
archish9

GitHub MCP Server

by archish9

get_repo_status

Check git repository status to view current branch, uncommitted changes, and staged/modified/untracked files before committing.

Instructions

Get the current status of the git repository.

This tool provides a snapshot of the repository's state, including:

  • Initialization status (is it a git repo?)

  • Current branch name

  • Whether there are uncommitted changes

  • Lists of staged, modified, and untracked files

Use this tool before committing to verify what changes will be included, or to simply check the current context (branch, pending changes).

Args: repo_path: The absolute path to the repository.

Returns: A JSON-formatted string containing the repository status details.

Example JSON structure:
{
  "is_initialized": true,
  "current_branch": "main",
  "has_changes": true,
  "staged_files": ["file1.py"],
  "modified_files": ["file2.py"],
  "untracked_files": ["new_file.py"]
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes

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/archish9/github-mcp-small'

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