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:

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:

AnnotationMeansWhat we declared
readOnlyHintThe tool does not mutate statetrue on all five
destructiveHintThe tool may destroy datafalse on all five
idempotentHintRepeating the call changes nothingtrue on four; false on the random-identifier generator, which returns a fresh value each call
openWorldHintThe tool reaches external systemsfalse — 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:

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:

#ActionEvidence it worked
1Clear dependency advisories (npm audit)Advisory count zero; tests still pass
2Declare all four MCP tool annotationstools/list shows all four hints; audit suggestion block disappears
3Claim once, then click the confirmation linkListing shows a confirmed address
4Fetch the token from the validator endpoint, not the badgeValidator returns ok after the README edit
5Connect a read-only GitHub AppListing flips to Live Monitored; next push is re-read
6Add the listing to a watchlistWatched 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