@thenavidm/midjourney-mcp-cli 1.3.0 → 1.3.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
@@ -109,7 +109,7 @@ All 27 with their arguments are in [section 6](#6-tools).
109
109
  | 2 | [Sign in once](#2-sign-in-once) | No key, no cookie |
110
110
  | 3 | [Install](#3-install) | Every client, copy and paste, plus the shell |
111
111
  | 4 | [Output and exit codes](#4-output-and-exit-codes) | What scripts branch on |
112
- | 5 | [Which surface, and what each costs](#5-which-surface-and-what-each-costs) | ~8,900 tokens a turn, or nothing |
112
+ | 5 | [Which surface, and what each costs](#5-which-surface-and-what-each-costs) | Measured in Claude Code, and how to spend less |
113
113
  | 6 | [Tools](#6-tools) | All 27, by what they reach |
114
114
  | 7 | [Spending safely](#7-spending-safely) | Why generating asks twice |
115
115
  | 8 | [Prompts and parameters](#8-prompts-and-parameters) | The grammar, validated before you pay |
@@ -288,21 +288,32 @@ authorises a charge.
288
288
 
289
289
  ## 5. Which surface, and what each costs
290
290
 
291
- An MCP server is expensive and a CLI is free.
291
+ Both surfaces are the same program with the same 32 tools. The
292
+ difference is when the model pays for them. Measured in Claude Code:
292
293
 
293
- The `tools/list` payload for these 32 tools is about **11,062 tokens**, plus the
294
- server instructions. That is charged on every turn of every conversation, used
295
- or not, because the descriptions are long and carry the parameter grammar.
296
-
297
- A CLI costs nothing until it is called. The skill mentions it in one line, and
298
- the model pays only when it runs something.
299
-
300
- So the two are not competing:
301
-
302
- | Where you are | What you can reach |
303
- |---|---|
304
- | An agent that can run shell commands | Both. The CLI costs nothing until you type it |
305
- | A terminal, a script, cron or CI | The CLI only |
294
+ | | MCP server | CLI |
295
+ |---|---|---|
296
+ | Every message, with every tool loaded | 15,200 tokens | nothing |
297
+ | Every message, Claude Code's default | 1,000 tokens | nothing |
298
+ | When Midjourney comes up | nothing more, or the tools it picks | 3,700 tokens for `SKILL.md`, once |
299
+ | 20 messages with Midjourney in 1, every tool loaded | 305,000 tokens | 3,700 tokens |
300
+
301
+ Claude Code's [tool search](https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search)
302
+ is on by default: it sends only the tool names and the server instructions,
303
+ and loads a tool's full definition when the model reaches for it. An app that
304
+ loads every tool up front pays the first line on every message, whether
305
+ Midjourney comes up or not. With the skill added, Claude Code also lists its
306
+ one-line description, about 90 tokens.
307
+
308
+ To spend less, turn the server off when you are not using it, which in Claude
309
+ Code is the `/mcp` panel. `MIDJOURNEY_READ_ONLY=1` takes the 15 write tools off the list, leaving 17.
310
+ Or install the CLI and add the server on the days it earns its place.
311
+
312
+ Measured on 2026-09-27 with Claude Code 2.1.257 on Claude Opus 5: one
313
+ short prompt with and without the server connected, once with
314
+ `ENABLE_TOOL_SEARCH=false` and once with the default, the difference read
315
+ from the API's own usage figures. `SKILL.md` was measured the same way. Other
316
+ apps and models count tokens a little differently.
306
317
 
307
318
  ## 6. Tools
308
319
 
@@ -580,7 +591,7 @@ An MCP server is a standard way to give an AI assistant real access to a tool, s
580
591
  <details>
581
592
  <summary><b>Should I use the MCP server or the CLI?</b></summary>
582
593
 
583
- 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.
594
+ 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.
584
595
 
585
596
  </details>
586
597
 
@@ -667,7 +678,7 @@ Run into a problem or have a question? [Open an issue](https://github.com/thenav
667
678
 
668
679
  ## About the author 👋
669
680
 
670
- 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 Midjourney MCP server is one piece of that system.
681
+ 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.
671
682
 
672
683
  **Links**
673
684
 
@@ -696,4 +707,4 @@ Not affiliated with, endorsed by, or sponsored by Midjourney, Inc. Midjourney is
696
707
 
697
708
  ---
698
709
 
699
- © 2026 [NM Media](https://navid.media). Made with ❤️ by [Navid Moazzez](https://navid.me).
710
+ © 2026 [Navid Media](https://navid.media?utm_source=github&utm_medium=referral&utm_campaign=midjourney-mcp-cli&utm_content=readme). Made with ❤️ by [Navid Moazzez](https://navid.me?utm_source=github&utm_medium=referral&utm_campaign=midjourney-mcp-cli&utm_content=readme).
package/dist/npx.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/dist/npx.js ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * What `npx -y @thenavidm/midjourney-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 midjourney-cli and hand an MCP client the
9
+ * command list instead of a server. This file starts the entry as midjourney-mcp.
10
+ */
11
+ process.argv[1] = (process.argv[1] ?? "").replace(/[^/\\]*$/, "midjourney-mcp");
12
+ void import("./index.js");
13
+ export {};
14
+ //# sourceMappingURL=npx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npx.js","sourceRoot":"","sources":["../src/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,gBAAgB,CAAC,CAAC;AAChF,KAAK,MAAM,CAAC,YAAY,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@thenavidm/midjourney-mcp-cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Midjourney MCP server and CLI for Claude Code and AI agents. 32 tools for generating images, following jobs to completion, downloading the real files, and building moodboards that make a style reusable.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "bin": {
8
8
  "midjourney-mcp": "dist/index.js",
9
- "midjourney-cli": "dist/index.js"
9
+ "midjourney-cli": "dist/index.js",
10
+ "midjourney-mcp-cli": "dist/npx.js"
10
11
  },
11
12
  "engines": {
12
13
  "node": ">=22"