Skip to main content
Glama
FI-Mihej

text_file_read_and_refactor_mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
text_file__list_allowed_directoriesA

Returns the filesystem directories this server is allowed to access. File paths used by other tools must be inside one of these directories. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context.

text_file__file_content_lengthA

Opens the text file, automatically resolving the BOM and codepage. Returns the number of characters in the decoded file content. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context.

text_file__read_sliceA

Opens the text file, automatically resolving the BOM and codepage. Allows you to read any section of the file content (or the entire content) using Python-style slicing. Provide slices as JSON objects matching Python slice(start, stop, step); omit fields for None, and never use step 0. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context.

text_file__file_lines_numA

Opens the text file, automatically resolving the BOM and codepage. Returns the number of lines in the decoded file content. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context.

text_file__read_content_by_line_rangeA

Opens the text file, automatically resolving the BOM and codepage. Reads complete lines selected by a Python-style line-number slice. Provide slices as JSON objects matching Python slice(start, stop, step); omit fields for None, and never use step 0. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context.

text_file__replace_content_by_line_rangeA

Opens the text file, automatically resolving the BOM and codepage. Replaces complete lines selected by a Python-style line-number slice, then writes the modified content back. Provide slices as JSON objects matching Python slice(start, stop, step); omit fields for None, and never use step 0. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context. The file is saved with its original encoding and BOM.

text_file__find_textA

Opens the text file, automatically resolving the BOM and codepage. Finds the first or last exact text, whole-word, or identifier-style word match within optional start/stop character offsets and returns its slice, or null if not found. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context.

text_file__expand_slice_to_linesA

Opens the text file, automatically resolving the BOM and codepage. Expands a character slice to cover complete lines and returns both the expanded character slice and selected line-number slice. Provide slices as JSON objects matching Python slice(start, stop, step); omit fields for None, and never use step 0. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context.

text_file__replace_sliceA

Opens the text file, automatically resolving the BOM and codepage. Replaces the content selected by a Python-style character slice, then writes the modified content back. Provide slices as JSON objects matching Python slice(start, stop, step); omit fields for None, and never use step 0. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context. The file is saved with its original encoding and BOM.

text_file__replace_textA

Opens the text file, automatically resolving the BOM and codepage. Replaces exact substring, whole-word, or identifier-style word matches within optional start/stop character offsets, then writes the modified content back. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context. The file is saved with its original encoding and BOM.

text_file__find_span_boundariesA

Opens the text file, automatically resolving the BOM and codepage. Finds matching left and right boundary markers described by the boundary_span object and returns their slices. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context.

text_file__find_span_between_boundariesB

Opens the text file, automatically resolving the BOM and codepage. Finds content between matching boundary markers described by the boundary_span object and returns the inner slice, or null if not found. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context.

text_file__find_span_with_boundariesB

Opens the text file, automatically resolving the BOM and codepage. Finds content plus its surrounding matching boundary markers and returns the full slice, or null if not found. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context.

text_file__replace_span_between_boundariesA

Opens the text file, automatically resolving the BOM and codepage. Replaces only the content between matching boundary markers, preserves the boundary markers, then writes the modified content back. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context. The file is saved with its original encoding and BOM.

text_file__replace_span_with_boundariesB

Opens the text file, automatically resolving the BOM and codepage. Replaces matching boundary markers together with the content between them, then writes the modified content back. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context. The file is saved with its original encoding and BOM.

text_file__patch_spans_by_boundary_patternsB

Opens the text file, automatically resolving the BOM and codepage. Applies one boundary-span replacement or an ordered list of boundary-span replacements, then writes the modified content back. Token-efficient: targets specific file content or returns compact structured results to reduce unnecessary context. The file is saved with its original encoding and BOM.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/FI-Mihej/text_file_read_and_refactor_mcp'

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