/unofficial-mcp-builder:revalidate-api-surfacefrom unofficial-mcp-builder
Periodic drift check for an unofficial MCP server — re-fetch the vendor's current API documentation, diff it against the committed api-surface.yaml, and update the server for anything that changed upstream. Catches new endpoints, renamed or removed fields, changed defaults, deprecations, and auth changes before users hit them as bugs. Use for "check if the API changed", "revalidate the MCP", "is this server still in sync", scheduled maintenance runs, or after a vendor changelog entry.
Ships in unofficial-mcp-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Third-party APIs move without telling their unofficial clients. This is the recurring check: what has the vendor changed since the surface map was last verified, and what does the server need to do about it.
Designed to be run on a schedule (monthly is usually right; weekly for an API under active development) and to be safe to run unattended in report-only mode — it changes nothing until it has shown you the diff.
Read api-surface.yaml from the server repo. It records every doc source with
its URL, fetch date, and content hash, plus the version signal and every claim's
evidence level. If it's missing, the server predates this workflow: reconstruct
it from templates/api-surface.yaml and the current code, mark everything
evidence: inferred, and say so — this run becomes a baselining run rather than
a drift check.
Note how long it's been since verified on each endpoint. Anything unverified
for more than a couple of months should be treated as suspect regardless of what
the diff says.
In order, stopping early if nothing has moved:
Changelog. If version_signal.changelog_url is set, read entries since
the last verification date. This is the highest-value source by a wide margin
— vendors announce breaking changes there and nowhere else.
Version header or endpoint. Compare version_signal.observed against
what a live request returns now.
Doc hashes. Re-fetch each source in docs: and compare the hash of the
normalised content. Normalise before hashing (strip nav, timestamps, session
IDs, "last updated" strings) or you'll get a diff on every run and learn to
ignore it.
OpenAPI spec. If one exists, diff it structurally rather than textually — added/removed paths, changed required-ness, changed types, new enum values, new deprecation markers. Re-download it and diff against the committed snapshot with oasdiff:
docker run --rm -v "$PWD":/r:ro -v /tmp/w:/w:ro tufin/oasdiff changelog /r/spec/<vendor>-openapi.json /w/new.json
Then diff the spec against what the code calls, operation by operation (method + path, not just path):
# list the server's calls as "METHOD /path" lines; adapt the grep to the client code
grep -o -E 'client\.(get|post|put|delete)\([^,)]*' src/*.ts \
| sed -E 's/client\.(get|post|put|delete)\(/\1 /; s/[`"]//g' | awk '{print toupper($1), $2}' > /tmp/w/calls.txt
python3 -I scripts/spec-diff.py /tmp/w/new.json /tmp/w/calls.txt # --json for machine output
"In spec, not called" are gaps, or calls made through other host constants
(auth, upload, CDN). Check those by hand. "Called, not in spec" are undocumented
or dead; probe them (reference/probing-playbook.md). A path-only comparison
misses a route the code never calls in that method, and a reference doc that
lists an endpoint doesn't prove the code wires it up. Record the expected
entries in api-surface.yaml so the next run only looks at new ones.
If every signal is unchanged, report "no drift, last verified ", update
the check date in api-surface.yaml, and stop. That's a successful run.
For each difference, sort into:
Cross-check against known_discrepancies: if the docs now describe what the API
was already doing, the discrepancy is resolved, not new. Conversely, a doc
change with no behaviour change is often the vendor documenting something that
shipped long ago.
Docs lie in both directions — an endpoint can be removed from the docs and still work, or documented and never have shipped. With a key available, confirm the changes that matter:
undocumented and unsupported.Read-only calls only. Same discipline as always: sequential, within rate limits,
no writes, nothing logged that contains the key. If verifying a change requires
a write, note it and leave it to smoke-test-mcp.
For anything confirmed, in this order:
known_discrepancies with action: watch.api-surface.yaml: new hashes, new verified dates,
promote or demote evidence levels, record the version signal.Bump the version (minor for additive, major if the tool surface changed
incompatibly) and write a CHANGELOG entry that names the upstream change, not
just the code change — "Acme moved created to created_at in the v2 widget
response" is what a future reader needs.
Whether or not anything changed, report:
Commit the surface map update and the code change together; the surface map is the evidence for the diff.
For a scheduled run, default to report-only: do steps 1–4, write the report, and stop before step 5 unless the user has said to auto-apply. Nobody wants to discover a scheduled agent rewrote their tool surface at 3am. Breaking changes found unattended are worth a notification rather than a silent commit.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/complementary-pluginsList and install plugins that complement unofficial-mcp-builder: browser-data-capture, site-skill-builder. Use on "related plugins"./create-mcp-from-api-docsBuild an unofficial MCP server for a third-party API that doesn't ship one, starting from the vendor's API documentation and (optionally) a working API key used to verify the real surface before any code is written. Produces a publishable npm package plus a committed api-surface.yaml recording what was verified live versus taken on the docs' word. Use for "write an MCP for <service>", "there's no official MCP for X", "wrap this API as an MCP", "generate an MCP from these docs / this OpenAPI spec"./smoke-test-mcpExercise an unofficial MCP server end-to-end against the live third-party API using the user's own key — connect, list tools, run real read operations unattended and write operations with per-operation confirmation, then fix whatever breaks. Proactive debugging: finds the schema mismatches, pagination bugs, and error-handling gaps that only appear against real data. Use for "smoke test the MCP", "does this server actually work", "test it against the real API", after a build or a revalidation, or before publishing.unofficial-mcp-builder@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin unofficial-mcp-builder