Skip to main content
Glama
TripQi

Code Editor MCP Server

by TripQi

edit_block

Search and replace text in files with options for match validation, whitespace handling, and conflict detection to modify code or content.

Instructions

Search and replace text in a file.

Args: file_path: Absolute path to the file. old_string: Text to find. new_string: Replacement text. expected_replacements: Required match count (default 1). expected_mtime: Conflict detection timestamp. ignore_whitespace: Match with flexible whitespace. normalize_escapes: Unescape \n, \t, etc. in search. encoding: File encoding (utf-8, gbk, gb2312).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
old_stringYes
new_stringYes
expected_replacementsNo
expected_mtimeNo
ignore_whitespaceNo
normalize_escapesNo
encodingNoutf-8

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/TripQi/code-editor'

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