Repository navigation
feat(mcpgrade): grade an MCP server against the spec essentials - #15
Merged
Merged
Conversation
…s, a 0 to 100 score and a letter The catalog is one table of checks, each a server-level or per-tool judge, and scoring is pure, so every rule is tested on literal observations. The probe that fills an observation comes next.
…alling a tool Grade takes a URL and an optional token, runs every request through a wire that sends the token only to the endpoint, caps each answer at 2 MiB and the grade at 40 requests and 8 MiB, and keeps tools/list as the server sent it, so tools the go-sdk would drop are still graded. The origin check now compares against the same request without the Origin, so a 400 for another reason no longer passes it.
…th faults A well-documented go-sdk server grades 100. The fake's knobs grade down the checks they break: missing hints, a tool the go-sdk drops, bad names, sign-in with and without S256, no 400 on an unknown protocol version, the registry listed, unlisted and down, an endless tools/list, and the token reaching nothing but the endpoint.
…the checks change without new rules
This was referenced Nov 28, 2026
perkinsjr
commented
Nov 28, 2026
perkinsjr
left a comment
Member
Author
There was a problem hiding this comment.
Left a few inline notes on the credential scoping and the schema and tool checks.
…artial, and fail malformed input schema properties
perkinsjr
enabled stacked auto-merge
November 28, 2026 17:58
stacked auto-merge was automatically disabled
November 28, 2026 17:59
Auto-merge was disabled for another pull request in the stack
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.
Why
We want Byname to grade an entity's own MCP server, the way manufact.com's MCP leaderboard does, but checked against the MCP spec itself. This PR adds the grader. Nothing in the app calls it yet.
You give it a URL and, if the server needs one, a token. It gives back a score from 0 to 100, a letter, six category scores, and one result per check. Each check that does not pass says what it saw and how to fix it.
What changed
internal/mcpgradewith one function,Grade.Scope
io.github.*) can be missed.Tradeoffs
readOnlyHintasfalse. Both would hide exactly what we want to grade.Blast Radius
New package only. Nothing imports it yet. Every request goes through one transport. It sends the token only to the MCP URL, stops after 40 requests or 8 MiB, and stops at 30 seconds. It uses the same client that blocks private addresses as the rest of Byname.
Verification
go test -race ./internal/mcpgrade/passes. A real Go SDK server grades 100 A+. A fake server with faults loses points on exactly the checks it breaks.