Skip to main content
Glama
Chromium Commits Query Tool

Chromium Commits Query Tool

by hydavinci

Chromium Commits Query Tool

Python License MCP

A comprehensive tool to query the latest commit information for files in the Chromium repository. Supports CLI usage, Python API integration, and Model Context Protocol (MCP) server functionality.

Features

  • šŸ” Query Latest Commits: Get detailed information about the most recent commit that modified any file in the Chromium repository

  • šŸ“Š Comprehensive Details: Retrieve commit hash, author, timestamp, message, and complete list of modified files

  • šŸ”§ Multiple Interfaces: Use via command line, Python API, or as an MCP server

  • šŸ“ Batch Processing: Process multiple files at once with batch operations

  • 🐳 Docker Support: Easy deployment with containerization

  • 🌐 MCP Integration: Seamless integration with AI agents and tools

Related MCP server: Android Code Search MCP Server

Installation

git clone https://github.com/hydavinci/chromium-commits.git
cd chromium-commits
uv sync

Using pip

git clone https://github.com/hydavinci/chromium-commits.git
cd chromium-commits
pip install -r requirements.txt

Using Docker

docker build -t chromium-commits .
docker run --rm chromium-commits

Usage

šŸ–„ļø Command Line Interface (CLI)

Navigate to the src directory and use the following commands:

cd src

# Basic usage - get latest commit for a single file
python get_chromium_commits.py "chrome/browser/ui/browser.cc"

# Save output to file
python get_chromium_commits.py -o result.txt "components/sync/service/data_type_manager.cc"

# Show detailed diff information
python get_chromium_commits.py --show-diff "chrome/browser/ui/browser.cc"

# Batch processing multiple files
python batch_get_commits.py files.txt

šŸ Python API

from src.get_chromium_commits import ChromiumCommitFetcher

# Initialize the fetcher
fetcher = ChromiumCommitFetcher()

# Get basic commit info
basic_info = fetcher.get_file_latest_commit("chrome/browser/ui/browser.cc")

# Get detailed commit info with all modified files
detailed_info = fetcher.get_file_commit_info(
    "chrome/browser/ui/browser.cc", 
    detailed=True, 
    show_diff=True
)

print(detailed_info)

šŸ”— MCP Server

Start the MCP server for integration with AI agents:

cd src
python server.py

The server provides the get_chromium_latest_commit tool that can be used by MCP-compatible clients.

šŸ“– Example Usage

See src/example_usage.py for a comprehensive demonstration of the Python API:

cd src
python example_usage.py

šŸ“‹ Example Output

=============================================================
Latest Commit Information for: chrome/browser/ui/browser.cc
=============================================================

Commit Hash: a1b2c3d4e5f6789abcdef123456789abcdef1234
Author: developer@chromium.org
Author Email: developer@chromium.org
Commit Time: 2024-12-20 15:30:45 UTC
Commit Message: [Chrome] Improve browser window management and memory optimization

Files modified in this commit (Total: 15):
[MODIFIED] chrome/browser/ui/browser.cc
[MODIFIED] chrome/browser/ui/browser.h
[MODIFIED] chrome/browser/ui/views/frame/browser_view.cc
[MODIFIED] chrome/browser/memory/tab_manager.cc
[ADDED] chrome/browser/ui/browser_memory_coordinator.cc
[ADDED] chrome/browser/ui/browser_memory_coordinator.h
[MODIFIED] chrome/test/base/browser_test_base.cc
...

Diff Details:
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -123,6 +123,10 @@ void Browser::CreateTabContents() {
   web_contents->SetDelegate(this);
+  
+  // Initialize memory coordinator for better resource management
+  memory_coordinator_ = std::make_unique<BrowserMemoryCoordinator>(this);
+  memory_coordinator_->Initialize();
 }

šŸ—‚ļø Common File Paths

Here are some frequently queried file paths in the Chromium repository:

Core Chrome Browser

cd src
python get_chromium_commits.py "chrome/browser/ui/browser.cc"
python get_chromium_commits.py "chrome/browser/chrome_browser_main.cc"
python get_chromium_commits.py "chrome/browser/profiles/profile_manager.cc"
python get_chromium_commits.py "third_party/blink/renderer/core/dom/document.cc"
python get_chromium_commits.py "third_party/blink/renderer/core/html/parser/html_parser.cc"
python get_chromium_commits.py "third_party/blink/renderer/core/css/css_parser.cc"

Component Libraries

python get_chromium_commits.py "components/sync/service/data_type_manager.cc"
python get_chromium_commits.py "components/autofill/core/browser/autofill_manager.cc"
python get_chromium_commits.py "components/password_manager/core/browser/password_manager.cc"

Build and Configuration

python get_chromium_commits.py "BUILD.gn"
python get_chromium_commits.py "DEPS"
python get_chromium_commits.py ".gn"

Content/Web Platform

python get_chromium_commits.py "content/browser/renderer_host/render_process_host_impl.cc"
python get_chromium_commits.py "content/renderer/render_frame_impl.cc"

šŸ“ Project Structure

chromium-commits/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ get_chromium_commits.py    # Main CLI tool and ChromiumCommitFetcher class
│   ā”œā”€ā”€ batch_get_commits.py       # Batch processing utility
│   ā”œā”€ā”€ example_usage.py           # Usage examples and demonstrations
│   └── server.py                  # MCP server implementation
ā”œā”€ā”€ pyproject.toml                 # Project configuration and dependencies
ā”œā”€ā”€ uv.lock                        # Dependency lock file
ā”œā”€ā”€ Dockerfile                     # Docker container configuration
ā”œā”€ā”€ smithery.yaml                  # Smithery MCP server configuration
ā”œā”€ā”€ LICENSE                        # MIT license
└── README.md                      # This documentation

