Skip to main content
Glama
yulinlina
by yulinlina

git-glimpse

Token-budgeted Git status, diffs, and logs for AI agents via CLI and MCP.

License Language Status Python License MCP


🎯 Why?

AI coding agents constantly need Git context, but raw git diff/log/status output can consume tens of thousands of tokens and overflow agent context windows. Existing Git MCP servers usually expose raw commands or full output; there is no small read-only adapter focused specifically on budgeted, agent-safe repository context.

Target audience: Developers building AI coding agents, MCP servers, Claude Code/Cursor workflows, and CLI power users who want compact Git context without flooding LLM context windows.

Related MCP server: GitPilot MCP

✨ Features

  • ✨ Token-budgeted Git status output with branch, changed files, and untracked summary

  • ✨ Token-budgeted Git diff output that truncates huge sections and lists omitted files

  • ✨ Token-budgeted Git log output with shortstat

  • ✨ Read-only MCP stdio server exposing glimpse_status, glimpse_diff, and glimpse_log tools

  • ✨ Single-file Python CLI usable directly from shell or scripts

πŸš€ Quick Start

# Install
pip install git-glimpse

# Run
git-glimpse --help

πŸ“¦ Installation

From Source

git clone https://github.com/YOUR_USERNAME/git-glimpse.git
cd git-glimpse
# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest -v

🎬 Demo

The GIF above was recorded using Charm VHS:

vhs < demo.tape

πŸ“– Usage

# Show help
git-glimpse --help

# Common usage examples
git-glimpse --example

πŸ—οΈ Architecture

graph LR
    A[Input] --> B[Core Engine]
    B --> C[Output]
    B --> D[Plugins]
    D --> E[Extensions]

🀝 Contributing

Contributions are welcome! Please:

  1. Fork the repo

  2. Create a feature branch (git checkout -b feature/amazing-feature)

  3. Commit your changes (git commit -m 'Add amazing feature')

  4. Push to the branch (git push origin feature/amazing-feature)

  5. Open a Pull Request

πŸ“„ License

MIT Β© 2026 β€” See LICENSE for details.


If this project helped you, please ⭐ star it!

Made with ❀️ and AI

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A Model Context Protocol server that provides Git version control operations as structured tools for AI coding agents. It enables LLMs to programmatically manage repositories through actions like committing changes, rolling back code, and comparing diffs.
    10
    Apache 2.0
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    A lightweight MCP server that enables AI assistants to manage local Git repositories by executing commands like status, add, and commit. It streamlines development workflows by providing repository context and diffs directly to the assistant.
  • A
    license
    Not graded
    quality
    D
    maintenance
    A token-optimized Git MCP server that reduces context window tokens by 59% while preserving full functionality, enabling AI assistants to interact with Git repositories using only 5 grouped tool operations.
    13
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that provides structure-aware code analysis (symbol trees, dependencies, docs) to reduce AI agent token consumption by up to 99%, along with Git commit intelligence.
    MIT

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/yulinlina/git-glimpse'

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