使用 photo-cli 归档和重新组织本地照片库
当代理需要通过读取拍摄元数据、反向地理编码位置并重建更整洁的文件夹结构来规范化本地照片存档时,请使用 photo-cli,而无需迁移到托管照片平台。
先决条件
photo-cli、对源照片库的访问权限、重新组织存档的目标存储空间
安装
使用与您的环境匹配的上游安装或设置路径:
- npx @modelcontextprotocol/inspector {photo-cli-standalone-executable-or-dotnet-tool-path-or-docker-command} mcp --input {archive-folder-path}
- npx @modelcontextprotocol/inspector photo-cli mcp --input {archive-folder-path}
- docker run --rm --volume ./test-photographs:/photos/input --volume ./archive:/photos/output photocli/photocli archive --input /photos/input --output /photos/output --album-type DateRange --album-name My-Album --auto-r...
上游的要求和注意事项:
- 此应用程序可通过 Homebrew(macOS & Linux)、容器(Docker、Podman)、独立可执行文件(无依赖项和 SDK)或 .NET 工具安装。
- 使用 photo-cli archive 创建的照片存档文件夹(必须包含 photo-cli.db SQLite 数据库)。
- "command": "{photo-cli-standalone-executable-or-dotnet-tool-path-or-docker-command}",
基本用法或入门说明:
[](https://www.nuget.o...
功能详解与示例
使用示例截图
Source: https://github.com/1991513ccie-png/skills
Extracted from upstream docs: https://raw.githubusercontent.com/photo-cli/photo-cli/HEAD/README.md
文档
- https://photocli.com




