Repository navigation
Serve a Server Card, give server.json the Registry shape, and point at the mcp-server skill - #22
Conversation
QA Review: server-card-and-registry-server-jsonScope: 9 files, +171/−35 · worktree: loopt22/wt (pr-loop, prepared) · reviewed: f357d67 · CI: pending — lint and test pass; bundle and scan pending (no required checks) Critical (must fix)None. Fix in-PR (apply mechanically — no adjudication essay expected)
Suggestions (optional)
What Looks Good
Body claims
Reviewer: Claude subagent (Codex unavailable: usage limit). machine record{
"kind": "review",
"pr": 22,
"round": 1,
"reviewed": "f357d67ef8d48fd9ac34827f413df3134cd35bf9",
"delta_base": null,
"ci": "pending",
"risk": "LOW",
"stop_gate": "n/a",
"verdict": "Correct core: the card and the Registry-shaped server.json agree and are held together by a test that can fail. One body-wording fix, two optional suggestions.",
"label": "eligible-on-green",
"findings": [
{
"id": "r1f1",
"bucket": "fix-in-pr",
"file": "PR body",
"line": null,
"claim": "The body says the SDK is 'locked to 0.8.0', but uv.lock is gitignored and untracked, so CI resolves the newest version in >=0.8,<0.9.",
"evidence": "reproduced",
"receipt": "git check-ignore -v uv.lock -> .gitignore:71; git show origin/main:uv.lock -> not in origin/main; absent from the diff stat",
"preconditions": null,
"fix": "Reword the body to 'pinned to >=0.8,<0.9'.",
"scope": "peripheral",
"issue": false
},
{
"id": "r1s1",
"bucket": "suggestion",
"file": ".github/workflows/build-bundle.yml",
"line": 31,
"claim": "The release step rewrites the manifest.json and server.json versions from the tag but not __version__, so a release tagged without make bump serves a card whose version differs from its manifest and server.json.",
"evidence": "reasoned",
"receipt": "build-bundle.yml:28-38 jq-rewrites only manifest.json and server.json; the card is built from mcp_example.__version__",
"preconditions": "release tag != __init__.__version__ (make bump skipped) -> bundle manifest/server.json carry the tag version -> card reports the old __version__",
"fix": "Also rewrite __version__ in src/mcp_example/__init__.py in that step, or fail the job when the tag and __version__ differ.",
"scope": "peripheral",
"issue": false
},
{
"id": "r1s2",
"bucket": "suggestion",
"file": "tests/test_server_card.py",
"line": 11,
"claim": "httpx2 is imported directly but is only a transitive dependency of fastmcp.",
"evidence": "reproduced",
"receipt": "pyproject.toml does not list httpx2; uv.lock lists it only as a dependency of other packages",
"preconditions": null,
"fix": "Add httpx2 to the dev dependency group.",
"scope": "peripheral",
"issue": false
}
]
} |
Adjudication round 1: body corrected, release job guards
|
QA Review: server-card-and-registry-server-jsonScope: 9 files (delta: 1 file, +6/−0) · worktree: loopt22/wt (pr-loop, prepared) · reviewed: 63e4cd8 · CI: pending — lint, test and scan pass; bundle pending (no required checks) Critical (must fix)None. Fix in-PR (apply mechanically — no adjudication essay expected)None. Suggestions (optional)None. What Looks Good
Body claims
Reviewer: Claude subagent (Codex unavailable: usage limit). machine record{
"kind": "review",
"pr": 22,
"round": 2,
"reviewed": "63e4cd8aa7ad33a2a7d4c3f9f61b144e435fb8f2",
"delta_base": "f357d67ef8d48fd9ac34827f413df3134cd35bf9",
"ci": "pending",
"risk": "LOW",
"stop_gate": "ship-the-core",
"verdict": "Both round-1 fixes landed and hold. The delta (a release-time tag/__version__ guard) is correct on both runner OSes, and the severity-floor scan is clear. No findings.",
"label": "eligible-on-green",
"findings": []
} |
Brings the template in line with
nimblebrain-server-sdk0.8.0 (now on PyPI) and themcp-serverskill (NimbleBrainInc/skills#70), which replacedmcpbandmcp-best-practices.A server that describes itself
nimblebrain-server-sdkpinned to>=0.8,<0.9(0.8.0 resolved locally).FastMCP("com.example/example", version=__version__, ...): a reverse-DNS name (the Server Card schema requires it) and its own version (without one, FastMCP reports its own).add_server_card(mcp, title=..., description=...)serves an MCP Server Card at/mcp/server-card. A local NimbleBrain reads it when the server is added withnpx nimblebrain mcp add http://127.0.0.1:8000/mcp. A connector, so no placements.server.jsonis the deployment document, in the MCP RegistryServerDetailshape: the 2025-12-11$schema, the samename,title,descriptionandversionas the card,repositoryas an object, andremoteswith a placeholder deployed URL. It is what an operator adds to a NimbleBrain connectors catalog, and whatmcp-publisherlists on the official MCP Registry. Nopackages(the release builds.mcpbbundles and publishes nothing to PyPI) and no_meta. The mpak-only fields (@-scoped name,publisher, stringrepository) are gone; the old file fails the schema on two of them.make bumpandbuild-bundle.ymlalready move itsversion; the release job fails when the tag differs from__version__, which the card reports and onlymake bumpmoves.tests/test_server_card.pyfetches the card in-process and checks it carries__version__and agrees withserver.jsonon name, version, title and description.make run-httpbinds127.0.0.1by default (HOST/PORToverride it; on Linux, bind the Docker bridge or0.0.0.0for a local NimbleBrain to reach it).Docs:
CONTRIBUTING.mdrecommends--skill mcp-serverand describes designing a tool (annotations, the error contract, failure-path tests);.github/ISSUE_TEMPLATE/new-server.mdpoints at--skill mcp-serverand this repo's name, and its definition of done matches what CI and the security scan gate;CLAUDE.mdandREADME.mdcover the card,server.jsonand deploying.Checks:
make check(format, lint, ty, 51 tests);jsonschemavalidates the newserver.json;make run-httpserved the card (200,application/mcp-server-card+json); in a scratch copy,mcpb packbuilt andmpak-scannerfound no critical or high issues.Not here:
.github/PULL_REQUEST_TEMPLATE.mdstill asks for "5+ tools";make bump'ssed -i ''is macOS-only (as before).