Skip to main content
Glama

MCP Claude Code

by SDGLBL

content_replace

Search and replace text patterns across multiple files in a specified directory. Preview changes using dry-run mode without modifying files. Limited to allowed directories for secure operations.

Instructions

Replace a pattern in file contents across multiple files.

Searches for text patterns across all files in the specified directory that match the file pattern and replaces them with the specified text. Can be run in dry-run mode to preview changes without applying them. Only works within allowed directories.

Input Schema

NameRequiredDescriptionDefault
dry_runNoIf True, only preview changes without modifying files
file_patternNoFile name pattern to match (default: all files)*
pathYesPath to file or directory to search in
patternYesText pattern to search for in files
replacementYesText to replace the pattern with (can be empty string)

Input Schema (JSON Schema)

{ "properties": { "dry_run": { "default": false, "description": "If True, only preview changes without modifying files", "title": "Dry Run", "type": "boolean" }, "file_pattern": { "default": "*", "description": "File name pattern to match (default: all files)", "title": "File Pattern", "type": "string" }, "path": { "description": "Path to file or directory to search in", "minLength": 1, "title": "Path", "type": "string" }, "pattern": { "description": "Text pattern to search for in files", "minLength": 1, "title": "Pattern", "type": "string" }, "replacement": { "description": "Text to replace the pattern with (can be empty string)", "title": "Replacement", "type": "string" } }, "required": [ "pattern", "replacement", "path" ], "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/SDGLBL/mcp-claude-code'

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