Skip to content

docs(agent-tools): add Comfy Local MCP as the first-party local option#1236

Merged
comfyui-wiki merged 2 commits into
mainfrom
matt/be-2531-comfy-local-mcp-agent-tools
Jul 7, 2026
Merged

docs(agent-tools): add Comfy Local MCP as the first-party local option#1236
comfyui-wiki merged 2 commits into
mainfrom
matt/be-2531-comfy-local-mcp-agent-tools

Conversation

@mattmillerai

Copy link
Copy Markdown
Contributor

ELI-5

Our agent-tools page tells people how to connect AI agents (Claude Code, Claude Desktop, Cursor) to ComfyUI. Until now it listed our hosted Cloud MCP, the Partner MCP, and the CLI — and for driving a local ComfyUI it pointed only at community projects. This adds Comfy Local MCP (comfy-local-mcp), our own first-party server for driving the ComfyUI on your own machine, so local users have an official option front-and-center.

What changed

  • New page agent-tools/local.mdx — "Comfy Local MCP": requirements, install, and client config (Claude Code / Claude Desktop / Cursor), a quickstart, and a tools overview. Sourced from the project README.
  • agent-tools/index.mdx
    • Added a Comfy Local MCP card to the overview grid.
    • Added a Comfy Local MCP column to the "Which One Should I Use?" table (first-party, local MCP server).
    • Rewrote "What about local ComfyUI?" to lead with comfy-local-mcp as the official option; community servers (artokun, shawnrushefsky, joenorton, lalanikarim) are kept as alternatives.
  • docs.json — registered agent-tools/local in the Agent Tools nav.

Notes for the reviewer (judgment calls)

  • ⚠️ Repo visibility is the launch gate. Comfy-Org/comfy-local-mcp is currently private. The new page and the repo/install links assume it is public; make the repo public before merging, or the GitHub links (and the pip install . from a checkout) will 404 for readers. The page carries an "Early preview" warning to match the tool's POC status (same treatment as the Partner MCP preview page).
  • Translations (ja/ko/zh) intentionally not hand-edited. This repo generates locale pages via the i18n pipeline (translationSourceHash + npm run translate); the sync check is a non-blocking reminder. English source is updated here; the pipeline / @comfyui-wiki should regenerate the locale agent-tools/index pages, the new local page, and the locale nav entries.
  • Removed obsolete framing. The old section's "why did Cloud MCP ship first / better local UX is on the roadmap" paragraphs existed to explain the absence of a first-party local option — now filled — so they were dropped to avoid contradicting the new lead.

Verification

  • mint broken-links — passes (no broken links, MDX parses).

@mattmillerai mattmillerai added cursor-review Trigger Cursor automated review agent-coded PR authored by the agent-work loop labels Jul 7, 2026
@mintlify

mintlify Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
comfy 🟢 Ready View Preview Jul 7, 2026, 2:02 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR introduces "Comfy Local MCP," a first-party local MCP server documented across English, Japanese, Korean, and Chinese. Overview pages gain a new comparison card/column, docs.json adds navigation entries for the new local.mdx pages, and community MCP server framing is revised in each locale.

Changes

Comfy Local MCP Documentation

Layer / File(s) Summary
Navigation wiring
docs.json
Adds "local" page entries to the Agent Tools / MCP navigation for en, zh, ja, and ko.
English overview update
agent-tools/index.mdx
Adds a "Comfy Local MCP" card, extends the comparison table to four options, and rewrites the local ComfyUI narrative.
English local page
agent-tools/local.mdx
New page covering intro, requirements, installation, COMFY_BIN config, client setup (Claude Code/Desktop, Cursor), quickstart, tools table, and related links.
Japanese overview and local page
ja/agent-tools/index.mdx, ja/agent-tools/local.mdx
Updates translation hashes and overview/comparison content, and adds the localized local.mdx page mirroring the English structure.
Korean overview and local page
ko/agent-tools/index.mdx, ko/agent-tools/local.mdx
Updates translation hashes, overview/comparison content, community MCP wording, and adds the localized local.mdx page.
Chinese overview and local page
zh/agent-tools/index.mdx, zh/agent-tools/local.mdx
Updates translation hashes, overview/comparison content, terminal-workflow wording, and adds the localized local.mdx page.

Sequence Diagram(s)

