diff-patch-tools

Cloudflare Workers MCP server: diff-patch-tools

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
90%
Integridad del esquema
97%
Calidad de los nombres
80%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Hallazgos (2)

  • LOWTool 'apply_patch' description lacks action verben apply_patch
  • LOWTool 'three_way_merge' description lacks action verben three_way_merge

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~562Tokens (definiciones de herramientas)
~846 BTamaño de respuesta típico
Impacto mínimo en la atención (0.44% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "diff-patch-tools": {
      "url": "https://api.lazy-mac.com/diff-patch-tools/mcp"
    }
  }
}

Puntos de conexión remotos

https://api.lazy-mac.com/diff-patch-tools/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (6)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
⚪text_diff(original, modified, context, original_file, modified_file)

Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "original": {
      "type": "string",
      "description": "Original text"
    },
    "modified": {
      "type": "string",
      "description": "Modified text"
    },
    "context": {
      "type": "number",
      "description": "Context lines around each change (default 3)"
    },
    "original_file": {
      "type": "string",
      "description": "Label for the original file (default \"original\")"
    },
    "modified_file": {
      "type": "string",
      "description": "Label for the modified file (default \"modified\")"
    }
  },
  "required": [
    "original",
    "modified"
  ]
}
🟢json_diff(original, modified)

Compute a structural diff between two JSON values, showing added, removed, and replaced fields.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "original": {
      "description": "Original JSON value (object, array, or JSON string)"
    },
    "modified": {
      "description": "Modified JSON value (object, array, or JSON string)"
    }
  },
  "required": [
    "original",
    "modified"
  ]
}
🟡apply_patch(original, patch)

Apply a unified diff patch to an original text and return the patched result.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "original": {
      "type": "string",
      "description": "Original text to patch"
    },
    "patch": {
      "type": "string",
      "description": "Unified diff patch string"
    }
  },
  "required": [
    "original",
    "patch"
  ]
}
⚪three_way_merge(base, ours, theirs, ours_label, theirs_label)

Perform a three-way merge of base, ours, and theirs. Conflicts are marked with standard diff3 conflict markers.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "base": {
      "type": "string",
      "description": "Common ancestor text"
    },
    "ours": {
      "type": "string",
      "description": "Our version of the text"
    },
    "theirs": {
      "type": "string",
      "description": "Their version of the text"
    },
    "ours_label": {
      "type": "string",
      "description": "Label for ours in conflict markers (default \"ours\")"
    },
    "theirs_label": {
      "type": "string",
      "description": "Label for theirs in conflict markers (default \"theirs\")"
    }
  },
  "required": [
    "base",
    "ours",
    "theirs"
  ]
}
🟢diff_stats(diff)

Parse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "diff": {
      "type": "string",
      "description": "Unified diff string to analyse"
    }
  },
  "required": [
    "diff"
  ]
}
🟡patch_validate(original, patch)

Check whether a unified diff patch can be applied cleanly to an original text without actually applying it.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "original": {
      "type": "string",
      "description": "Original text"
    },
    "patch": {
      "type": "string",
      "description": "Unified diff patch string"
    }
  },
  "required": [
    "original",
    "patch"
  ]
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada6 herramientas
verificadoversión no registrada6 herramientas