Skip to content

Deprecate dead config params and wire activity retention#311

Merged
Dumbris merged 2 commits intomainfrom
chore/deprecate-dead-config-params
Feb 28, 2026
Merged

Deprecate dead config params and wire activity retention#311
Dumbris merged 2 commits intomainfrom
chore/deprecate-dead-config-params

Conversation

@Dumbris
Copy link
Contributor

@Dumbris Dumbris commented Feb 28, 2026

Summary

  • Wire activity retention config to runtime: activity_retention_days, activity_max_records, activity_cleanup_interval_min were defined in config but never passed to ActivityService.SetRetentionConfig() — now they are
  • Deprecate dead config fields: top_k (superseded by tools_limit), enable_tray (never read at runtime), and features (all 16 flags unused) are now detected and warned about via mcpproxy doctor and startup logs
  • Clean up: Removed dead fields from hot-reload detection, validation, defaults, docs, and OpenAPI schema. Struct fields are kept for backward compatibility (existing configs won't error on load)

Test plan

  • go build ./cmd/mcpproxy and ./cmd/mcpproxy-tray compile
  • go test ./internal/config/... — deprecation detection + config tests pass
  • go test ./internal/runtime/... — hot-reload + retention wiring tests pass
  • go test ./internal/management/... — diagnostics tests pass
  • go test ./internal/server/... — server tests pass
  • mcpproxy doctor shows deprecated config warnings when dead fields present

🤖 Generated with Claude Code

- Wire activity retention config (activity_retention_days, activity_max_records,
  activity_cleanup_interval_min) to runtime by calling SetRetentionConfig()
- Add deprecation detection for top_k, enable_tray, and features config fields
- Surface deprecated config warnings in `mcpproxy doctor` output
- Log deprecation warnings at startup
- Mark TopK, EnableTray, Features as deprecated in config struct
- Remove dead fields from hot-reload change detection
- Remove dead params from docs and OpenAPI schema

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

cloudflare-workers-and-pages bot commented Feb 28, 2026

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7006432
Status: ✅  Deploy successful!
Preview URL: https://3d3e85da.mcpproxy-docs.pages.dev
Branch Preview URL: https://chore-deprecate-dead-config.mcpproxy-docs.pages.dev

View logs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

📦 Build Artifacts

Workflow Run: View Run
Branch: chore/deprecate-dead-config-params

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

Note: Artifacts expire in 14 days.

@Dumbris Dumbris merged commit a36f4ba into main Feb 28, 2026
24 checks passed
@Dumbris Dumbris deleted the chore/deprecate-dead-config-params branch February 28, 2026 16:40
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