sequenceDiagram
  participant Client as MCP Client
  participant Server as comfy-local-mcp
  participant CLI as comfy-cli
  participant ComfyUI

  Client->>Server: server_info
  Server->>CLI: comfy --where local status
  CLI->>ComfyUI: query status
  ComfyUI-->>Server: status result
  Client->>Server: run_workflow
  Server->>CLI: comfy --where local run
  CLI->>ComfyUI: execute workflow
  Client->>Server: fetch_outputs
  Server-->>Client: output files
Loading

No gremlins here, just docs galore,
Four tongues now speak of MCP's local core.
Comfy-cli whispers to ComfyUI near,
"Run local, run true" — no cloud tier to fear!
This imp approves, with a wink and a rhyme. 🧙‍♂️✨

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch matt/be-2531-comfy-local-mcp-agent-tools
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch matt/be-2531-comfy-local-mcp-agent-tools

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

🌐 i18n translation sync reminder

@comfyui-wiki English documentation was updated in this PR. Please complete or schedule translation updates for the following files:

Japanese (ja)

  • ja/agent-tools/index.mdx
  • ja/agent-tools/local.mdx
  • ja/agent-tools/local.mdx

Simplified Chinese (zh)

  • zh/agent-tools/index.mdx
  • zh/agent-tools/local.mdx
  • zh/agent-tools/local.mdx

Korean (ko)

  • ko/agent-tools/index.mdx
  • ko/agent-tools/local.mdx
  • ko/agent-tools/local.mdx

Local sync: npm run translate (see README — Automated translation)

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@agent-tools/local.mdx`:
- Line 52: The Claude MCP add example is using the wrong argument order, so
update the command in the local setup docs to place the environment flag before
the server name. Fix the `claude mcp add` example under the comfy-local entry so
`-e COMFY_BIN=/path/to/venv/bin/comfy` appears before `comfy-local`, matching
the supported parsing order for Claude Code versions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f8b1c56a-16a7-42b5-bedf-ad6f9de47b58

📥 Commits

Reviewing files that changed from the base of the PR and between ab6b0bc and 223c982.

📒 Files selected for processing (9)
  • agent-tools/index.mdx
  • agent-tools/local.mdx
  • docs.json
  • ja/agent-tools/index.mdx
  • ja/agent-tools/local.mdx
  • ko/agent-tools/index.mdx
  • ko/agent-tools/local.mdx
  • zh/agent-tools/index.mdx
  • zh/agent-tools/local.mdx

Comment thread agent-tools/local.mdx
One command registers the server:

```bash
claude mcp add comfy-local -e COMFY_BIN=/path/to/venv/bin/comfy -- comfy-local-mcp

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

Does claude mcp add -e KEY=VALUE -- (env flag after the server name) work correctly in the current Claude Code CLI, or is env flag placement before the name required?

💡 Result:

In the current Claude Code CLI, the environment variable flag must be placed before the server name. Placing the env flag after the server name is not supported and will cause the command to fail or be parsed incorrectly [1][2][3]. According to official documentation and technical discussions, all configuration options—including --env (or -e), --transport, and --scope—must precede the server name [1][2][3]. The -- separator is then used to delineate the end of these configuration flags and the start of the command that launches the server [4][5]. A known issue in the CLI exists where the parser may greedily consume the server name as part of the env-var value if the syntax is not strictly followed [6]. To ensure the command is parsed as intended, you should use the following order: claude mcp add [OPTIONS] -- [args...] For example: claude mcp add --env KEY=VALUE --transport stdio -- Documentation explicitly advises placing at least one other option (such as --transport) between the --env flag and the server name if you encounter parsing difficulties, as this helps prevent the CLI from incorrectly treating the server name as an additional environment variable pair [4][5].

Citations:


Move -e before the server name

claude mcp add comfy-local -e COMFY_BIN=/path/to/venv/bin/comfy -- comfy-local-mcp is parsed incorrectly on supported Claude Code versions. Use claude mcp add -e COMFY_BIN=/path/to/venv/bin/comfy comfy-local -- comfy-local-mcp instead. Tiny typo, big nope.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@agent-tools/local.mdx` at line 52, The Claude MCP add example is using the
wrong argument order, so update the command in the local setup docs to place the
environment flag before the server name. Fix the `claude mcp add` example under
the comfy-local entry so `-e COMFY_BIN=/path/to/venv/bin/comfy` appears before
`comfy-local`, matching the supported parsing order for Claude Code versions.

@comfyui-wiki
comfyui-wiki merged commit ea02529 into main Jul 7, 2026
12 checks passed
@github-actions
github-actions Bot deleted the matt/be-2531-comfy-local-mcp-agent-tools branch July 7, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-coded PR authored by the agent-work loop cursor-review Trigger Cursor automated review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants