photo-organizer-mcp

v0.4.0
photo-organizer-mcp Checked 1 hour ago Published 1 month ago

MCP (Model Context Protocol) server for photo-organizer: organize photos/videos by date with a safe preview+confirm workflow.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

preview_organize

预览整理计划(只读):扫描源目录,计算每个文件的归类目标,返回 plan 与 confirm_token。 Args: source: 源文件夹绝对路径(必须位于白名单内)。 dest: 目标文件夹绝对路径(必须已存在,禁止自动创建)。 recursive: 是否递归扫描子文件夹。 include_video: 是否同时整理视频。 group: 分组方式 flat / year / year-month / year-month-day。 date_format: flat 模式下日期文件夹名格式(strftime)。 on_conflict: 重名冲突处理 skip / renameã…

ParameterTypeDescription
dest *string
source *string
date_formatstring
groupstring
include_videoboolean
on_conflictstring
photo_exts
recursiveboolean

organize_photos

执行(或模拟)整理。默认 dry_run=True 只计算不移动;dry_run=False 必须传入与当前 plan 匹配的 confirm_token。 Args: source / dest / recursive / include_video / group / date_format / on_conflict / photo_exts: 同 preview_organize。 dry_run: True 仅预览统计;False 实际移动/复制。 copy: 复制模式(原文件保留)。 confirm_token: 来自 preview_organize 的 token;dry_run=False 时必填且必须匹配。

ParameterTypeDescription
dest *string
source *string
confirm_token
copyboolean
date_formatstring
dry_runboolean
groupstring
include_videoboolean
on_conflictstring
photo_exts
recursiveboolean

list_logs

列出最近的操作清单(.jsonl),按修改时间倒序。

ParameterTypeDescription
limitinteger

show_log

查看指定操作清单明细。name 为日志名(stem,可带 .jsonl)。

ParameterTypeDescription
name *string

revert_changes

按操作清单还原一次整理。默认 dry_run=True 仅预览统计;False 实际还原(不覆盖已有文件)。 Args: name: 日志名(stem,可带 .jsonl)。 dry_run: True 预览(解析清单统计);False 执行还原。

ParameterTypeDescription
name *string
dry_runboolean

get_config

返回当前生效的 MCP 安全配置:白名单根目录、单次最大文件数、server 版本。