GitViz MCP

GitViz MCP

Visualizes Git history and commit logs with before/after animations for operations like merge, rebase, and cherry-pick. Integrates with AI assistants to provide Git analysis tools and smart command suggestions through natural language.

Category
访问服务器

README

GitViz MCP: Animated Log & History

Version Downloads Rating

A powerful VS Code extension that visualizes Git history and commit logs with animations, making Git operations intuitive and easy to understand.

💬 Give Us Feedback

Help us improve! Share your thoughts, suggestions, or issues via our feedback forms:

Your feedback makes a difference. We read every submission. 🙏

🚀 Boost Copilot with Git Commands

Want Copilot to better understand Git? 🤖✨ Just use #get_git_prompt!

This helps Copilot generate smarter suggestions for Git-related tasks.

Try something like this:

#get_git_prompt What is the commit message of the latest commit?

Features

  • Before/After Animations: Visualize how Git operations like merge, rebase, and cherry-pick transform your commit tree.
  • Interactive Controls: Play, pause animations.
  • Branch Structure: Clear visualization of branch relationships and merge points.
  • Commit Highlighting: Click to highlight specific commits in the tree.
  • Real-time Updates: Automatically reflects changes in your working directory.
  • Language Model Integration: Built-in tools for Git analysis and assistance.
  • Smart Repository Detection: Automatically detects and switches between repositories.
  • Enhanced Git Commands: Integrated AI tools for a better Git workflow.

Usage

Install the GitViz MCP Extension

You can install the extension in one of the following ways:

From VS Code Marketplace

Search for "GitViz MCP" in the VS Code Extensions view (Ctrl+Shift+X / Cmd+Shift+X) and click Install.

Manual Installation

  1. Download the .vsix file from releases.
  2. Open VS Code.
  3. Run Extensions: Install from VSIX... from the Command Palette.
  4. Select the downloaded .vsix file.

Configure Based on Your Environment

  • For Copilot Users:

    It is recommended to use the extension directly, as MCP Server setup is usually not required.

    If you still need to manually configure the MCP Server, refer to the Copilot Config below or run the gitVizMcp: Register MCP Server command from the VS Code Command Palette.

    "servers": {
        "gitViz": {
            "type": "http",
            "url": "http://localhost:35555/gitviz/sse"
        }
    }
    
  • For Cline Users:

    Please configure using the Cline Config below:

    "mcpServers": {
        "gitViz": {
            "url": "http://localhost:35555/gitviz/sse",
            "transportType": "sse"
        }
    }
    
  • For Cursor Users:

    This extension does not currently support Cursor.

Basic Operational Flow

demo video

Opening Git Visualizer

  • From Editor: Click the Git branch icon in the editor title bar.
  • From Command Palette: Ctrl+Shift+P → type "gitVizMcp: Open Git Log Viewer".

Basic Operations

  1. Select Repository: Use the "gitVizMcp: Set Repository" command to choose which repository to visualize.
  2. View Animation: The interface will show the before/after states of Git operations.
  3. Control Playback: Use the play/pause button to control animation timing.
  4. Zoom & Navigate: Use zoom controls to explore complex commit trees.

Repository Management

  • Auto Mode: Automatically switch repository based on the currently open file.
  • Manual Selection: Choose a specific repository from available options.
  • Multiple Workspaces: Supports multi-root workspaces.

Other Settings & Tools

Available Settings

Setting Default Description
gitVizMcp.port 35555 Port for MCP server
gitVizMcp.basePath "/gitviz" Base path for API endpoints
gitVizMcp.maxGitLogEntries 30 Maximum number of git log entries to fetch.

Note: If you change the gitVizMcp.port or gitVizMcp.basePath settings, you must also update the URL in your MCP Server configuration (e.g., Copilot Config or Cline Config) to match these new values.

Commands

Command Description
gitVizMcp: Open Git Log Viewer Open the main visualization interface
gitVizMcp: Set Repository Select which repository to visualize
gitVizMcp: Register MCP Server Register MCP server in VS Code settings
gitVizMcp: Restart Server Restart the MCP server

Language Model Tools

This extension provides AI tools for enhanced Git experience:

  • highlight_commit: Highlight specific commits in the visualization
  • get_git_log: Retrieve Git history for analysis
  • visualize_git_log: Create before/after visualizations of Git operations
  • get_git_prompt: Access Git-GPT assistance templates

Requirements

  • VS Code: Version 1.99.0 or higher
  • Git: Must be installed and accessible via command line

License

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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选