MCPVault

new_text

MCP tool from MCP Workspace by MarcusJellinghaus

(string): Replacement text

How to use it

new_text is exposed by the MCP Workspace MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the new_text tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install MCP Workspace

$pip install -e .
FULL MCP WORKSPACE LISTING

Other tools in MCP Workspace (22)

append_file

Adds content to existing files

content

(string): Content to write to the file

delete_directory

Deletes a directory (empty, or a whole tree with recursive)

delete_this_file

Removes files from the filesystem

dir_path

(string): Path to the directory to delete (relative to project)

dry_run

(boolean, optional): Preview changes without applying (default: False)

edit_file

Makes selective edits using exact string matching

edits

(array): List of edit operations, each containing:

end_line

(integer, optional): Last line to return (1-based, inclusive). Must be provided together with startline.

file_path

(string): Path to the file to read (relative to project directory)

get_reference_projects

Lists available reference projects

list_directory

Lists files and directories in the project directory

list_reference_directory

Lists files in a reference project

move_file

Moves or renames files/directories (git-aware: uses git mv for tracked files, else filesystem move)

old_text

(string): Exact text to find and replace (must match exactly)

preserve_indentation

(boolean, default: False): Apply indentation from oldtext to newtext

read_file

Reads the contents of a file

read_reference_file

Reads files from reference projects

recursive

(boolean, optional): Delete the whole tree when True (default: False)

save_file

Creates or overwrites files atomically

start_line

(integer, optional): First line to return (1-based, inclusive). Must be provided together with endline.

with_line_numbers

(boolean, optional): Prefix each line with its line number. Defaults to True when a line range is specified, False for full reads.