fsguard-mcp

v0.1.0
fsguard-mcp Checked 17 hours ago Published 3 months ago

Filesystem + 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.

ParameterTypeDescription
path *string

fs_write

Write (creating or overwriting) a text file. Parent directories are created as needed, but only within FSGUARD_ROOT.

ParameterTypeDescription
content *string
path *string

fs_list

List the entries of a directory, each tagged file or directory.

ParameterTypeDescription
pathstring

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.

ParameterTypeDescription
destination *string
source *string

git_init_repo

Initialize a new git repository at repo_path (relative to FSGUARD_ROOT).

ParameterTypeDescription
repo_path *string

git_repo_status

Show staged, unstaged, and untracked files for a repo.

ParameterTypeDescription
repo_pathstring

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.

ParameterTypeDescription
paths *array
repo_path *string

git_commit_repo

Commit staged changes. author must be 'Name <email>'.

ParameterTypeDescription
author *string
message *string
repo_path *string

git_diff_repo

Show the diff for a repo's working tree (or staged changes).

ParameterTypeDescription
repo_pathstring
stagedboolean

git_log_repo

Show recent commit history.

ParameterTypeDescription
max_entriesinteger
repo_pathstring