SDK: mcp>=2.0,<3, low-level mcp.server.Server; protocolVersion comes from
mcp.types.LATEST_PROTOCOL_VERSION (2026-07-28). server.py is the only module that imports
the SDK server API. The architecture is adapted from idss-mesa/neon-mcp by way of
weather-station-mcp.
Tools: 37, sorted by name, names matching ^nasa_[a-z_]+$ (enforced at import),
descriptions of at most 600 characters ending with a Next: sentence. Every tool declares a
JSON Schema 2020-12 inputSchema (additionalProperties: false) and outputSchema, title
and all four annotations (every tool is read-only, non-destructive, idempotent and open-world).
Tool _meta: io.nasa-mcp/surface, .../endpoints, .../providers, .../usesApiKey.
Results: the same compact JSON as TextContent and structuredContent; result _metaio.nasa-mcp/upstream = {requests, cacheHits, apiNasaGovRateLimit?}. Outputs are camelCase and
carry resolved, notes, nextSteps and source {endpoints, via, cached, derived, citation}.
Errors are tool results (isError: true) whose text content is the compact JSON
{error: {code, message, details, hint?}}. They carry no structuredContent, because each
tool's outputSchema describes the success shape and clients that validate it even on errors
would otherwise turn every tool error into JSON-RPC -32602. The 14 codes are listed in
Conventions. Protocol faults (unknown resource, bad prompt
arguments) are JSON-RPC -32602.
Size: a 50 000-byte result budget trims each tool's main list from the tail
(page.truncated: true, page.truncatedReason: "budget", page.nextOffset, a nextSteps
line); a 200 000-byte hard cap returns result_too_large.