mirror of
https://github.com/Comfy-Org/comfy-cloud-mcp.git
synced 2026-11-04 23:37:25 +00:00
[GH-ISSUE #6] upload_file returns 401 — emits X-API-Key header, server only accepts X-Api-Key #4
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#4
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 (Apr 26, 2026).
Original GitHub issue: https://github.com/Comfy-Org/comfy-cloud-mcp/issues/6
The upload_file MCP tool generates a curl command using header X-API-Key, but the upload endpoint at https://cloud.comfy.org/api/upload/image rejects that header with 401 {"message":"authentication required"}. The same key authenticates successfully when sent as X-Api-Key (mixed case) or Authorization: Bearer.
Steps to reproduce:
Expected: 200 with {name, subfolder, type} JSON.
Actual: 401 authentication required. Seems the upload endpoint's header parser is case-sensitive and the tool template uses the wrong case, or the MCP transport accepts X-API-Key while the public API only accepts X-Api-Key
Workaround: Replace -H "X-API-Key: $COMFY_API_KEY" with -H "X-Api-Key: $COMFY_API_KEY" (capital A only)
Impact: Blocks the documented "upload local image → reference in workflow" flow end-to-end. I hit a 401 with no obvious cause since the same key works for every other MCP call.
Environment: Claude Code MCP client, comfyui-cloud MCP server (https://cloud.comfy.org/mcp), curl 8.x on macOS.
@mattmillerai commented on GitHub (Jun 22, 2026):
Migrated to Comfy-Org/comfy-cloud-mcp-server#427 (this installer repo is being archived). Tracking the fix there.