File mover MCP server for safely staging and executing file moves

File mover MCP server for safely staging and executing file moves

file-mover-mcp•byadamtovatt

A .NET tool that runs as a CLI or as an MCP server, letting AI agents stage, preview, and commit file and directory moves within a sandboxed base directory.

License: MIT License•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Exposes MCP tools for initializing a session, staging a move, previewing, committing, cancelling, and getting help.
  • •Follows a stage-preview-commit workflow where staged moves can be committed or cancelled.
  • •Auto-creates missing destination directories and auto-detects whether the source is a file or directory.
  • •Rejects overwriting an existing destination unless overwrite is explicitly enabled.

BEST FOR

  • •AI agents that need to organize or relocate files on disk with a review step before changes are applied.
  • •Workflows requiring moves confined to a specific base directory.
  • •Users who want to prepare moves via CLI and execute them through the MCP server, or vice versa.

ABOUT FILE-MOVER-MCP

File mover MCP server for safely staging and executing file moves is cataloged as an MCP server attributed to adamtovatt. A .NET tool that runs as a CLI or as an MCP server, letting AI agents stage, preview, and commit file and directory moves within a sandboxed base directory. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for File mover MCP server for safely staging and executing file moves are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can directory moves be staged, and do they preserve nested structure?

Yes. Directory moves preserve the full internal structure, including nested subdirectories, and source type is auto-detected.

Do I have to overwrite existing files?

No. Overwrite is opt-in; moves to existing destinations are rejected unless overwrite is enabled.

上游原版 README

在 GitHub 查看同一版本原文

README.md · f5a3ec0cbc89 · 采集于 2026-11-13 12:39:42 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

FileMoverMcp

Tests NuGet Version NuGet Downloads License: MIT

A file mover tool that stages and executes file moves safely. Works as both a CLI tool and an MCP (Model Context Protocol) server for AI agents.

Installation

dotnet tool install --global FileMoverMcp
dotnet tool update --global FileMoverMcp
dotnet tool uninstall --global FileMoverMcp

After installation, the fm command will be available globally.

MCP setup

To register as an MCP tool in Claude Code:

claude mcp add filemover -- fm --mcp

For Cursor or other MCP clients, add this to your MCP configuration:

{
  "mcpServers": {
    "filemover": {
      "command": "fm",
      "args": ["--mcp"]
    }
  }
}

Usage

The workflow is: initialize a session, stage moves, preview, then commit (or cancel).

fm init [path]                      # Initialize at path (default: current directory)
fm mv <source> <dest>               # Stage a file or directory move
fm mv <source> <dest> --overwrite   # Allow overwriting existing destination
fm preview                          # See all staged moves
fm commit                           # Execute all staged moves
fm cancel                           # Discard all staged moves
fm help                             # Show help information

Examples

# Move files on desktop
fm init "c:/users/adam/desktop"
fm mv "old-folder/file.png" "new-folder/file.png"
fm mv "document.txt" "archive/document-backup.txt"
fm preview
fm commit

# Move an entire directory
fm init
fm mv "source-folder" "dest-folder"
fm commit

# Overwrite an existing file
fm init
fm mv "source.txt" "destination.txt" --overwrite
fm commit

Behavior

Directories are auto-created

If the destination path includes directories that don't exist yet, they will be created automatically. For example, fm mv "file.txt" "a/b/c/file.txt" will create a/b/c/ if needed.

Files and directories are auto-detected

When you run fm mv, the tool checks whether the source is a file or a directory and handles it accordingly. Directory moves preserve the full internal structure, including nested subdirectories.

Overwrite is opt-in

If the destination already exists (file or directory), the move will be rejected unless you pass --overwrite. With --overwrite, the existing destination is replaced entirely.

Paths are sandboxed

All paths are relative to the session's base directory. Attempting to reference paths outside it will be rejected.

Sessions are shared

CLI and MCP mode share the same session storage, so you can initialize a session in one mode and commit in the other.

As MCP Server

fm --mcp

When running as an MCP server, the following tools are available:

  • fm_init(path?: string) - Initialize a session
  • fm_move(source: string, destination: string, overwrite: boolean) - Stage a move
  • fm_preview() - Preview staged moves
  • fm_commit() - Execute staged moves
  • fm_cancel() - Cancel session
  • fm_help() - Get help

Development

git clone <repository-url>
cd FileMoverMcp
dotnet build FileMoverMcp.sln
dotnet test FileMoverMcp.sln

To run as MCP server during development:

dotnet run --project FileMoverMcp.Cli/FileMoverMcp.Cli.csproj -- --mcp

To package:

dotnet pack FileMoverMcp.Cli/FileMoverMcp.Cli.csproj --configuration Release

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for File mover MCP server for safely staging and executing file moves from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/file-mover-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation