Skip to content

feat: add centralized version display and update notifications#201

Merged
Dumbris merged 3 commits into
mainfrom
001-update-version-display
Dec 15, 2025
Merged

feat: add centralized version display and update notifications#201
Dumbris merged 3 commits into
mainfrom
001-update-version-display

Conversation

@Dumbris
Copy link
Copy Markdown
Member

@Dumbris Dumbris commented Dec 15, 2025

Summary

  • Add centralized update checking system with background GitHub release checker
  • Display version information across all MCPProxy interfaces (tray, web UI, CLI)
  • Show update notifications only when new version is available
  • Replace manual "Check for Updates..." with automatic detection

Changes

Core

  • New internal/updatecheck package with background GitHub release checker
  • Extend /api/v1/info endpoint with update field
  • Add InfoResponse and UpdateInfo types to contracts
  • 4-hour background check interval with startup check

Tray Application

  • Remove "Check for Updates..." menu item
  • Add hidden update menu that appears only when update is available
  • Poll /api/v1/info endpoint to detect updates from core
  • Show "New version available (vX.Y.Z)" with click to open releases page

Web Control Panel

  • Display version in sidebar footer
  • Show "update available" badge when new version detected

CLI Doctor Command

  • Show version with update status in health check output
  • Display download URL when update is available

Documentation

  • Add docs/features/version-updates.md with comprehensive guide
  • Update REST API docs with /api/v1/info response details
  • Regenerate OpenAPI spec with new schemas

Test plan

  • Unit tests for /api/v1/info endpoint version fields
  • E2E test for version in /api/v1/info response
  • Build verification (Go + frontend)
  • Manual test: Tray menu shows version, update appears when available
  • Manual test: Web UI shows version in sidebar
  • Manual test: mcpproxy doctor shows version

🤖 Generated with Claude Code

Dumbris and others added 2 commits December 15, 2025 17:48
Implement a unified update checking system that displays version information
and update notifications across all MCPProxy interfaces:

Core Changes:
- Add internal/updatecheck package with background GitHub release checker
- Integrate update checker with runtime startup (4-hour check interval)
- Extend /api/v1/info endpoint with update field containing version info
- Add InfoResponse and UpdateInfo types to contracts

Tray Application:
- Remove "Check for Updates..." menu item
- Add hidden update menu that appears only when update is available
- Poll /api/v1/info endpoint to detect updates from core
- Show "New version available (vX.Y.Z)" with click to open releases page
- Special handling for Homebrew installations

Web Control Panel:
- Display version in sidebar footer
- Show "update available" badge when new version detected
- Add fetchInfo() to system store for version retrieval

CLI Doctor Command:
- Show version with update status in health check output
- Display "Version: vX.Y.Z (latest)" or "(update available: vX.Y.Z)"
- Include download URL when update is available

Documentation:
- Add docs/features/version-updates.md with comprehensive guide
- Update docs/api/rest-api.md with /api/v1/info response details
- Regenerate OpenAPI spec with InfoResponse and UpdateInfo schemas

Tests:
- Add unit tests for /api/v1/info endpoint version fields
- Add E2E test for version in /api/v1/info response

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update all outputDiagnostics test calls to pass second info parameter.
Also update JSON test to check for nested diagnostics structure.

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

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

cloudflare-workers-and-pages Bot commented Dec 15, 2025

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9f96f26
Status: ✅  Deploy successful!
Preview URL: https://4059de16.mcpproxy-docs.pages.dev
Branch Preview URL: https://001-update-version-display.mcpproxy-docs.pages.dev

View logs

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 15, 2025

📦 Build Artifacts

Workflow Run: View Run
Branch: 001-update-version-display

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

Note: Artifacts expire in 14 days.

Add version-updates page to Features section in sidebar. The page content
is already in docs/features/version-updates.md and will be synced by
prepare-docs.sh during build.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Dumbris Dumbris merged commit 27555c4 into main Dec 15, 2025
41 checks passed
@Dumbris Dumbris deleted the 001-update-version-display branch December 15, 2025 17:48
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.

1 participant