file-mover-mcp
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.
Documentation
FileMoverMcp
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 FileMoverMcpdotnet tool update --global FileMoverMcpdotnet tool uninstall --global FileMoverMcpAfter installation, the `fm` command will be available globally.
MCP setup
To register as an MCP tool in Claude Code:
claude mcp add filemover -- fm --mcpFor 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 # Stage a file or directory move
fm mv --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 informationExamples
# 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 commitBehavior
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 --mcpWhen 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
cd FileMoverMcp
dotnet build FileMoverMcp.sln
dotnet test FileMoverMcp.slnTo run as MCP server during development:
dotnet run --project FileMoverMcp.Cli/FileMoverMcp.Cli.csproj -- --mcpTo package:
dotnet pack FileMoverMcp.Cli/FileMoverMcp.Cli.csproj --configuration ReleaseLicense
MIT License
Frequently asked questions
What is file-mover-mcp?
file-mover-mcp is 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.
How do I install file-mover-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is file-mover-mcp open source?
Yes — it is hosted on GitHub at https://github.com/AdamTovatt/file-mover-mcp.
Related MCP tools
Unity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
AI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for free.
Catalog of official Microsoft MCP (Model Context Protocol) server implementations for AI-powered data access and tool integration
An MCP server that allows MCP clients like Claude Desktop or Cursor to perform actions in the Unity Editor C#-based implementation.
The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft. Trusted by 3500+ developers.
Model Context Protocol (MCP) plugin to connect with Unity Editor — designed for OpenAI, Gemini, Claude, Deepseek and Grok interoperability
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP