Skip to main content
Glama

Edit-MCP

find_in_file

Locate and extract specific patterns in a file using regular expressions, with optional context lines for better readability within the Edit-MCP server environment.

Instructions

Find occurrences of a pattern in a file

Input Schema

NameRequiredDescriptionDefault
contextLinesNoNumber of context lines to include before and after matches (default: 2)
pathYesPath to the file to search in
patternYesRegular expression pattern to search for

Input Schema (JSON Schema)

{ "properties": { "contextLines": { "description": "Number of context lines to include before and after matches (default: 2)", "type": "number" }, "path": { "description": "Path to the file to search in", "type": "string" }, "pattern": { "description": "Regular expression pattern to search for", "type": "string" } }, "required": [ "path", "pattern" ], "type": "object" }
Install Server

Other Tools from Edit-MCP

Related Tools

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/mixelpixx/microsoft-edit-mcp'

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