fix: use consistent server count across UI components#266
Merged
Conversation
The top header and NavBar were using systemStore.upstreamStats which counts raw connection status, while the Servers page uses serversStore.serverCount which counts health.level === 'healthy'. This inconsistency caused the top header to show different connected server counts than the server page (e.g., 8/23 vs 14/23). Changed TopHeader.vue and NavBar.vue to use serversStore.serverCount as the single source of truth, ensuring consistent counts across all UI components. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Deploying mcpproxy-docs with
|
| Latest commit: |
1bb388d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e690204e.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://fix-server-count-consistency.mcpproxy-docs.pages.dev |
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 21128045278 --repo smart-mcp-proxy/mcpproxy-go
|
technicalpickles
pushed a commit
to technicalpickles/mcpproxy-go
that referenced
this pull request
Jan 21, 2026
…y#266) The top header and NavBar were using systemStore.upstreamStats which counts raw connection status, while the Servers page uses serversStore.serverCount which counts health.level === 'healthy'. This inconsistency caused the top header to show different connected server counts than the server page (e.g., 8/23 vs 14/23). Changed TopHeader.vue and NavBar.vue to use serversStore.serverCount as the single source of truth, ensuring consistent counts across all UI components. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
serversStore.serverCountas single source of truthProblem
The top header showed different server counts (e.g., 8/23) than the Servers page (e.g., 14/23). This was caused by:
systemStore.upstreamStats.connected_serversfrom SSE events (raw connection count)serversStore.serverCount.connected(health.level === 'healthy')Solution
Updated both
TopHeader.vueandNavBar.vueto useserversStore.serverCount.connectedandserversStore.serverCount.total, making them consistent with the Servers page.Test plan
mcpproxy upstream list)🤖 Generated with Claude Code