Labsco
gorosun logo

Unified Diff MCP Server

โ˜… 12

from gorosun

Beautiful HTML and PNG diff visualization using diff2html, designed for filesystem edit_file dry-run output with high-performance Bun runtime.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Unified Diff MCP Server

smithery badge

Beautiful diff visualization for Claude Desktop. Transform code diffs into stunning visual comparisons with GitHub Gist integration and local file output.

<img src="examples/screenshot.png" alt="Unified Diff Visualization Screenshot" width="800" style="max-width: 100%; height: auto;">

โœจ Features

  • ๐ŸŽจ Beautiful HTML diff visualization using diff2html
  • ๐ŸŒ GitHub Gist integration for instant sharing
  • ๐Ÿ“ Local file output (PNG/HTML)
  • ๐Ÿ”„ Auto-delete functionality for temporary diffs
  • ๐Ÿ–ฅ๏ธ Cross-platform support (Windows, macOS, Linux)
  • โšก High-performance with Bun runtime
  • ๐Ÿ›ก๏ธ Enhanced Security with multi-level protection for shared diffs
  • ๐Ÿ”’ Multi-level security (Low/Medium/High) for different use cases

๐Ÿ› ๏ธ Tools Overview

ToolPurposeOutputBest For
visualize_diff_html_contentBrowser display & sharingGitHub Gist + HTML preview URLQuick sharing, instant viewing
visualize_diff_output_fileLocal file storagePNG/HTML filesLocal storage, presentations

๐Ÿ“‹ Parameters Reference

Common Parameters

ParameterTypeDefaultDescription
diffstring(required)Unified diff text
formatstringside-by-sideDisplay format (line-by-line or side-by-side)
showFileListbooleantrueShow file list summary
highlightbooleantrueEnable syntax highlighting
oldPathstringfile.txtOriginal file path
newPathstringfile.txtModified file path
autoOpenbooleanfalseAuto-open in browser

GitHub Gist Specific

ParameterTypeDefaultDescription
expiryMinutesnumber30Auto-delete time (1-1440 minutes)
publicbooleanfalsePublic vs secret gist

Local File Specific

ParameterTypeDefaultDescription
outputTypestringhtmlOutput format (html or image)

๐ŸŒ Platform Support

PlatformAuto-OpenCommands
Windowsโœ…start (primary), explorer (fallback)
macOSโœ…open (primary), AppleScript (fallback)
Linuxโœ…xdg-open

๐Ÿ”ง Development

Development mode (with hot reload):

{
  "command": "bun",
  "args": ["--watch", "/path/to/unified-diff-mcp/src/index.ts"]
}

Production mode:

{
  "command": "bun",
  "args": ["run", "/path/to/unified-diff-mcp/src/index.ts"]
}

๐Ÿค Supported Clients

  • Claude Desktop (Primary)
  • Claude Code (CLI)
  • VS Code + MCP Extension
  • Cline and other MCP clients

๐Ÿ“„ License

MIT License - see LICENSE file for details.

Dependencies

LibraryLicensePurpose
diff2htmlMITHTML diff generation
playwright-coreApache 2.0Browser automation
@modelcontextprotocol/sdkMITMCP integration

Made with โค๏ธ for the Claude Desktop community