sync2nas-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SMB_HOST | Yes | NAS hostname or IP address. | |
| SMB_PORT | No | SMB port number (default: 445). | 445 |
| SMB_SHARE | Yes | The SMB share folder name. | |
| SMB_DOMAIN | No | Optional Windows domain for SMB authentication. | |
| FILE_FILTER | No | Comma-separated list of file names to only sync those files. | |
| SMB_PASSWORD | Yes | Password for SMB authentication. | |
| SMB_USERNAME | Yes | Username for SMB authentication. | |
| CUSTOM_PATTERN | No | Custom directory mapping pattern using placeholders like {1}, {2}, {-1}. | |
| DELETE_ORPHANED | No | Whether to delete orphaned files on the destination during sync (true/false). | false |
| IGNORE_PATTERNS | No | Comma-separated list of ignore patterns (e.g. .DS_Store,Thumbs.db,*.tmp). | |
| DEFAULT_SYNC_MODE | No | Default sync mode: local-to-nas, nas-to-local, or bidirectional. | local-to-nas |
| DEFAULT_LOCAL_PATH | No | Default local folder path to sync. | |
| DEFAULT_REMOTE_PATH | No | Default 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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| quick-sync | 快速同步本地文件夹到NAS |
| compare-and-report | 比较本地和NAS文件差异并生成报告 |
| smart-sync | 智能同步:自动检测并同步有变化的文件 |
| backup-to-nas | 备份本地重要文件夹到NAS |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| server-status | 服务器状态信息 |
| sync-config | 同步配置信息 |
| help-docs | 帮助文档 |
TDQS
Scored across 7 tools
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.
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.
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.
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.