Skip to main content
Glama

apply_patch

Use this tool to apply a patch file to a workspace, with options for dry runs, reverse application, path stripping, and file backups. Integrates with Code MCP Server for VS Code interactions.

Instructions

Apply a patch file to the workspace

Input Schema

TableJSON 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

Latest Blog Posts

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