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.
README
GitViz MCP: Animated Log & History
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
- Download the
.vsixfile from releases. - Open VS Code.
- Run
Extensions: Install from VSIX...from the Command Palette. - Select the downloaded
.vsixfile.
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 Configbelow or run thegitVizMcp: Register MCP Servercommand from the VS Code Command Palette."servers": { "gitViz": { "type": "http", "url": "http://localhost:35555/gitviz/sse" } } -
For Cline Users:
Please configure using the
Cline Configbelow:"mcpServers": { "gitViz": { "url": "http://localhost:35555/gitviz/sse", "transportType": "sse" } } -
For Cursor Users:
This extension does not currently support Cursor.
Basic Operational Flow

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
- Select Repository: Use the "gitVizMcp: Set Repository" command to choose which repository to visualize.
- View Animation: The interface will show the before/after states of Git operations.
- Control Playback: Use the play/pause button to control animation timing.
- 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 visualizationget_git_log: Retrieve Git history for analysisvisualize_git_log: Create before/after visualizations of Git operationsget_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
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。