search_replace_file
Searches for content in a file and replaces it with new content.
How to use it
search_replace_file is exposed by the Vsc MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the search_replace_file tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL VSC MCP LISTINGOther tools in Vsc MCP (6)
Edits a symbol (function, class, method, etc.) by name and type in a given file using LSP.
Finds all references to a symbol (function, class, etc.) by name and type in a given file using LSP.
Fetches code errors and issues for a specific file using the LSP textDocument/diagnostic API.
Reads the content of a file.
Reads a symbol (function, class, method, etc.) by name and type in a given file using LSP.
Creates a new file or overwrites an existing file with the provided content.