@thenavidm/apple-photos-mcp-cli 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -103,11 +103,32 @@ Results on stdout, errors on stderr as JSON, so one parse handles both.
103
103
 
104
104
  ## Which surface, and what each costs
105
105
 
106
- An MCP server is charged on every turn; a CLI costs nothing until it is called.
106
+ Both surfaces are the same program with the same 13 tools. The
107
+ difference is when the model pays for them. Measured in Claude Code:
107
108
 
108
- The `tools/list` payload for these 13 tools is about **2,800 tokens**, plus the
109
- server instructions, on every turn of every conversation whether you use it or
110
- not. The CLI is free until you run something, which is why both exist.
109
+ | | MCP server | CLI |
110
+ |---|---|---|
111
+ | Every message, with every tool loaded | 3,800 tokens | nothing |
112
+ | Every message, Claude Code's default | 660 tokens | nothing |
113
+ | When Apple Photos comes up | nothing more, or the tools it picks | 2,500 tokens for `SKILL.md`, once |
114
+ | 20 messages with Apple Photos in 1, every tool loaded | 77,000 tokens | 2,500 tokens |
115
+
116
+ Claude Code's [tool search](https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search)
117
+ is on by default: it sends only the tool names and the server instructions,
118
+ and loads a tool's full definition when the model reaches for it. An app that
119
+ loads every tool up front pays the first line on every message, whether
120
+ Apple Photos comes up or not. With the skill added, Claude Code also lists its
121
+ one-line description, about 180 tokens.
122
+
123
+ To spend less, turn the server off when you are not using it, which in Claude
124
+ Code is the `/mcp` panel. `APPLE_PHOTOS_READ_ONLY=1` takes the 6 write tools off the list, leaving 7.
125
+ Or install the CLI and add the server on the days it earns its place.
126
+
127
+ Measured on 2026-09-27 with Claude Code 2.1.257 on Claude Opus 5: one
128
+ short prompt with and without the server connected, once with
129
+ `ENABLE_TOOL_SEARCH=false` and once with the default, the difference read
130
+ from the API's own usage figures. `SKILL.md` was measured the same way. Other
131
+ apps and models count tokens a little differently.
111
132
 
112
133
  ## Contents
113
134
 
@@ -471,7 +492,7 @@ A standard way to give an AI assistant real access to a tool, so it can act rath
471
492
  <details>
472
493
  <summary><b>Should I use the MCP server or the CLI?</b></summary>
473
494
 
474
- Use the MCP server in an app with no terminal, like Claude Desktop's chat. Use the CLI anywhere commands run: an agent like Claude Code, Codex or OpenCode, a script or a cron job. The MCP server sends its full tool list to the model on every turn, and the CLI costs nothing until it runs.
495
+ Use the MCP server in an app with no terminal, like Claude Desktop's chat. Use the CLI anywhere commands run: an agent like Claude Code, Codex or OpenCode, a script or a cron job. The MCP server's tools take up context on every message, and the CLI costs nothing until it runs.
475
496
 
476
497
  </details>
477
498
 
@@ -568,7 +589,7 @@ Run into a problem or have a question? [Open an issue](https://github.com/thenav
568
589
 
569
590
  ## About the author
570
591
 
571
- Navid Moazzez is a leading AI business strategist, and the host of the AI Creator Summit, watched by 100,000+ creators. He helps creators and founders master AI and build their own AI Operating System (AI OS) to automate their business and life. This Apple Photos MCP server is one piece of that system.
592
+ Navid Moazzez is a leading AI business strategist, and the host of the AI Creator Summit, watched by 100,000+ creators. He helps creators and founders master AI and build their own AI Operating System (AI OS) to automate their business and life. He creates useful free tools, MCP servers and CLIs that creators and founders can use in their own workflows.
572
593
 
573
594
  **Links**
574
595
 
@@ -598,4 +619,4 @@ Not affiliated with, endorsed by, or connected to Apple Inc. Apple, macOS, Photo
598
619
 
599
620
  ---
600
621
 
601
- © 2026 [NM Media](https://navid.media). Made with ❤️ by [Navid Moazzez](https://navid.me?utm_source=github&utm_medium=referral&utm_campaign=apple-photos-mcp-cli&utm_content=readme).
622
+ © 2026 [Navid Media](https://navid.media?utm_source=github&utm_medium=referral&utm_campaign=apple-photos-mcp-cli&utm_content=readme). Made with ❤️ by [Navid Moazzez](https://navid.me?utm_source=github&utm_medium=referral&utm_campaign=apple-photos-mcp-cli&utm_content=readme).
package/lib/npx.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/lib/npx.js ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * What `npx -y @thenavidm/apple-photos-mcp-cli` runs.
4
+ *
5
+ * npx starts a binary named after the package when the package's binaries
6
+ * point to different files. When they all share one file it starts whichever
7
+ * one the registry lists first, and the registry does not keep the order they
8
+ * were published in, so it could start apple-photos-cli and hand an MCP client the
9
+ * command list instead of a server. This file starts the entry as apple-photos-mcp.
10
+ */
11
+ process.argv[1] = (process.argv[1] ?? "").replace(/[^/\\]*$/, "apple-photos-mcp");
12
+ void import("./index.js");
13
+ export {};
14
+ //# sourceMappingURL=npx.js.map
package/lib/npx.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npx.js","sourceRoot":"","sources":["../src-ts/npx.ts"],"names":[],"mappings":";AACA;;;;;;;;GAQG;AACH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;AAClF,KAAK,MAAM,CAAC,YAAY,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@thenavidm/apple-photos-mcp-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Apple Photos MCP server and CLI for Claude Code and AI agents. 13 tools to search, look at, organise and export your own Photos library, entirely on your Mac.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
7
7
  "bin": {
8
8
  "apple-photos-mcp": "lib/index.js",
9
- "apple-photos-cli": "lib/index.js"
9
+ "apple-photos-cli": "lib/index.js",
10
+ "apple-photos-mcp-cli": "lib/npx.js"
10
11
  },
11
12
  "engines": {
12
13
  "node": ">=20"