Skip to content

Installation

This guide covers building and installing MCP Filesystem Ultra on different platforms.

  • Go 1.26.0 or later (download)
  • Git (optional, for cloning)
  • Windows, Linux, or macOS
Terminal window
git clone https://github.com/notcharliemarsh/mcp-filesystem-go-ultra.git
cd mcp-filesystem-go-ultra

Download the latest release from the GitHub Releases page.

Using the build script (recommended):

Terminal window
build-windows.bat

Manual build:

Terminal window
go mod tidy
go build -ldflags="-s -w" -trimpath -o filesystem-ultra.exe .
Terminal window
go mod tidy
go build -ldflags="-s -w" -trimpath -o filesystem-ultra .

Build Windows executable from Linux/WSL:

Terminal window
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -trimpath -o filesystem-ultra.exe .

Build Linux executable from Windows:

Terminal window
set GOOS=linux
set GOARCH=amd64
go build -ldflags="-s -w" -trimpath -o filesystem-ultra .
Terminal window
# Check version
./filesystem-ultra.exe --version
# Output: MCP Filesystem Ultra v4.0.0
# Check help
./filesystem-ultra.exe --help

The optimized build produces:

  • Size: Approximately 8.8 MB
  • Dependencies: None (statically linked)
  • Platforms: Windows (amd64), Linux (amd64), macOS (amd64/arm64)

Recommended locations:

  • C:\Program Files\MCP\filesystem-ultra.exe
  • C:\Tools\filesystem-ultra.exe
  • Any directory in your PATH
Terminal window
# System-wide
sudo cp filesystem-ultra /usr/local/bin/
# User-only
cp filesystem-ultra ~/.local/bin/

Verify the installation with tests:

Terminal window
# Run all tests
go test ./tests/...
go test ./core/...
# Run with race detector
go test -race ./...
# Run security tests
go test ./tests/security/...
FlagPurpose
-ldflags="-s -w"Strip debug info and symbol table (smaller binary)
-trimpathRemove file paths from binary (reproducible builds)

Install Go from go.dev/dl and add it to your PATH.

Run go mod tidy to resolve dependencies.

Ensure you set both GOOS and GOARCH correctly:

  • Windows: GOOS=windows GOARCH=amd64
  • Linux: GOOS=linux GOARCH=amd64
  • macOS Intel: GOOS=darwin GOARCH=amd64
  • macOS Apple Silicon: GOOS=darwin GOARCH=arm64

When building for Windows from WSL, always use:

Terminal window
GOOS=windows GOARCH=amd64 go build -o filesystem-ultra.exe .

This ensures the binary correctly handles Windows paths like C:\Users\... instead of converting them to WSL paths like /mnt/c/Users/....