feat(score): display the trust tier alongside the numeric score (closes #236) - #341
Open
dchaudhari7177 wants to merge 1 commit into
Open
feat(score): display the trust tier alongside the numeric score (closes #236)#341dchaudhari7177 wants to merge 1 commit into
dchaudhari7177 wants to merge 1 commit into
Conversation
`mcp-observatory score` printed only the number and letter grade, so the tier that turns it into a trust signal was invisible in the terminal. MCP Health Score: 87/100 (B) Tier: Gold Appended to the existing header rather than added as a new line, so the existing formatting is untouched. Tier colours are deliberately distinct from the grade colours (grade is green/yellow/red for pass/warn/fail), so the two signals do not read as one: platinum cyan and gold yellow per the issue, silver blue, bronze and unrated dim. getTrustTier already exists in src/score.ts and is covered by tests, so this adds only the rendering; no scoring logic changes. Co-Authored-By: Claude Opus 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.
Closes #236. Part of the #174 trust-tier roadmap.
mcp-observatory scoreprinted only the number and letter grade, so the tier that turns it into a trust signal was invisible in the terminal.Notes
ANSIpalette incommands/helpers.ts, so--no-colorkeeps working.getTrustTieralready exists insrc/score.tsand is covered bytests/score.test.ts(including the 90/80/65/50 boundaries), so this PR adds only the rendering — no scoring logic changes, andformatTieris a pure lowercase→label helper.Verification
Rendered every tier band to confirm the line composes correctly with and without ANSI codes (the
plain:forms above).Note the repo's
npm run lintcrashes on this machine withTypeError: Cannot read properties of undefined (reading 'Cjs')— it does so on pristinemaintoo, so it's environmental and not from this change.🤖 Generated with Claude Code