Skip to main content
Glama

Code MCP Server

by block

apply_patch

Modify workspace by applying a patch file, with options for dry run, reverse application, path stripping, and backup creation for controlled changes.

Instructions

Apply a patch file to the workspace

Input Schema

NameRequiredDescriptionDefault
backupNoCreate backup files
dryRunNoShow what would be done without making changes
patchFileYesPath to patch file
reverseNoApply patch in reverse
stripPathsNoNumber of path components to strip

Input Schema (JSON Schema)

{ "properties": { "backup": { "description": "Create backup files", "type": "boolean" }, "dryRun": { "description": "Show what would be done without making changes", "type": "boolean" }, "patchFile": { "description": "Path to patch file", "type": "string" }, "reverse": { "description": "Apply patch in reverse", "type": "boolean" }, "stripPaths": { "description": "Number of path components to strip", "type": "number" } }, "required": [ "patchFile" ], "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