Skip to main content
Glama

MCP Server Diff TypeScript

by tatn

mcp-server-diff-typescript MCP Server

A Model Context Protocol server that provides unified diff generation capabilities.

This TypeScript-based MCP server implements a diff generation system. It provides a tool to generate unified diffs between two text strings, which is useful for comparing and analyzing text differences.

Features

Tools

  • get-unified-diff - Generate unified diff between two text strings
    • Takes oldString and newString as required parameters
    • Returns the difference in unified diff format
    • Uses the diff package for accurate difference detection
    • Includes 3 lines of context around changes

Installation

As a Global Package

npm install -g mcp-server-diff-typescript

As a Project Dependency

npm install mcp-server-diff-typescript

Usage

Using with Claude Desktop

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json

"mcpServers": { "mcp-server-diff-typescript": { "command": "npx", "args": [ "-y", "mcp-server-diff-typescript" ] } }

or Add the following configuration:

git clone https://github.com/tatn/mcp-server-diff-typescript.git cd mcp-server-diff-typescript npm install npm run build
"mcpServers": { "mcp-server-diff-typescript": { "command": "node", "args": [ "/path/to/mcp-server-diff-typescript/build/index.js" ] } }

Debugging

To debug the MCP server:

npx @modelcontextprotocol/inspector npx -y mcp-server-diff-typescript
npx @modelcontextprotocol/inspector node /path/to/mcp-server-diff-typescript/build/index.js
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

This server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.

  1. Features
    1. Tools
  2. Installation
    1. As a Global Package
    2. As a Project Dependency
  3. Usage
    1. Using with Claude Desktop
    2. Debugging

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.
    Last updated -
    1
    441
    10
    JavaScript
    Apache 2.0
  • A
    security
    A
    license
    A
    quality
    This MCP server provides unified diffs of two text inputs using Python's standard library difflib.
    Last updated -
    1
    7
    Python
    MIT License
    • Apple
  • A
    security
    A
    license
    A
    quality
    compare 2 text or data (supports text diffs, json, json5, yaml, toml, xml and html). powered by jsondiffpatch
    Last updated -
    1
    448
    5,110
    TypeScript
    MIT License
    • Apple
  • A
    security
    F
    license
    A
    quality
    A lightweight server that provides detailed text analysis, counting total characters, characters without spaces, letters, numbers, and symbols for AI assistants like Claude Desktop and GitHub Copilot.
    Last updated -
    1
    2
    JavaScript
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tatn/mcp-server-diff-typescript'

If you have feedback or need assistance with the MCP directory API, please join our Discord server