Skip to content

fix(cli): apply imports before rendering structured output - #1729

Merged
Dumbris merged 3 commits into
mainfrom
codex/ux-import-output
Oct 22, 2026
Merged

Dumbris merged 3 commits into
mainfrom
codex/ux-import-output

Conversation

@Dumbris

@Dumbris Dumbris commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Description

Fix UX audit F1: upstream import -o json and -o yaml previously reported imported servers without applying them. All output formats now execute the same import before rendering, expose planned/applied counts and dry-run state, and return nonzero with per-server details for partial failures. Invalid previews report validation failure and explicitly make no changes.

Testing

  • Regression reproduced before the fix.
  • go test ./cmd/mcpproxy ./internal/configimport -count=1 and focused import suite with -race pass.
  • Rebuilt current head and verified JSON/YAML/table effects in both a scratch daemon and saved config; dry-run and invalid preview made no writes; duplicate replay skipped; partial failure returned nonzero and retained the successful write.
  • Independent fresh-context Claude CLI (claude-fable-5-1) review: VERDICT: PASS at dc8c9b7, after correcting dry-run wording and Windows/root test portability.
  • Exact-head qa-gate: success. CI must pass before merge.

Example partial outcome: planned=1 applied=1 failed=1, exit 1. Invalid dry-run: planned=1 applied=0 failed=1, exit 1, validation failed ... no changes made.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: dc8c9b7
Status: ✅  Deploy successful!
Preview URL: https://25fccae0.mcpproxy-docs.pages.dev
Branch Preview URL: https://codex-ux-import-output.mcpproxy-docs.pages.dev

View logs

@github-actions

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: codex/ux-import-output

Available Artifacts

  • archive-darwin-amd64 (32 MB)
  • archive-darwin-arm64 (28 MB)
  • archive-linux-amd64 (19 MB)
  • archive-linux-arm64 (17 MB)
  • archive-windows-amd64 (31 MB)
  • archive-windows-arm64 (28 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (28 MB)
  • installer-dmg-darwin-arm64 (25 MB)
  • smart-mcp-proxymcpproxy-go89VW0N.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 39721997328 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@codecov-commenter

codecov-commenter commented Oct 22, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 89.47368% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/mcpproxy/upstream_cmd.go 89.47% 2 Missing and 4 partials ⚠️

📢 Thoughts on this report? Let us know!

@Dumbris
Dumbris merged commit e382bb2 into main Oct 22, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants