Skip to content

fix: correct quarantine API docs and wire tray unquarantine menu#312

Merged
Dumbris merged 1 commit intomainfrom
fix/quarantine-docs-and-tray
Feb 28, 2026
Merged

fix: correct quarantine API docs and wire tray unquarantine menu#312
Dumbris merged 1 commit intomainfrom
fix/quarantine-docs-and-tray

Conversation

@Dumbris
Copy link
Contributor

@Dumbris Dumbris commented Feb 28, 2026

Summary

  • Fix B: Documentation showed incorrect curl examples for unquarantine — used POST /quarantine with {"quarantined": false} body. Actual API uses separate POST /quarantine and POST /unquarantine endpoints with no request body. Fixed in rest-api.md, security-quarantine.md, cli-management-commands.md, and CLAUDE.md.
  • Fix C: Tray app unquarantine menu item returned "not yet supported via API". Added QuarantineServer() and UnquarantineServer() methods to tray API client and wired the adapter to call them.

Changes

  • docs/api/rest-api.md — split single quarantine entry into two endpoints
  • docs/features/security-quarantine.md — fixed curl examples
  • docs/cli-management-commands.md — fixed curl example
  • CLAUDE.md — split quarantine/unquarantine table entry
  • cmd/mcpproxy-tray/internal/api/client.go — added QuarantineServer/UnquarantineServer methods
  • cmd/mcpproxy-tray/internal/api/adapter.go — wired adapter to call actual endpoints
  • cmd/mcpproxy-tray/internal/api/adapter_test.go — 5 new tests (27 total pass with -race)

Correct API usage

# Quarantine (no body)
curl -X POST -H "X-API-Key: your-key" http://127.0.0.1:8080/api/v1/servers/server-name/quarantine

# Unquarantine (no body)
curl -X POST -H "X-API-Key: your-key" http://127.0.0.1:8080/api/v1/servers/server-name/unquarantine

Test plan

  • go test -race ./cmd/mcpproxy-tray/internal/api/... — 27 tests pass
  • go build ./cmd/mcpproxy-tray/... — compiles
  • Manual: start mcpproxy + tray, quarantine a server, use tray menu to unquarantine

🤖 Generated with Claude Code

Fix B: Documentation showed incorrect curl examples using POST /quarantine
with {"quarantined": false} body. Actual API uses separate POST /quarantine
and POST /unquarantine endpoints with no body. Fixed in rest-api.md,
security-quarantine.md, cli-management-commands.md, and CLAUDE.md.

Fix C: Tray unquarantine menu returned "not yet supported via API". Added
QuarantineServer() and UnquarantineServer() methods to tray API client
and wired adapter to use them. Added 5 tests (27 total pass).

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: 82aca63
Status: ✅  Deploy successful!
Preview URL: https://c39f9f1f.mcpproxy-docs.pages.dev
Branch Preview URL: https://fix-quarantine-docs-and-tray.mcpproxy-docs.pages.dev

View logs

@github-actions
Copy link

📦 Build Artifacts

Workflow Run: View Run
Branch: fix/quarantine-docs-and-tray

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 22525666697 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris Dumbris merged commit 3640c3f into main Feb 28, 2026
25 checks passed
@Dumbris Dumbris deleted the fix/quarantine-docs-and-tray 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