mirror of
https://github.com/Comfy-Org/comfy-cloud-mcp.git
synced 2026-11-04 23:37:25 +00:00
[GH-ISSUE #9] Add installer support for Codex #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-cloud-mcp#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kygdigital on GitHub (May 31, 2026).
Original GitHub issue: https://github.com/Comfy-Org/comfy-cloud-mcp/issues/9
Summary
It would be useful for the installer to detect and configure OpenAI Codex as an MCP client, similar to the existing support for Claude Code, Cursor, and Amp.
Codex supports streamable HTTP MCP servers via
~/.codex/config.tomland can pass custom HTTP headers with thehttp_headerstable. That makes it compatible with the Comfy Cloud MCP server'sX-API-Keyauthentication.Suggested Codex config
The installer could write the following entry:
If
CODEX_HOMEis set, the config path should be:Otherwise the default path is:
Suggested installer behavior
For
install.sh:detect_codex, checking eithercommand -v codexor the existence of${CODEX_HOME:-$HOME/.codex}.get_codex_config_path, returning${CODEX_HOME:-$HOME/.codex}/config.toml.configure_codex, creating the config directory if needed and writing/replacing these sections:[mcp_servers.comfyui-cloud][mcp_servers.comfyui-cloud.http_headers]For
install.ps1:Test-Codex, checking eitherGet-Command codexor the existence of$env:CODEX_HOME/$HOME\.codex.Get-CodexConfigPath, returning$env:CODEX_HOME\config.tomlor$HOME\.codex\config.toml.Install-Codex, writing/replacing the same TOML sections as above.Why write config directly?
Codex has a
codex mcp add --urlcommand for streamable HTTP MCP servers, but currently its public CLI flags expose bearer-token auth rather than arbitrary request headers. Since Comfy Cloud MCP usesX-API-Key, direct config writing appears to be the most practical approach, similar to how the installer already writes JSON config directly for some clients that need header support.Slash commands / skills
I would suggest not installing the existing Claude/Cursor-style slash command markdown files for Codex in this initial change. Codex skills use a different structure, and the MCP tools should still be available after Codex restarts and reloads the MCP server.
Validation ideas
bash -n install.sh.git diff --check.codex mcp get comfyui-cloudshows:Happy to open a PR with a small implementation if this direction sounds acceptable.
@mattmillerai commented on GitHub (Jun 22, 2026):
Installer retired and repo archived, so installer-side Codex support is moot. Codex (and any MCP client) can point directly at the hosted server — see https://docs.comfy.org/development/cloud/mcp-server. Closing.