This repository was archived by the owner on Nov 27, 2026. It is now read-only.
Repository navigation
Build the template on nimblebrain-server-sdk - #19
Merged
Merged
Conversation
Tools carry the SDK's annotations and return failures through its error contract, the skill is a directory served by add_skills, and the server tests run on both protocol versions with the SDK's testing helpers.
A row is a summary, so its uri is a resource template that returns the record get_item returns, read through the same classified error path.
Contributor
Author
QA Review: use-server-sdkScope: 9 files, +403/−139 · prepared review worktree · reviewed: 250d37d · CI: green Critical (must fix)None. Fix in-PRNone. SuggestionsNone. What Looks Good
Body claims
machine record{
"kind": "review",
"pr": 19,
"round": 1,
"reviewed": "250d37d04fb4f7a15ffdd909c68354b88c9d6bfd",
"delta_base": null,
"ci": "green",
"risk": "LOW",
"stop_gate": "n/a",
"verdict": "No blocking findings; eligible for qa-reviewed.",
"label": "eligible-on-green",
"findings": []
} |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
A server started from this template begins on
nimblebrain-server-sdk(>=0.6.1) and uses it for tool annotations, the error contract, skills and tests.Changes
list_itemsandget_itemcarryREADS. A tool with no annotation reads to a client as a destructive write.to_tool_error(ServiceError(...)). A caller's mistake (limitoutside 1-100, an emptyitem_id) isbad_input, refused before the API is called. An API failure is classified by its status withServiceError.from_upstream; the API's own text goes todetail, which is logged and not returned. A missingEXAMPLE_API_KEYisauth_required.src/mcp_example/skills/example/, registered withadd_skillsand served atskill://example/SKILL.mdthrough the MCP Skills extension. The server instructions name that URI. TheSKILL.mddescribes the two tools, so it is a working example and not a set of TODO headings.list_itemsbuilds each row withlisting_row: auri, anddescription_previewin place of the full description. Theuriresolves: the resource templateexample://items/{item_id}returns the whole record, through the same read asget_item. A failed read raises a resource error carrying the classified, host-safe message, since a resource read has no tool error envelope.tests/test_server.pyruns every test that crosses the wire on both protocol versions (mode="auto"for 2026-07-28,mode="legacy"for 2025-11-25), checks the skill withserved_skillsand the listing withassert_bounded_rows, and asserts the error envelope a host receives.README.md,CLAUDE.mdandCONTRIBUTING.mdstate the SDK conventions and link the SDK guides (quickstart, errors, skills, testing).Server Tools
list_itemsREADS. Returns bounded rows; refuses alimitoutside 1-100 asbad_inputget_itemREADS. Returns the whole item; refuses an emptyitem_idasbad_inputCompanion Skills
examplelist_itemsandget_item, and how to act on an error codeNotes for the reviewer
skill://example/usagereadsskill://example/SKILL.md.structured_content.error(code,retryable,message, andupstream_statusfor an API failure). The message for an API failure is the SDK's generic text for the code, and the status is inupstream_status, not in the message text.pytest.ini, the ruff rules, the scan workflow and the licence are untouched. The suite passes witherror::mcp.MCPDeprecationWarning, andmpak-scannerreports no critical or high finding on the CI bundle or on the bundlemake bundlebuilds with the dependencies vendored.docs.nimblebrain.ai/server-sdk/links resolve once the SDK docs are published. No workflow here checks links.Testing
Each Python snippet in the README was extracted and run.