Skip to main content
Glama

Code MCP Server

by block

preview_changes_enhanced

Preview code changes in multiple formats (unified, side-by-side, stat, word-diff) using context lines, whitespace control, and file pattern filters, tailored for VS Code via Code MCP Server.

Instructions

Enhanced change preview with multiple format options

Input Schema

NameRequiredDescriptionDefault
contextLinesNoNumber of context lines
cwdNoWorking directory
filePatternNoFile pattern filter
formatNoPreview format
ignoreWhitespaceNoIgnore whitespace changes

Input Schema (JSON Schema)

{ "properties": { "contextLines": { "description": "Number of context lines", "type": "number" }, "cwd": { "description": "Working directory", "type": "string" }, "filePattern": { "description": "File pattern filter", "type": "string" }, "format": { "description": "Preview format", "enum": [ "unified", "side-by-side", "stat", "word-diff" ], "type": "string" }, "ignoreWhitespace": { "description": "Ignore whitespace changes", "type": "boolean" } }, "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