From Unclaimed to Verified Publisher: Hardening an Open-Source MCP Server
We shipped a small Model Context Protocol server one afternoon. M8ven, a trust index for AI agent tools, picked it up, scored it Grade C, and left it unclaimed. Within a day it was Grade B, Verified Publisher, and monitored on every push. This is the exact sequence — and the two traps that cost us time.
Why write this down
Most "get listed" posts stop at "submit your repo." The part nobody documents is what happens after submission: security advisories on dependencies you never chose, audit findings about metadata you thought was optional, claim flows that quietly rotate your credentials, and badges that look valid but prove nothing.
Everything below actually happened to a five-tool developer server. Commit hashes, endpoints, dates and status strings are the real ones — this is a field report, not a template.
The starting point: auto-listed, Grade C, unclaimed
We never asked to be indexed. M8ven discovered the repository from GitHub and assigned it Grade C — Emerging. Two reasons were printed on the listing:
- No publisher claimed it. Anyone could have claimed it first.
- A high-severity advisory in a dependency. The server used
[email protected], affected by GHSA-mrhx-c7xc-m3w5 (memory exhaustion).
That combination is worth understanding: an unclaimed listing is not neutral. It is an open slot, and the visible security finding is the first thing a prospective user sees.
Step 1 — Clear the advisory before you claim
Do this first. The claim reviewer scores the commit that is live at the time, so fixing security after claiming just adds a round trip.
We upgraded to [email protected]. The core schema API — string, number, boolean, enum, union, array and .describe() — is source-compatible across v3 to v4, so this was a manifest change with zero code edits. All 18 real stdio handshake tests passed, and npm audit went clean (commit f9ec947).
Step 2 — Declare all four tool annotations
The audit came back with a finding: 5/5 tools missing hints. MCP tool annotations are four booleans that tell a client what a tool is allowed to do before it calls it:
| Annotation | Means | What we declared |
|---|---|---|
readOnlyHint | The tool does not mutate state | true on all five |
destructiveHint | The tool may destroy data | false on all five |
idempotentHint | Repeating the call changes nothing | true on four; false on the random-identifier generator, which returns a fresh value each call |
openWorldHint | The tool reaches external systems | false — the server does zero network I/O at runtime |
We verified the hints at the protocol layer with tools/list, not just by reading the source, and shipped it as commit 9fa5f06. On the next rescan the entire "quality suggestions" block disappeared from the listing. Declaring all four is strictly better than declaring only readOnlyHint — the others are exactly what an auditor checks next.
Step 3 — Claim the listing, then confirm the email
Claiming is a POST with the repository slug and an email address, followed by a confirmation link. Two traps live here:
- Re-submitting a claim rotates the token. We re-posted to chase a confirmation email that seemed missing — and silently invalidated the badge token we had just copied into the README.
- The confirmation email is easy to miss. Ours arrived a day later; clicking the link returned a stale-link error because a newer claim had superseded it. The fix was to work from the newest claim, not the newest email.
If you claim once and wait, both problems disappear. If you have to re-claim, assume every credential you copied before that moment is now dead.
Step 4 — The badge trap: a 200 response proves nothing
This is the one that cost us the most time. The service gives you a badge image URL containing a verification token. We fetched it with token A, token B, and with no token at all — all three returned an identical SVG. The image endpoint does not validate the token. "Badge URL returns 200" is therefore a false positive, and we had briefly treated it as proof.
The real check is a server-side validator. Posting the slug to /api/mcp/verify-badge returned token_invalid — that is how we discovered the rotation from Step 3. The authoritative token came from /api/mcp/verify-badge/token with the slug and the claim email. We wrote that exact string into the README (commit a2a8005) and the listing picked it up on the next read.
Rule of thumb: for any verification token, find the endpoint that actually validates it. An image that renders is not evidence.
Step 5 — Turn on monitoring
Without a connected GitHub App, the indexer re-reads on its own schedule — in our case, roughly the next day. Connecting a read-only GitHub App changed the listing to Live Monitored: every push triggers a rescan within about an hour. The permissions requested were repository metadata, code, advisory alerts and email for claim matching — no write access.
We also added the listing to a watchlist, which sends an email if ownership changes or a high-severity CVE appears. The search box failed to find our repo, but pasting the full listing URL worked.
The verification checklist
This is the sequence we would run again, in order:
| # | Action | Evidence it worked |
|---|---|---|
| 1 | Clear dependency advisories (npm audit) | Advisory count zero; tests still pass |
| 2 | Declare all four MCP tool annotations | tools/list shows all four hints; audit suggestion block disappears |
| 3 | Claim once, then click the confirmation link | Listing shows a confirmed address |
| 4 | Fetch the token from the validator endpoint, not the badge | Validator returns ok after the README edit |
| 5 | Connect a read-only GitHub App | Listing flips to Live Monitored; next push is re-read |
| 6 | Add the listing to a watchlist | Watched servers count increments |
The result, in M8ven's own words
The grade moved from C to B. The publisher line changed to "The publisher has proven control of what we score" — that is the Verified Publisher signal. And the read record now names the exact commit: "What we read: 2 code files at commit a2a8005." You can see the live result on the getoolkit-mcp listing.
None of this required paying for a badge, a PR retainer, or a listing service. It required fixing real problems and then proving control of the source — which is, not coincidentally, the same thing that makes an open-source project worth citing in the first place.
The 30-second summary
- Fix advisories before claiming; the reviewer scores the live commit.
- Declare all four annotations and check them over
tools/list. - Claim once. Re-claiming rotates your token and invalidates copied badges.
- A badge that renders is not proof — use the server-side validator.
- Connect a read-only GitHub App for live rescanning, and add a watchlist for CVE and ownership alerts.