text_file_read_and_refactor_mcp
Text File Read And Refactor MCP
トークン効率の良いPython stdio MCPサーバー。安全なテキストファイルの検索、読み取り、リファクタリングツールを公開します。ツールはファイルのBOMとコードページを自動解決し、編集ツールは元のエンコーディングとBOMでファイルを保存します。
Glama.AI
GitHubリポジトリ
GitHubリポジトリは、プロジェクトの厳選された公開ミラーです。アクティブな開発(実験的なコードやプライベートな研究ノートを含む)はプライベートリポジトリで行われ、選択されたスナップショットが定期的にここに公開されます。
インストール
uvをインストールします: https://docs.astral.sh/uv/getting-started/installation/MCPクライアントを設定して、
uvx経由でサーバーを実行します:
{
"mcpServers": {
"text-file-read-and-refactor": {
"command": "uvx",
"args": [
"text-file-read-and-refactor-mcp"
]
}
}
}Related MCP server: MCP File Context Server
ツール
Sliceの概念:slice(start: integer, stop: integer)の類似物。範囲の開始インデックスと終了インデックスを格納します。
Boundaryの概念:Boundary(text: string, type: Enum[text, word, dev_word, regex])の類似物。
Spanの概念:Span(left_boundary: Boundary, right_boundary: Boundary)の類似物。これにより、"my_config_param:"と";"の間のテキストを取得や"%my_regex_1%"と"%my_regex_2%"の間のテキストを"my_text"に置換などの検索/置換操作が可能になります。
読み取り専用ツール:
text_file__list_allowed_directories- 疑似コード: "text_file__list_allowed_directories() -> List[directory_path]"text_file__file_content_length- 疑似コード: "text_file__file_content_length() -> integer_characters_num"text_file__read_slice- 疑似コード: "text_file__read_slice(characters_slice) -> text"text_file__file_lines_num- 疑似コード: "text_file__file_lines_num() -> integer_lines_num"text_file__read_content_by_line_range- 疑似コード: "text_file__read_content_by_line_range(lines_slice) -> text"text_file__find_text- 疑似コード: "text_file__find_text(text, type: Enum[text, word, dev_word, regex]) -> {found, result?: {slice, lines, text}}"text_file__find_all_text_occurrences- 疑似コード: "text_file__find_all_text_occurrences(text, type: Enum[text, word, dev_word, regex], result_index_start, result_index_stop) -> List[{found, result: {slice, lines, text}}]"text_file__expand_slice_to_lines- 疑似コード: "text_file__expand_slice_to_lines(characters_slice) -> lines_slice"text_file__find_span_boundaries- 疑似コード: "text_file__find_span_boundaries(left_boundary, right_boundary) -> Tuple[left_boundary_characters_slice, right_boundary_characters_slice]"text_file__find_span_between_boundaries- 疑似コード: "text_file__find_span_between_boundaries(left_boundary, right_boundary) -> text"。例:text_file__find_span_between_boundaries("my_config_param:", ";")は文字列" my_value"を返します。text_file__find_span_with_boundaries- 疑似コード: "text_file__find_span_with_boundaries(left_boundary, right_boundary) -> text"。例:text_file__find_span_with_boundaries("my_config_param:", ";")は文字列"my_config_param: my_value;"を返します。
編集ツール:
text_file__replace_content_by_line_range- 疑似コード: "text_file__replace_content_by_line_range(text, lines_slice)"text_file__replace_slice- 疑似コード: "text_file__replace_slice(text, characters_slice)"text_file__replace_text- 疑似コード: "text_file__replace_slice(old_text, new_text)"text_file__replace_span_between_boundaries- 疑似コード: "text_file__replace_span_between_boundaries(text, left_boundary, right_boundary)"text_file__replace_span_with_boundaries- 疑似コード: "text_file__replace_span_with_boundaries(text, left_boundary, right_boundary)"text_file__patch_spans_by_boundary_patterns- 疑似コード: "text_file__patch_spans_by_boundary_patterns(List[Tuple[text, left_boundary, right_boundary]])"
Cengal
Cengalに基づく
Cengalを使用したプロジェクト
InterProcessPyObjects - 高性能パッケージ。共有メモリを介した驚異的な高速プロセス間通信を実現し、Pythonオブジェクトをプロセス間で極めて効率的に共有できるようにします。
cengal_app_dir_path_finder - OS固有のアプリケーションディレクトリを簡単に取得するための統一APIを提供するPythonモジュール。Windows、Linux、macOSでのデータ管理を強化します。
flet_async - Fletを非同期にし、Cengal.coroutinesとasyncioの両方をFlet(FlutterベースのUI)に導入するラッパー。
justpy_containers - JustPyのラッパー。JustPy(VueJSベースのUI)により多くのセキュリティと本番環境に必要な機能を提供します。
Bensbach - Unreal Engine 3のバイトコードからLispライクなスクリプトへの逆コンパイラ、およびUnreal Engine 3のバイトコードへのコンパイラ。ゲーム改造目的で作成されました。
Realistic-Damage-Model-mod-for-Long-War - オリジナルのXCOM:EWとMOD Long Warの両方のためのMOD。Bensbachを使用して作成され、BensbachはCengalを使用して作成されました。
SmartCATaloguer.com - 画像(タグ)、音楽アルバム(ジャンルタグ)、アプリ(カテゴリ)のTagDBベースのカタログ。
ライセンス
Copyright © 2026 ButenkoMS. All rights reserved.
Licensed under the Apache License, Version 2.0.
Maintenance
Related MCP Servers
- AlicenseAqualityCmaintenanceA line-oriented text file editor. Optimized for LLM tools with efficient partial file access to minimize token usage.6198MIT
- AlicenseBqualityFmaintenanceA Model Context Protocol server that enables LLMs to read, search, and analyze code files with advanced caching and real-time file watching capabilities.61339MIT
- AlicenseBqualityFmaintenanceAn open source implementation of the Claude built-in text editor tool versions: text\_editor\_20241022 (Claude 3.5 Sonnet) text\_editor\_20250124 (Claude 3.7 Sonnet)15236MIT
- AlicenseAqualityDmaintenanceEnables comprehensive file operations including reading, writing, searching, and editing files with advanced features like regex-based replacements, line-specific modifications, and directory-wide search capabilities. Provides 8 robust tools for safe file manipulation with content verification and detailed error handling.8161MIT
Related MCP Connectors
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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