Skip to main content
Glama

Code MCP Server

by block

compare_files

Compare two files and highlight differences in unified, side-by-side, inline, or context formats. Customize output with word-level changes, whitespace ignore, and context lines for precise analysis.

Instructions

Compare two files and show differences with multiple format options

Input Schema

NameRequiredDescriptionDefault
contextLinesNoNumber of context lines (default: 3)
file1YesFirst file path
file2YesSecond file path
formatNoDiff format
ignoreWhitespaceNoIgnore whitespace changes
label1NoLabel for first file
label2NoLabel for second file
wordDiffNoShow word-level differences

Input Schema (JSON Schema)

{ "properties": { "contextLines": { "description": "Number of context lines (default: 3)", "type": "number" }, "file1": { "description": "First file path", "type": "string" }, "file2": { "description": "Second file path", "type": "string" }, "format": { "description": "Diff format", "enum": [ "unified", "side-by-side", "inline", "context" ], "type": "string" }, "ignoreWhitespace": { "description": "Ignore whitespace changes", "type": "boolean" }, "label1": { "description": "Label for first file", "type": "string" }, "label2": { "description": "Label for second file", "type": "string" }, "wordDiff": { "description": "Show word-level differences", "type": "boolean" } }, "required": [ "file1", "file2" ], "type": "object" }

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/block/vscode-mcp'

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