Skip to main content
Glama

publish_custom_node

Publish a local custom node pack to the Comfy Registry. Validates pack metadata then uses API key to create a public registry version.

Instructions

Publish a local custom-node pack to the public Comfy Registry (registry.comfy.org) by running comfy node publish inside the pack directory. First validates the pack's pyproject.toml has the required [project].name, [project].version and [tool.comfy].PublisherId (refusing the scaffold placeholder), then publishes using the API key from the REGISTRY_ACCESS_TOKEN environment variable (passed to comfy-cli via the environment, never via logged arguments). This is the LAST step of the author loop and an IRREVERSIBLE, EXTERNAL action: it creates/updates a PUBLIC registry version that this tool cannot undo. Requires comfy-cli installed and REGISTRY_ACCESS_TOKEN set. LOCAL-ONLY: it reads and runs against a pack on the local filesystem and is meaningless for a remote --comfyui-url target. To create a pack first, use scaffold_custom_node.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoPack folder name under <COMFYUI_PATH>/custom_nodes/ to publish. Provide this or `path`.
pathNoExplicit absolute path to the pack directory to publish. Overrides `name` when both are given.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, the description covers all behavioral traits: validates pyproject.toml (required fields, refuses scaffold placeholder), publishes using API key from env variable, irreversible, creates/updates public version. Provides thorough transparency for a destructive action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences packed with essential information. Front-loaded with purpose and command. No wasted words; each sentence adds value. Very efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's purpose (publishing to a registry), the description covers purpose, prerequisites, irreversibility, validation, env variable usage, and local-only constraint. No missing information for a publishing action. Output schema not needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema descriptions for both parameters are clear, and the description adds context like 'inside the pack directory' and that `path` overrides `name`. With 100% schema coverage, the description enhances understanding beyond the schema. A 4 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool publishes a local custom-node pack to the public Comfy Registry, referencing the command `comfy node publish`. It distinguishes from the sibling tool `scaffold_custom_node` by noting it is the last step and that scaffold is for creation. Also specifies local-only nature.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states this is the LAST step of the author loop and an IRREVERSIBLE action. It lists prerequisites (comfy-cli installed, REGISTRY_ACCESS_TOKEN set) and when not to use (meaningless for remote target). It directs to scaffold_custom_node for creation. Comprehensive guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/artokun/comfyui-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server