āš™ļø Requirements

  • Python: 3.10 or higher

  • Dependencies:

    • requests>=2.31.0 (HTTP requests to Chromium Gitiles API)

    • mcp>=1.0.0 (Model Context Protocol server functionality)

  • Network: Internet connection to access Chromium Gitiles API

šŸš€ API Reference

ChromiumCommitFetcher Class

Methods

  • get_file_latest_commit(file_path: str) -> Optional[Dict]

    • Returns basic commit information for the latest change to the specified file

  • get_commit_details(commit_hash: str) -> Optional[Dict]

    • Returns detailed information about a specific commit including all modified files

  • get_file_commit_info(file_path: str, detailed: bool = False, show_diff: bool = False) -> Optional[str]

    • Returns formatted commit information with optional details and diff

šŸ”§ Configuration

The tool uses the Chromium Gitiles API and requires no authentication. All requests are made to:

https://chromium.googlesource.com/chromium/src

šŸ¤ Contributing

  1. Fork the repository

  2. Create a feature branch: git checkout -b feature-name

  3. Make your changes and add tests

  4. Commit your changes: git commit -am 'Add some feature'

  5. Push to the branch: git push origin feature-name

  6. Submit a pull request

šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

Available Tools

1 tool
get_chromium_latest_commitA
MCP handler to get the latest commit information for a specified file in Chromium repository

Args:
    file_path (str): Relative path of the file in Chromium repository (e.g., "components/sync/service/data_type_manager.cc")

Returns:
    str: Formatted commit information including hash, author, message, modified files list, and diff details

Inputs: file_path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined as retrieving the latest commit information for a specified file in the Chromium repository, making it distinct by default.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect. The tool name 'get_chromium_latest_commit' follows a clear verb_noun pattern, which would be consistent if more tools were added, but as a standalone, it sets a good precedent.

    Tool Count2/5

    A single tool is too few for a server named 'Chromium Commits Query Tool', which suggests a broader scope for querying commits. This minimal set limits functionality, as it only handles the latest commit for a file, lacking operations like searching commits, getting commit history, or querying by other criteria.

    Completeness2/5

    The tool surface is severely incomplete for the implied domain of Chromium commit queries. It only provides the latest commit for a file, missing essential operations such as retrieving commit details by hash, listing commits over time, or filtering by author or date, which are typical for commit query tools.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Overleaf MCP server for ChatGPT, Claude and any AI agent: list projects, read file, edit file, compile project, add comment, reply to comment, accept tracked change and invite collaborator in your own Overleaf account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Overleaf yourself; Cotlet does not store your password and you need no Overleaf API key. About the official Overleaf API: Overleaf has no public API to read or change existing projects (checked 5 Nov 2026). Its only API, Open in Overleaf, sends LaTeX in one direction to create a new project. Setup and FAQ: https://cotlet.dev/integrations/overleaf-api-mcp-server

    • reMarkable MCP server for ChatGPT, Claude and any AI agent: list files and folders, import PDF or EPUB, rename file, move file to folder, move file to trash and read subscription and payment history in your own reMarkable account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to reMarkable yourself; Cotlet does not store your password and you need no reMarkable API key. About the official reMarkable API: reMarkable has no public API and no official MCP server for its cloud (checked 25 Oct 2026). Files move through the desktop and mobile apps, the Import button at my.remarkable.com, the Read on reMarkable browser extension and Office add-ins, and the Google Drive, Dropbox and OneDrive integrations on the tablet. Setup and FAQ: https://cotlet.dev/integrations/remarkable-api-mcp-server

    • Garmin Connect MCP server for ChatGPT, Claude and any AI agent: list activities, download FIT file, read sleep and HRV, get training status, create workout and schedule workout in your own Garmin Connect account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Garmin Connect yourself; Cotlet does not store your password and you need no Garmin Connect API key. About the official Garmin Connect API: Yes, in part (checked 27 Oct 2026). Garmin reopened its Connect Developer Program on 21 Oct 2026. Setup and FAQ: https://cotlet.dev/integrations/garmin-api-mcp-server

      https://cotlet.dev/mcp/v1/garmin
    • Redmine MCP server for ChatGPT, Claude and any AI agent: create issue, update issue, log time, list my issues, add comment and list projects in your own Redmine account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Redmine yourself; Cotlet does not store your password and you need no Redmine API key. About the official Redmine API: Yes, Redmine has a REST API (checked 16 Oct 2026). Issues, projects, users and time entries are marked Stable, in JSON or XML, with an API key per user; an administrator must first turn on Enable REST API under Administration > Settings > API. Setup and FAQ: https://cotlet.dev/integrations/redmine-api-mcp-server

      https://cotlet.dev/mcp/v1/redmine

    Related MCP Servers

    • A
      license
      A
      quality
      Not graded
      maintenance
      Enables AI assistants to search and explore Chromium and PDFium source code, check Gerrit code reviews with test results and bot errors, search issues, and analyze commit history through Google's official APIs.
      23
      26 npm
      19
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables searching and browsing Android source code across projects like Android, AndroidX, and Android Studio via cs.android.com. It provides tools for regex-based code searches, full file content retrieval, and symbol autocomplete suggestions.
      4
      23 npm
      29
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables querying git commit history to analyze when and why code changes happened, providing authorship context and diffs for specific modules.
      1
      Creative Commons Zero v1.0 Universal