fsguard-mcp
v0.1.0Filesystem + git MCP server confined by symlink-resolved path containment, not string prefix matching.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
fs_read
Read a text file's contents. path is relative to FSGUARD_ROOT.
| Parameter | Type | Description |
|---|---|---|
path * | string |
fs_write
Write (creating or overwriting) a text file. Parent directories are created as needed, but only within FSGUARD_ROOT.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
path * | string |
fs_list
List the entries of a directory, each tagged file or directory.
| Parameter | Type | Description |
|---|---|---|
path | string |
fs_search
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.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
path | string |
fs_move
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.
| Parameter | Type | Description |
|---|---|---|
destination * | string | |
source * | string |
git_init_repo
Initialize a new git repository at repo_path (relative to FSGUARD_ROOT).
| Parameter | Type | Description |
|---|---|---|
repo_path * | string |
git_repo_status
Show staged, unstaged, and untracked files for a repo.
| Parameter | Type | Description |
|---|---|---|
repo_path | string |
git_stage
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.
| Parameter | Type | Description |
|---|---|---|
paths * | array | |
repo_path * | string |
git_commit_repo
Commit staged changes. author must be 'Name <email>'.
| Parameter | Type | Description |
|---|---|---|
author * | string | |
message * | string | |
repo_path * | string |
git_diff_repo
Show the diff for a repo's working tree (or staged changes).
| Parameter | Type | Description |
|---|---|---|
repo_path | string | |
staged | boolean |
git_log_repo
Show recent commit history.
| Parameter | Type | Description |
|---|---|---|
max_entries | integer | |
repo_path | string |