Skip to main content
Glama
sync2nas-mcp

sync2nas-mcp

by mirkcale

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SMB_HOSTYesNAS hostname or IP address.
SMB_PORTNoSMB port number (default: 445).445
SMB_SHAREYesThe SMB share folder name.
SMB_DOMAINNoOptional Windows domain for SMB authentication.
FILE_FILTERNoComma-separated list of file names to only sync those files.
SMB_PASSWORDYesPassword for SMB authentication.
SMB_USERNAMEYesUsername for SMB authentication.
CUSTOM_PATTERNNoCustom directory mapping pattern using placeholders like {1}, {2}, {-1}.
DELETE_ORPHANEDNoWhether to delete orphaned files on the destination during sync (true/false).false
IGNORE_PATTERNSNoComma-separated list of ignore patterns (e.g. .DS_Store,Thumbs.db,*.tmp).
DEFAULT_SYNC_MODENoDefault sync mode: local-to-nas, nas-to-local, or bidirectional.local-to-nas
DEFAULT_LOCAL_PATHNoDefault local folder path to sync.
DEFAULT_REMOTE_PATHNoDefault remote path on the NAS./

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
sync-filesC

同步本地文件夹到NAS或从NAS同步到本地

compare-filesC

比较本地文件和NAS文件的差异

upload-fileC

上传单个文件到NAS

download-fileC

从NAS下载单个文件

list-remote-filesC

列出NAS上的文件和文件夹

test-connectionC

测试NAS连接状态

get-timeB

获取当前时间

Prompts

Interactive templates invoked by user choice

NameDescription
quick-sync快速同步本地文件夹到NAS
compare-and-report比较本地和NAS文件差异并生成报告
smart-sync智能同步:自动检测并同步有变化的文件
backup-to-nas备份本地重要文件夹到NAS

Resources

Contextual data attached and managed by the client

NameDescription
server-status服务器状态信息
sync-config同步配置信息
help-docs帮助文档

TDQS

B3.3/5.0

Scored across 7 tools

Disambiguation4/5

Each tool maps to a distinct action on the local/NAS file pair: sync, compare, upload, download, list, test. The only mild overlap is sync-files vs compare-files, since syncing implicitly involves comparing, but the descriptions clarify the difference in scope (bulk folder operation vs diff inspection). get-time stands apart from the domain but is unambiguous in itself.

Naming Consistency5/5

All seven tools follow the same kebab-case verb_noun convention (sync-files, upload-file, list-remote-files, test-connection, get-time). Verbs and noun forms are used predictably across the set, so an agent can guess names for related operations.

Tool Count4/5

Seven tools is a well-scoped surface for a file synchronization server, with each core operation earning its place. get-time is the one questionable inclusion, as it is a generic utility unrelated to NAS syncing and could arguably be dropped or handled by the caller.

Completeness4/5

The surface covers the main sync lifecycle: connectivity test, remote listing, comparison, bulk sync, and single-file transfer in both directions. Minor gaps remain — there is no remote delete, mkdir/rename, or way to inspect sync progress/status, which an agent may need for cleanup or verification tasks.