Skip to main content
Glama

MCP Server Diff TypeScript

by tatn

mcp-server-diff-typescript MCP 服务器

提供统一差异生成功能的模型上下文协议服务器。

这个基于 TypeScript 的 MCP 服务器实现了一个 diff 生成系统。它提供了一个工具来生成两个文本字符串之间的统一 diff,这对于比较和分析文本差异非常有用。

特征

工具

  • get-unified-diff - 在两个文本字符串之间生成统一的差异
    • oldStringnewString作为必需参数
    • 以统一差异格式返回差异
    • 使用diff包进行精确的差异检测
    • 包含 3 行有关变更的背景信息

安装

作为一个全球包裹

npm install -g mcp-server-diff-typescript

作为项目依赖项

npm install mcp-server-diff-typescript

用法

与 Claude Desktop 一起使用

要与 Claude Desktop 一起使用,请添加服务器配置:

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

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

或者添加以下配置:

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" ] } }

调试

要调试 MCP 服务器:

npx @modelcontextprotocol/inspector npx -y mcp-server-diff-typescript
npx @modelcontextprotocol/inspector node /path/to/mcp-server-diff-typescript/build/index.js

You must be authenticated.

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.

该服务器提供了一个工具来生成两个文本字符串之间的统一差异,以方便文本比较和分析。

  1. 特征
    1. 工具
  2. 安装
    1. 作为一个全球包裹
    2. 作为项目依赖项
  3. 用法
    1. 与 Claude Desktop 一起使用
    2. 调试

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    Server for using Dify. It achieves the invocation of the Dify workflow by calling the tools of MCP.
    Last updated -
    189
    Python
  • 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
    4
    Python
    MIT License
    • Apple
  • A
    security
    A
    license
    A
    quality
    Enables text extraction from web pages and PDFs, and execution of predefined commands, enhancing content processing and automation capabilities.
    Last updated -
    3
    TypeScript
    MIT License
  • A
    security
    A
    license
    A
    quality
    Provides comprehensive document processing, including reading, converting, and manipulating various document formats with advanced text and HTML processing capabilities.
    Last updated -
    16
    231
    11
    TypeScript
    MIT License

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