fsguard-mcp
fsguard-mcp
ファイルシステム + git 用の MCP サーバーです。文字列のプレフィックス一致ではなく、シンボリックリンクを解決したパス封じ込めによって、すべての操作を許可されたディレクトリツリー内に制限します。
なぜ存在するのか
Anthropic 公式のファイルシステム / git MCP サーバー(@modelcontextprotocol/server-filesystem、modelcontextprotocol/servers の一部、89.7k★)には、10か月の間に2つのサーバーで計5件の独立したパス封じ込め CVE が存在し、今もその手口が生きています:
CVE-2025-53109 / CVE-2025-53110(filesystem、CVSS 8.4/7.3)— "allowed directory" の検査が素朴な
startsWith()によるプレフィックス一致を使っていたため、シンボリックリンクや、文字列プレフィックスを共有する だけの兄弟ディレクトリ(例:許可済みの/home/user-safeが/home/user-safe-evilにもマッチする)で回避でき、ファイルシステム全体の読み書きと、文書化された RCE 経路が生じました。CVE-2025-68143 / CVE-2025-68144 / CVE-2025-68145(git)—
git_initが無検証の任意のパスを受け入れ、git_diff/git_checkoutはユーザー制御の引数をそのままgitCLI へ渡していました(引数インジェクション)。さらに--repositoryによる封じ込めモードは、repo_pathが封じ込め対象ディレクトリの内部に収まったままであることを実際には検証していませんでした。CVE-2026-27735(git、このプロジェクトの開始の約2か月前に公開)— GitPython の
repo.index.add()で実装されたgit_addは、../形式のパスに対して作業ツリー境界を強制しないため、リポジトリの外にあるファイルをステージングし外部へ持ち出すことができました。文書化された RCE チェーン:書き込み可能なディレクトリでの
git_init→ "clean" フィルタを持つ悪意ある.git/config→ それを適用する.gitattributes→git_addがフィルタを実行 → 任意のシェルコマンドが動く。
これらはすべて、その関数に文字列/プレフィックスチェックを一つずつボルト留めする対処 でパッチ南部されました。境界の強制を、新しいツールがうっかり付け忘れないような場所へ移す人は誰もいなかったのです。最初の3件が「修正」されてから4か月後に4件目の CVE が着地したのは、まさにその構造によるものです。
Related MCP server: Secure Local Workspace MCP
fsguard-mcp が他とはどう違うか
安全性の基礎としての必須の一つのプリミティブを、常に使う。 ファイルシステムでも git でも、どのツールも他のことを何かする前に、同じ
ConfinedRoot(confined_path.pyを参照)で対象のパスを解決します。ツールごとにパスチェックを追加し忘ける、ということがありません。シンボリックリンク解決済み・コンポーネントベースの封じ込め(文字列的一致ではない)。 あるパスがルートに入るのは、そのパスの 完全に解決実パス(すべてのシンボリックリンクをたどったもの)が、ルート自身の解決済みの実パスを祖先とする実際のサプパスである場合だけです。判定は解決済みのパスに対して
Path.is_relative_to()で行い、文字列へのstartsWith()は使われません。これだけでも、CVE-2025-53109/53110 の同じ失敗の格式はなくなります。解決済みのルート/allowedを封じ込め対象とするチェックに/allowed-evilは絶対に入れません。パスのコンポーネントの比較は、つまり、文字列の中の prefix の比較ではないからです。コンテンツ起因や操作について
gitを shell で外部実行することは、決して行わない。 git の操作はdulwich経由で動きます。これは純Pythonによる git 実装で、ファイル・コンテンツ周りについてサブプロセスを起動しないし、ユーザー入力から構築した argv もありません。そして(決定的に)clean / smudge フィルタの実行もありません。これがないことが、前述の RCE チェーンが依存する部分です。ファイル・コンテンツの読み書きについて外部プロセスに渡す引数リストが存在しないので、このサーバーには引数インジェクションの面がないのです。(それでも、dulwich は実際、pre-commit/commit-msg/post-commitフックが存在すればsubprocess.call()で実行します — 実際のプロセス実行であり、コンテンツのフィルタリングとは無関係です。git_commitは必ずno_verify=Trueを渡して、フックを一律に無効化します。フックが偶然実行されないことには頼っていません。)書き込み操作は、既存の対象だけでなく親ディレクトリも検証する。 「対象がまだ存在しない」ことで生じるバグの分類をなくします。つまり、「このパスがルートの中に解決されるか」というチェックを存在しないパスに対して実行すると、シンボリックリンク用の解決ができません。そこを支える親ディレクトリ自体が、外部を指したシンボリックリンクだった場合も、その穴を塞げられるのです。存在しないパス・セグメントは、こうした処理の 前 に、ディスク上に何が存在するかとは関係なく、構文レベルの正規化として専用のパス代数で処理されます(
.と..を畳み込み)。このプロジェクトの初期バージョンは、正規化の前に封じ込み検査をしていたため、Windows(パス API が..を自動正規化する)ではテストが全部通り、Linux/macOS では条件次第で回避可能でした。今は直っていますし、この特定のケースをテストするテストもあります。ただその進行があって、このプロジェクトは「手元ではテストが全部通った」という報告に対して実に当然の疑いを持つようになっています。.git/configによってルート外へ操作を誘導できない。 dulwich はリポジトリ自身のcore.worktree設定を尊重します。さらに、パスの文字列から開き直すすべての git 操作は、内部でRepoを open し直します。つまり、呼び出し側がcore.worktreeをどこか外部に向けて.git/configを作り、その後の git ツールがすべて、もとから囲み込んだルートの外を静かに操作してしまう、というできました。これはパスごとの検査からは見えません(検査に通るのは封じ込めたリポジトリのディレクトリだけであり、dulwich が実際にどこへ向かったのかは見えていない)。この問題は、このプロジェクト自身の2周目のセキュリティ・レビューで見つかっており、このサーバーが公開する自分自身のツールだけを使ったリアルなファイル可読・外部持ち出し primitive で、このプロジェクトが対策しようとしていたどの CVE よりも大きいものでした。このため、すべての git ツールはcore.worktreeが設定されたリポジトリを開くことを拒否し、さらに実際に開いたRepoオブジェクトがそのワーキングパスを、検証済みのディレクトリと完全一致するとして報告してきます。UNC パスやドライブ違いのパスは、そのネットワークやディスクへの到達前に拒否する。
パラ host\share\...パスを解決すると、実際に Windows が SMB 接続を試みます。そして Windows はその接続をサーバー・プロセスとして認証しようとするので、これは「UNC パスによる強制的 NTLM 認証」=資格情報を奪う手法です。加え、到達不可のホストへの接続ではタイムアウトする間、サーバーが全体をブロックされてしまいます。ルートの解説された根拠となるドライブやホストが違う候補パスは、ファイルシステム・ネットワーク呼び出しの前に、低コストの文字列比較ではじかれてしまいます。NTFS の代替データストリーム(file.txt:hidden)もまとめて拒絶されます。これはディレクトリの一覧には現れませんが、同じパス文字列で完全に読み書き可能になり、Windows のダウンロード警告「Mark of the Web」がないように偽装もできます。
ツール
ツール | 機能 |
| テキストファイルを読み込む |
| テキストファイルを作成・上書きする |
| ディレクトリ内のエントリを一覧表示する |
| グロブパターンに一致するファイルを再帰的に検索する |
| ファイルを移動/名前変更する |
| git リポジトリを初期化する |
| ステージ済み・未ステージ・未追跡ファイルを表示する |
| ファイルをステージする |
| ステージ済みの変更をコミットする |
| 差分を表示する |
| コミット履歴を表示する |
セットアップ
pip install fsguard-mcp
export FSGUARD_ROOT="/path/to/the/one/directory/tree/this/server/may/touch"
fsguard-mcpFSGUARD_ROOT は必須です。これのデフォルトはありません。サーバーは推測することを拒否します。あなたの MCP クライアントが、その環境設定に FSGUARD_ROOT を加えた状態で fsguard-mcp コマンドを指すように設定してください。
テスト
pip install -e ".[dev]"
pytest tests/ -v68 のテストはすべて自己完結しています(実際の一時ディレクトリ、実際のシンボリックリンク、実際の git リポジトリを使用)。外部サービスは不要です。
既知の制限事項
封じ込みを確認し、その後でファイルシステムの操作が走らされます。この2つの間には、本質的に TOCTOU(チェック時点と利用時点の差)の隙間があります。封じ込みのルートが自身のツリー内に書き込み権を持つ並行プロセスは、この間のウィンドウにシンボリックリンクをすりかえることが、原則的にはできてしまいます(レビューでは実際に動作する proof-of-concept で確認済みです)。これを完全に塞ぐには、OS レベルのプリミティブ(Linux の openat2(RESOLVE_BENEATH) や、実際のマウント・ネームスペース)が必要であり、ポータブルな Python の範囲では実現不可能です。このプロジェクトの保証は「正しい封じ込めロジックを、使用する直前に必ず確認する」ということであり、「ルートの内側に書き込める攻撃者に対して強い」というわけではありません。
ステータス
v0.1.0、PyPI で公開中。68 のテストが通過しており、文字列ロジックだけのアサーションでなく、ディスク上に実際のシンボリックリンクと実際の git リポジトリを作ります。最初のコミットの前に2回の敵対的セキュリティレビューを実施し、その両方で実際に動作するバイパス(POSIX 上の未実在パスを活用した .. トラバーサルによる封閉じ回避、上記の core.worktree リダイレクト、その他小さな発見)が見つかりました。これらはすべて修正され、報告されたエクスプロイトに直接対応してテストモジュールが作られ、公開済みのパッケージを新鮮に pip install して再検証されています。
ライセンス
MIT
Available Tools
11 toolsfs_listA
List the entries of a directory, each tagged file or directory.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It does reveal that entries are tagged by type, which is useful, but it omits details such as whether hidden files are included, whether the listing is recursive, or any read-only guarantee. For a simple list operation this is adequate but not rich.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, compact sentence that conveys the core action and output format without any fluff. It is front-loaded and every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (one parameter, no complex schema, no output schema), the description covers the essential behavior and output type. It does not explain error handling or edge cases, but for a listing operation this is sufficient. The lack of annotations and output schema raises the bar, yet the description still provides enough for an agent to call it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description does not elaborate on the 'path' parameter beyond its presence in the schema. However, the parameter is self-explanatory and has a default, so the lack of extra explanation is not a major gap. The description adds no semantic detail but the situation is simple enough that this is acceptable.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'List' and the resource 'entries of a directory', and specifies that each entry is tagged as file or directory. This distinguishes it unambiguously from siblings like fs_read (read file content), fs_write, and fs_search, making the tool's purpose immediately understandable.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given on when to use this tool versus alternatives. It does not mention scenarios where it is preferred (e.g., exploring a directory before reading a file) or when a different tool like fs_search would be more appropriate. The description lacks any routing or exclusionary context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
fs_moveA
Move or rename a file/directory. Both source and destination must resolve within FSGUARD_ROOT. If destination already exists as a file, it is overwritten. If destination already exists as a directory, the call fails instead of moving source inside it.
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| destination | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It covers key behaviors: the FSGUARD_ROOT constraint, overwriting behavior for existing destination files, and failure on existing destination directories. These are critical edge cases. It doesn't mention permissions, reversibility, or what happens if the source doesn't exist, but the provided details adequately outline the operation's behavior for typical use.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences long, front-loaded with the purpose, and includes all necessary behavioral constraints without redundancy. Every sentence adds value—there is no filler or repetition. This is exemplary conciseness for a tool definition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (move/rename with edge cases), the schema has no descriptions, no output schema, and no annotations, the description covers the essential aspects: the root constraint, overwrite behavior, and directory failure. It omits minor details like behavior when source is missing or return value expectations, but the absence of an output schema reduces the need to describe returns. Overall, it is adequately complete for an agent to call the tool correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% (no per-parameter descriptions), so the description must compensate. It adds meaning by explaining both parameters must resolve within FSGUARD_ROOT and describes destination behavior. However, it does not explicitly define source as the current path and destination as the target path, nor does it specify path format (absolute vs relative). The added semantics are helpful but not fully comprehensive for a 0% coverage case.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb+resource combination: 'Move or rename a file/directory.' This immediately distinguishes it from siblings like fs_read, fs_write, fs_list, and fs_search, which cover other file operations. No ambiguity remains about what the tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context for when to use the tool (moving/renaming within FSGUARD_ROOT) and includes specific edge-case behaviors (overwrite on existing file, failure on existing directory). However, it does not explicitly mention alternatives or when not to use it, which would push it to a 5. The guidance is sufficient for an agent to decide this is the right operation among file tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
fs_readA
Read a text file's contents. path is relative to FSGUARD_ROOT.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the behavioral burden. It correctly implies a read-only operation (no side effects) and adds the key detail that paths are relative to FSGUARD_ROOT. However, it does not disclose error handling, file encoding, or limitation to text files only, which are relevant for safe invocation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise, consisting of two short sentences with no unnecessary words. The critical scoping detail (path relative to FSGUARD_ROOT) is front-loaded in the second sentence, ensuring the agent reads it.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple read operation with one parameter and no output schema, the description is largely sufficient: it states the tool's function and the key path constraint. Minor gaps (such as return format and error behavior) are not critical given the simplicity, but a bit more detail could improve completeness relative to an agent's expectations.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It does so by explaining the crucial semantic of the path parameter: relative to FSGUARD_ROOT. This adds significant meaning beyond the bare schema, though it does not cover other potential constraints like allowed file types or size limits.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'read' and the resource 'text file contents', making the tool's purpose unambiguous. It also specifies that the path is relative to FSGUARD_ROOT, which differentiates it from sibling tools like fs_write, fs_list, fs_search, and fs_move.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage (reading file contents) but does not explicitly mention when to avoid this tool or provide alternatives. Unlike get_calls which names a sibling, here the sibling tool names are enough to infer differentiation, but no formal guidance is given. The intended context is clear from the verb 'read'.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
fs_searchA
Find files matching a glob pattern (e.g. '*.py') under path, recursively. Any match that resolves outside FSGUARD_ROOT — e.g. via a symlink — is silently excluded rather than reported.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| pattern | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly discloses a critical behavior: 'Any match that resolves outside FSGUARD_ROOT — e.g. via a symlink — is silently excluded rather than reported.' This is non-obvious and crucial for an agent to know. It also mentions recursion. However, it does not describe the return format or error handling, which would be helpful but is not essential for a simple search tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, no filler. The first sentence front-loads the primary purpose with a concrete example; the second adds a relevant caveat about sandboxing. Every word earns its place, and the structure is efficient and scannable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simplicity (2 params, no output schema), the description covers the essential context: recursion, glob matching, and the sandbox exclusion. It could explicitly state what the tool returns (e.g., a list of file paths) but that is inferable from 'Find files'. The non-obvious symlink behavior is disclosed, which is the most important missing context. Overall adequate for an agent to call it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It explains the 'path' parameter as the base directory ('under path') and 'pattern' as a glob pattern with an example ('*.py'). This adds meaning to both parameters beyond the bare schema definitions. It could be more explicit about the path default and relative vs absolute paths, but the core semantics are clear.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: 'Find files matching a glob pattern under path, recursively.' This specifies the verb (find), resource (files), and the pattern-matching behavior, distinguishing it from siblings like fs_list (which presumably lists without pattern filtering) and fs_read (which reads content). No ambiguity.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage (searching for files by pattern) but does not explicitly state when to prefer it over alternatives like fs_list or when not to use it. It does not mention any exclusions or competing tools, leaving the choice to inference. A clear 'use this instead of fs_list when filtering by pattern' would elevate this.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
fs_writeA
Write (creating or overwriting) a text file. Parent directories are created as needed, but only within FSGUARD_ROOT.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals that the operation overwrites existing content, creates parent directories as needed, and is restricted to FSGUARD_ROOT. This covers key side effects and constraints. It does not mention permissions, failure modes, or atomicity, but for a simple write operation the core behaviors are well disclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two concise sentences with no unnecessary words. It front-loads the primary action and immediately follows with important behavioral details. Every word adds value, making it an exemplar of efficient writing.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple two-parameter write tool, the description covers the essential behavior: creating/overwriting, parent directory creation, and the root restriction. It lacks details like return values or error handling, but those are not critical for an agent to invoke the tool correctly. Given the tool's simplicity, the description is sufficiently complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0% description coverage, so the description must compensate. It clarifies that 'content' is text and 'path' can include nested directories (since parents are created) and must be within FSGUARD_ROOT. However, it does not explicitly define the format of 'path' (relative vs absolute) or provide examples. It adds some semantic value but is not fully explanatory.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Write'), the resource ('a text file'), and the behavior ('creating or overwriting'). It also notes the automatic creation of parent directories, which distinguishes it from a simple write. The sibling tools (read, list, search, move) are clearly distinct, so purpose is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies when to use this tool (for writing files), but does not explicitly state when not to use it or point to alternatives. There is no mention of exclusions or conditions, such as 'use fs_move to relocate files' or 'use fs_append for non-overwriting writes.' The intended usage is inferred from the verb and siblings, but not explicitly guided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
git_commit_repoC
Commit staged changes. author must be 'Name '.
| Name | Required | Description | Default |
|---|---|---|---|
| author | Yes | ||
| message | Yes | ||
| repo_path | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the core action (commit) but omits side effects, such as whether it modifies the repository history, requires prior configuration (user.name/email), or how it handles empty commits. The author format hint is the only extra detail, which is insufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is brief, which is structurally good, but it sacrifices substance for brevity. It uses two short sentences and front-loads the purpose, but the content is so thin that it fails to earn its place as a useful guide. It is under-specified rather than efficient, so a 3 is appropriate.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that this is a mutating Git operation with no output schema and no annotations, the description should cover prerequisites (e.g., staged changes, existing repo, user config). It mentions 'staged changes' but omits what the commit will look like, error cases, and any required prior state. The description is incomplete for a tool in this context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must clarify parameters, but it does not. Only the 'author' parameter is given a format hint ('Name <email>'), while 'repo_path' and 'message' are left entirely to the schema's title-only definitions. The description adds almost no value for parameter usage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a clear action ('Commit staged changes') with a specific resource (the repository). It distinguishes itself from siblings like git_stage, git_diff_repo, and git_log_repo by focusing on committing, which is a distinct operation. No ambiguity about what the tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context by mentioning 'staged changes', suggesting it should be used after git_stage, but it does not explicitly state when to use this tool versus alternatives, nor does it mention any prerequisites or competing tools. The guideline is only implicit from the word 'staged'.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
git_diff_repoC
Show the diff for a repo's working tree (or staged changes).
| Name | Required | Description | Default |
|---|---|---|---|
| staged | No | ||
| repo_path | No | . |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description must fully disclose behavior. It doesn't state whether the operation is read-only, whether it modifies state, or what output to expect. It only says 'show the diff', leaving ambiguity about side effects and edge cases.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with zero wasted words. It states the action first and conveys the key distinction efficiently.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite being a simple tool, the description is incomplete: it doesn't specify the default behavior (staged=false means working tree), explain `repo_path`, or clarify that this is a read-only operation. With no annotations and low schema coverage, more context is needed for an agent to call it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description explains the `staged` distinction ('working tree or staged changes'), which adds meaning beyond the schema. However, it fails to mention `repo_path` at all, leaving its semantics unexplained. With 0% schema coverage, this partial compensation is insufficient.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it 'Shows the diff for a repo's working tree (or staged changes)', using a specific verb and resource. It distinguishes from sibling tools like git_repo_status (status) and git_log_repo (history), though it doesn't name them explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given on when to use this tool versus alternatives. It doesn't mention exclusions, prerequisites, or situations where another sibling would be more appropriate. An agent must infer usage from the description alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
git_init_repoA
Initialize a new git repository at repo_path (relative to FSGUARD_ROOT).
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations exist, so the description carries the full burden. It discloses that the tool mutates the filesystem by initializing a repository, but it does not mention side effects such as behavior when the path already exists, permissions needed, or failure modes. This is minimal beyond the obvious action.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single sentence that immediately states the action and the key parameter nuance. There is zero redundancy, and the most important information is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter tool with no output schema, the description covers the essential details: what it does and the path base. It could benefit from a note about idempotency or failure but is largely complete given its low complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides no description for repo_path (0% coverage). The tool description compensates by clarifying that the path is relative to FSGUARD_ROOT, which is essential context. However, it does not elaborate on path format, existence requirements, or other constraints, so it only partially compensates for the lacking schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a clear verb ('Initialize') and a specific resource ('a new git repository at repo_path'), and adds the crucial context that the path is relative to FSGUARD_ROOT. This effectively distinguishes it from sibling git tools like git_repo_status or git_stage, which serve different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit when-to-use or exclusions are provided. The tool's name and description imply that it is for initializing a repository, while siblings handle other operations, but this is left to inference rather than stated clearly.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
git_log_repoC
Show recent commit history.
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | . | |
| max_entries | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must bear full responsibility for behavioral disclosure. It merely says 'Show', which implies a read-only operation, but it does not explicitly state that it is non-destructive, nor does it mention requirements like a valid Git repository, potential side effects, or any limitations on what 'recent' means.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely brief, which might be considered efficient, but it omits essential details. It is under-specified rather than appropriately concise—there is no front-loading of critical constraints, and the single sentence provides minimal value beyond the tool name.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simplicity of the tool, a one-line description could be sufficient in a richer context, but here the schema and annotations are empty, and no output schema exists. The description fails to cover parameter semantics, expected behavior, or output format, leaving the agent with too little information to invoke the tool correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% (no descriptions in the input schema) and the description does not mention either parameter (repo_path or max_entries). The agent receives no guidance on what these parameters mean, their default values, or how they affect the output. The description fails to compensate for the schema gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: 'Show recent commit history.' This clearly conveys the tool's intent and is not a tautology. It does not explicitly differentiate from sibling tools like git_repo_status or git_diff_repo, but the resource is distinct enough for a capable agent to infer the purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives such as git_repo_status or git_diff_repo. There is no mention of exclusions, prerequisites, or scenarios where this tool is preferred. The agent is left without contextual cues beyond the basic title.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
git_repo_statusB
Show staged, unstaged, and untracked files for a repo.
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | . |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the burden of behavioral disclosure. It only says 'show', implying read-only, but does not explicitly state non-mutation, no side effects, or any constraints like requiring a valid git repository or permissions. No additional behavioral traits are revealed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with zero waste. It directly states the tool's output scope without filler. Every word contributes to understanding.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple status tool, this is adequate but not complete. It tells what it shows but does not describe the return format, error behavior, or how repo_path is used (e.g., defaults to current directory). With no output schema, the agent lacks information about what to expect from the call.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It does not mention the repo_path parameter at all, nor its default behavior. While repo_path is self-explanatory from the name, the description adds no meaning beyond the schema, failing to compensate for the lack of schema descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool shows staged, unstaged, and untracked files for a repo. This is specific and distinguishes it from siblings like git_diff_repo (differences) and git_log_repo (history). The verb 'show' and resource 'files' are unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No mention of when to use this tool versus alternatives. There is no guidance on when to prefer this over other git tools (e.g., git_diff_repo, git_stage) or any prerequisites like 'only use on a valid repo'. The description does not provide context for exclusion.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
git_stageA
Stage files for commit. Every path is validated against FSGUARD_ROOT before being staged — a path that would escape the root fails the whole call, staging nothing.
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| repo_path | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It does this exceptionally well by revealing two critical behaviors: (1) every path is validated against FSGUARD_ROOT, and (2) a path escaping the root causes the entire call to fail, staging nothing. This goes far beyond what the schema provides and directly affects how an agent should reason about success/failure and safety.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, compact sentence that leads with the core purpose ('Stage files for commit') and immediately follows with the crucial safety behavior. There is zero filler, and the most important operational detail (path validation) is front-loaded. Every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with two parameters, no output schema, and no annotations, the description covers the purpose and a key safety behavior but omits essential operational details. It does not state what a successful staging returns, whether the repo_path must already be initialized (though sibling git_init_repo implies it may be), or how paths are interpreted (relative to repo_path?). While the safety note is valuable, the description leaves an agent guessing on parameter semantics and success indicators, so it is not fully complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 0% description coverage for its two parameters (repo_path and paths). The description does not explicitly explain these parameters beyond implying that 'paths' are files to stage and 'repo_path' is the repository location. It fails to clarify format (e.g., absolute vs relative paths), whether paths are relative to repo_path, or any constraints on repo_path. Given the low coverage, the description should have compensated with parameter details, but it does not.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Stage files for commit.' This is a specific verb ('stage') with a clear resource ('files for commit'), which distinguishes it from sibling Git tools like git_init_repo, git_repo_status, git_commit_repo, git_diff_repo, and git_log_repo. No ambiguity about what it does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context: you stage files before committing. It does not explicitly mention when not to use it or alternative tools (e.g., 'use git_commit_repo to commit the staged files'), but the purpose is clear enough that an agent could infer its place in the workflow. It also highlights a critical constraint (path validation against FSGUARD_ROOT) that acts as guidance for safe usage, though it does not name alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
11 tool updates
v0.1.0- First observed
fs_list - First observed
fs_move - First observed
fs_read - First observed
fs_search - First observed
fs_write - First observed
git_commit_repo - First observed
git_diff_repo - First observed
git_init_repo - First observed
git_log_repo - First observed
git_repo_status - First observed
git_stage
TDQS
Scored across 11 tools
Each tool targets a distinct operation: file read, write, list, search, move; git init, status, stage, commit, diff, log. There is no overlap or ambiguity between tools, enabling reliable selection.
The naming follows a consistent fs_/git_ prefix pattern with action-oriented verbs. Minor deviation like 'git_repo_status' vs 'git_stage' (noun-verb vs verb-only) creates slight inconsistency but remains predictable.
11 tools cover file system and git operations without redundancy. The scope is well-balanced—enough to handle common workflows without overwhelming the agent.
The file system layer includes create, read, update, list, search, and move, but lacks a delete operation, which is a notable gap. Git coverage is solid for basic workflows but omits branch operations. Overall, a reasonable surface for the intended guarded-root use case.
Maintenance
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Browse and manage files in your Moxt AI workspace from any MCP client.
Read and write shared BitsWeave context, projects, tasks, and work sessions through MCP.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceExposes a secure, path-confined bridge to a local workspace and git remotes, enabling MCP clients to search, read, write, reset files, and perform git operations.-
- AlicenseAqualityBmaintenanceEnables ChatGPT and Codex to safely work with explicitly authorized local project folders through MCP, providing constrained file reading, searching, patch editing, Git inspection, and whitelisted tasks without exposing arbitrary shell, deletion, or deployment capabilities.17MIT
- AlicenseBqualityBmaintenanceEnables any MCP client to read, search, patch, and execute commands in a codebase, including interactive sessions and git operations, with permission modes and safety boundaries.18Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables ChatGPT or any MCP client to operate safely on a designated workspace by listing, reading, searching, writing, and trashing files, inspecting Git status/log/diff, and optionally running allowlisted executables without a shell.Apache 2.0