Skip to main content
Glama
mcp-sjis-server

mcp-sjis-server

by fukumen

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
sjis_readA

Shift JIS/CP932 ファイルを読み込み、UTF-8 文字列として返します。terminal の cat/head/tail の代わりに使用してください。出力形式は '行番号: 行内容' の連結テキストで、先頭にファイル情報のヘッダ行、末尾に EOF マーカーが付きます。大きなファイルには startLine と endLine を使用してください。最大2000行まで読み込み可能。1行2000文字を超える場合は切り詰められます。画像やその他のバイナリファイルの読み込みには対応していません。

注意: ファイルの行末コード(CRLF/LF/CR)はそのまま出力されます。読み込んだ内容を編集する際は、元の行末コードを維持するよう正しく指定してください。

sjis_writeA

Shift JIS/CP932 エンコーディングでファイルを書き込みます。terminal の echo/cat ヒアドキュメントの代わりに使用してください。ファイルの内容を完全に上書きします — 部分的な編集には sjis_patch を使用してください。既存ファイルは検出された文字コードのまま上書きし、新規ファイルは Shift JIS で書き込みます。

注意: content に指定した行末コード(CRLF/LF/CR)はそのままファイルに書き込まれます。既存ファイルの行末コードを維持する場合は、読み込んだ内容の行末コードをそのまま使用してください。

sjis_patchA

Shift JIS/CP932 ファイル内のテキストを置換します。terminal の sed/awk の代わりに使用してください。長い文字列や複雑な置換に適しています。変更結果の diff を返します。

REPLACE MODE (mode='replace', デフォルト): ファイル内の一意の文字列を検索し、置換します。REQUIRED PARAMETERS: path, oldText, newText.

注意: oldText はファイル内の文字列をそのまま指定してください。oldText / newText 内の行末コード(CR/LF/CRLF)は文字として扱われ、行としての制御は行いません(正規化・変換なし)。複数箇所で一致した場合はエラーになります。すべて置き換える場合は replaceAll: true、一部のみ置き換える場合は oldText に前後の文脈を含めてファイル内で一意にしてください。

PATCH MODE (mode='patch'): V4A マルチファイルパッチを適用します。REQUIRED PARAMETERS: mode, patch.

hunk 内の行末コード(CR/LF/CRLF)は行の区切りとして機能し、自由に混在できます。書いたとおりに old/new に反映されます(変換・正規化はしません)。@@ 行は hunk の開始を示すマーカーです(省略可能。内容はマッチに使用されません)。

注意: PATCH MODE は 'Update File' 操作のみをサポートします。'Add File', 'Delete File', 'Move File' は未対応です。

sjis_grepA

Shift JIS/CP932 エンコーディングのファイルやディレクトリから、指定した正規表現パターン(JavaScript/ECMAScript準拠)を検索します。terminal の grep/rg/find の代わりに使用してください。includeGlob でファイル名のglobパターン(例: '.ts', 'README.{md,txt}')に検索対象を絞り込めます。.git ディレクトリは常に除外されます。glob 未指定時はバイナリ形式(png/pdf/zip 等)のファイルも除外します。

outputMode に 'files_only' を指定するとマッチしたファイルパスの一覧のみを返します。context でマッチ行の前後に含める行数を指定できます(content モードのみ有効)。limit と offset で結果をページングできます(limit のデフォルトは100、content モードではマッチ行数、files_only ではファイル数を数えます)。

注意: 検索結果の行末コード(CRLF/LF/CR)は元のファイルのままです。マッチ行は行頭の空白も含め元の行のまま返します。正規表現として一致しない場合、パターンにメタ文字が含まれていればリテラル一致の件数をヒントとして返します。行が2000文字を超える場合は切り詰められます。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 4 tools

Disambiguation5/5

Each tool maps to a clearly distinct file operation: read, write (full overwrite), patch (targeted replacement), and grep (search). Descriptions explicitly steer agents away from one another (e.g. write points to patch for partial edits). No plausible misselection scenario remains.

Naming Consistency5/5

All four tools follow a strict sjis_<verb> pattern with consistent lowercase snake_case verbs (read, write, patch, grep). The shared encoding prefix makes the set instantly recognizable.

Tool Count5/5

Four tools is exactly the minimal complete surface for an encoding-specific file-editing toolkit: view, create/overwrite, modify, and search. Nothing feels redundant or missing at the count level.

Completeness4/5

Read/write/patch/grep cover the core edit lifecycle and no path is a dead end for the stated purpose. Minor gaps exist: patch explicitly does not support add/delete/move file operations, and there is no directory listing or file-delete tool, so some housekeeping tasks fall outside the surface.

Maintenance

ActivitySlowing
ResponsivenessNo recent community issues