mirror of
https://github.com/Comfy-Org/comfy-cloud-mcp.git
synced 2026-11-04 23:37:25 +00:00
[PR #7] [MERGED] fix(installer): wire Amp via settings.json instead of unsupported CLI flags #8
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#8
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?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-cloud-mcp/pull/7
Author: @mattmillerai
Created: 5/5/2026
Status: ✅ Merged
Merged: 5/5/2026
Merged by: @mattmillerai
Base:
main← Head:mattmiller/be-712-amp-installer-fix📝 Commits (1)
1f4ea12fix(installer): wire Amp via settings.json instead of unsupported CLI flags📊 Changes
2 files changed (+85 additions, -11 deletions)
View changed files
📝
install.ps1(+58 -1)📝
install.sh(+27 -10)📄 Description
Summary
mcp addCLI auto-detects transport from the URL and has no flag for HTTP headers, so the previous--transport http -H "X-API-Key: ..."invocation always exited non-zero and dumped users to manual setup.&>/dev/nullwas hiding the actual error.~/.config/amp/settings.json(macOS/Linux) or%APPDATA%\amp\settings.json(Windows) underamp.mcpServers.comfyui-cloud, where Amp does supportheaders. Errors from jq / JSON parsing now surface to the user instead of being swallowed.install.ps1previously had no Amp config at all; addsTest-Amp/Get-AmpConfigPath(withAMP_SETTINGS_FILEenv override) /Install-Ampmirroring the existingInstall-ClaudeDesktophashtable-merge pattern.Test plan
bash -n install.sh— passesconfigure_ampagainst fresh config dir → writes correct JSON shapeconfigure_ampagainst existing settings.json with unrelated keys (editor.fontSize, an existinglinearserver) → preserves them, addscomfyui-cloudalongsideconfigure_ampagainst malformed JSON → refuses to clobber, surfaces jq parse error to usercomfyui-cloudentry → overwrites cleanly (jq assignment semantics)comfyui-cloudshows up inamp mcp listand the server is reachable from a fresh Amp sessioninstall.ps1end-to-end on Windows (mirrors known-goodInstall-ClaudeDesktoppattern but was not run-tested from macOS)Notes
jqas a runtime dependency ofinstall.sh. Most Linux distros ship it; Homebrew users almost always have it. Falls back gracefully with a clear "install jq and re-run" message if missing — does not abort the rest of the installer.f7955d5 fix: suppress verbose claude/amp CLI output during installis what hid the underlying error and made this hard to diagnose; this PR keeps Claude's&>/dev/null(it works) but replaces the Amp path with one whose errors are useful.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.