Generate and visualize unified diffs as HTML or PNG with GitHub Gist sharing and local file output.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Unified Diff MCP.
Beautiful diff visualization for Claude Desktop. Transform code diffs into stunning visual comparisons with GitHub Gist integration and local file output.
| Tool | Purpose | Output | Best For |
|---|---|---|---|
visualize_diff_html_content | Browser display & sharing | GitHub Gist + HTML preview URL | Quick sharing, instant viewing |
visualize_diff_output_file | Local file storage | PNG/HTML files | Local storage, presentations |
| Purpose | Recommended Prompt | Tool Used | Output |
|---|---|---|---|
| Quick Preview | Please visualize and preview the following diff:ไปฅไธใฎdiffใๅฏ่ฆๅใใฆใใฌใใฅใผใใฆใใ ใใ | visualize_diff_html_content | GitHub Gist + HTML preview URL |
| Local Storage | Please visualize and save the following diff to a file:ไปฅไธใฎdiffใๅฏ่ฆๅใใฆใใกใคใซใซไฟๅญใใฆใใ ใใ | visualize_diff_output_file | Local HTML/PNG file |
| Share with Others | Please visualize the following diff and create a shareable link:ไปฅไธใฎdiffใๅฏ่ฆๅใใฆๅ
ฑๆใชใณใฏใไฝๆใใฆใใ ใใ | visualize_diff_html_content | GitHub Gist with shareable URL |
| Image Export | Please visualize and save the following diff as a PNG image:ไปฅไธใฎdiffใๅฏ่ฆๅใใฆPNG็ปๅใงไฟๅญใใฆใใ ใใ | visualize_diff_output_file | Local PNG image |
| Code Review | Please visualize the following diff in side-by-side format:ไปฅไธใฎdiffใside-by-sideๅฝขๅผใงๅฏ่ฆๅใใฆใใ ใใ | Either tool | Side-by-side comparison |
| Documentation | Please visualize and save the following diff as an HTML file:ไปฅไธใฎdiffใๅฏ่ฆๅใใฆHTMLใใกใคใซใงไฟๅญใใฆใใ ใใ | visualize_diff_output_file | Local HTML file |
| ๐ Secure Sharing | Please visualize this diff with high security:ไปฅไธใฎdiffใ้ซใปใญใฅใชใใฃใงๅฏ่ฆๅใใฆใใ ใใ | visualize_diff_html_content | Secret Gist with auto-delete |
| Variable | Description | Default |
|---|---|---|
GITHUB_TOKEN | GitHub Personal Access Token (for Gist integration) | Required for visualize_diff_html_content |
DEFAULT_AUTO_OPEN | Auto-open generated files | false |
DEFAULT_OUTPUT_MODE | Default output format (html or image) | html |
gist scopemacOS:
Windows:
Configuration template:
| Parameter | Type | Default | Description |
|---|---|---|---|
diff | string | (required) | Unified diff text |
format | string | side-by-side | Display format (line-by-line or side-by-side) |
showFileList | boolean | true | Show file list summary |
highlight | boolean | true | Enable syntax highlighting |
oldPath | string | file.txt | Original file path |
newPath | string | file.txt | Modified file path |
autoOpen | boolean | false | Auto-open in browser |
| Parameter | Type | Default | Description |
|---|---|---|---|
expiryMinutes | number | 30 | Auto-delete time (1-1440 minutes) |
public | boolean | false | Public vs secret gist |
| Parameter | Type | Default | Description |
|---|---|---|---|
outputType | string | html | Output format (html or image) |
| Platform | Auto-Open | Commands |
|---|---|---|
| Windows | โ | start (primary), explorer (fallback) |
| macOS | โ | open (primary), AppleScript (fallback) |
| Linux | โ | xdg-open |
Development mode (with hot reload):
Production mode:
When GitHub Token isn't available or for secure sharing, you can choose from multiple security levels:
| Security Level | Configuration | Features | Use Cases |
|---|---|---|---|
| ๐ข Low | Secret Gist + 60min auto-delete | URL-only access | Code examples, learning |
| ๐ก Medium | Secret Gist + Password + 30min auto-delete | URL + Access code required | Team reviews |
| ๐ด High | Secret Gist + Password + 15min auto-delete | URL + Access code + Short duration | Sensitive code |
Response Example:
When GitHub Token is unavailable, the system falls back to local files:
For detailed setup and integration guides:
MIT License - see LICENSE file for details.
| Library | License | Purpose |
|---|---|---|
| diff2html | MIT | HTML diff generation |
| playwright-core | Apache 2.0 | Browser automation |
| @modelcontextprotocol/sdk | MIT | MCP integration |
Made with โค๏ธ for the Claude Desktop community
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gorosun-unified-diff-mcp)<a href="https://allmcps.com/mcp/gorosun-unified-diff-mcp"><img src="https://allmcps.com/api/badge/gorosun-unified-diff-mcp?style=directory" alt="Unified Diff MCP on AllMCPs" /></a>