Skip to content

Conversation

@Dumbris
Copy link
Contributor

@Dumbris Dumbris commented Dec 20, 2025

Summary

  • Fix mcpproxy doctor showing stale update information when a new release was published after the last periodic check
  • Add ?refresh=true query parameter to /api/v1/info endpoint to force immediate update check
  • Doctor command now always performs fresh update check against GitHub

Problem

When running mcpproxy doctor, users were seeing cached update information from the 4-hour periodic check. If a new version was released after the last check, users would not be notified until the next periodic check ran.

Example: v0.11.3 was released, but doctor showed v0.11.2 as latest because the last check happened before the release.

Solution

  • Added CheckNow() method to update checker for on-demand checks
  • Added RefreshVersionInfo() method through the stack (Runtime, Server, Controller)
  • Modified /api/v1/info endpoint to accept refresh=true query parameter
  • Updated doctor command to use refresh when fetching version info

Test plan

  • Unit tests for new CheckNow() method in update checker
  • Linter passes
  • E2E API tests pass
  • Manual testing with running daemon

🤖 Generated with Claude Code

The doctor command was showing stale update information because it
read from the 4-hour cached version info. When a new release was
published after the last check, users running doctor would not see
the update until the next periodic check.

Changes:
- Add CheckNow() method to update checker for immediate checks
- Add RefreshVersionInfo() method to Runtime and Server
- Add refresh query parameter to /api/v1/info endpoint
- Update doctor command to always refresh version info
- Add unit tests for update checker

When running `mcpproxy doctor`, it now performs a fresh check against
GitHub to ensure users see the latest available version.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 20, 2025

@github-actions
Copy link

📦 Build Artifacts

Workflow Run: View Run
Branch: fix/doctor-update-check-refresh

Available Artifacts

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

Note: Artifacts expire in 14 days.

@Dumbris Dumbris merged commit 4272aa3 into main Dec 20, 2025
23 checks passed
@Dumbris Dumbris deleted the fix/doctor-update-check-refresh branch December 20, 2025 18:39
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