Skip to content

feat: add --no-quarantine flag to upstream import and fix docs#313

Merged
Dumbris merged 1 commit intomainfrom
feat/import-skip-quarantine
Feb 28, 2026
Merged

feat: add --no-quarantine flag to upstream import and fix docs#313
Dumbris merged 1 commit intomainfrom
feat/import-skip-quarantine

Conversation

@Dumbris
Copy link
Contributor

@Dumbris Dumbris commented Feb 28, 2026

Summary

  • Fix A: Documentation incorrectly used mcpproxy import instead of mcpproxy upstream import, and had wrong flags (--path instead of positional arg, --preview instead of --dry-run, --servers instead of --server). Fixed in config-import.md and command-reference.md.
  • Feature A: Added --no-quarantine flag to mcpproxy upstream import so imported servers skip quarantine. Matches existing upstream add --no-quarantine pattern. Opt-in flag preserves security-by-default.

Changes

  • cmd/mcpproxy/upstream_cmd.go — added --no-quarantine flag, wired to ImportOptions, added quarantined to JSON output, updated daemon mode to use server's quarantine state
  • internal/configimport/types.go — added SkipQuarantine field to ImportOptions
  • internal/configimport/import.go — override quarantine after mapper when flag set
  • internal/configimport/import_test.go — 2 new tests for default and skip behaviors
  • docs/features/config-import.md — corrected CLI syntax and flags
  • docs/cli/command-reference.md — corrected CLI syntax, flags, and examples

Design decisions

  • Flag name: --no-quarantine — matches existing upstream add --no-quarantine
  • Default: Quarantine ON (security-by-default preserved)
  • Layer: Override applied in Import() after mapper sets secure default, keeping mapper.go untouched

Test plan

  • go test -race ./internal/configimport/... — 53 tests pass
  • go build ./cmd/mcpproxy/... — compiles
  • ./mcpproxy upstream import --help — shows new flag
  • Manual: mcpproxy upstream import --dry-run --no-quarantine <config> — verify output shows servers not quarantined

🤖 Generated with Claude Code

Fix A: Documentation incorrectly used `mcpproxy import` instead of
`mcpproxy upstream import`, wrong flags (--path, --preview, --servers).
Fixed in config-import.md and command-reference.md with correct syntax.

Feature A: Add --no-quarantine flag to `mcpproxy upstream import` matching
existing `upstream add --no-quarantine` pattern. Opt-in flag preserves
security-by-default (quarantine ON). Override applied at Import() layer
after mapper sets secure default. Added tests for both behaviors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2506cad
Status: ✅  Deploy successful!
Preview URL: https://1f34e564.mcpproxy-docs.pages.dev
Branch Preview URL: https://feat-import-skip-quarantine.mcpproxy-docs.pages.dev

View logs

@github-actions
Copy link

📦 Build Artifacts

Workflow Run: View Run
Branch: feat/import-skip-quarantine

Available Artifacts

  • archive-darwin-amd64 (23 MB)
  • archive-darwin-arm64 (21 MB)
  • archive-linux-amd64 (12 MB)
  • archive-linux-arm64 (11 MB)
  • archive-windows-amd64 (23 MB)
  • archive-windows-arm64 (21 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (26 MB)
  • installer-dmg-darwin-arm64 (23 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 22525669386 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris Dumbris merged commit a6611f2 into main Feb 28, 2026
24 checks passed
@Dumbris Dumbris deleted the feat/import-skip-quarantine branch February 28, 2026 18:17
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