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

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

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
    -
    quality
    -
    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
    -
    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.
    22
    MIT
  • A
    license
    -
    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

View all related MCP servers

Related MCP Connectors

  • User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.

  • AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

View all MCP Connectors

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