/** * Runtime Annotation Verifier * * Verifies that tool annotations are present in the tools/list runtime response. * This addresses Issue #207/#204 where servers defining annotations in code * (not manifest.json) were incorrectly reported as having 0% annotation coverage. * * @module assessment/helpers/RuntimeAnnotationVerifier * @see GitHub Issue #207, #204 */ import type { Tool } from "@modelcontextprotocol/sdk/types.js"; import type { AnnotationLocation, ToolAnnotationLocationDetail, RuntimeAnnotationVerification } from "../../../lib/assessment/toolAnnotationTypes.js"; export type { AnnotationLocation, ToolAnnotationLocationDetail, RuntimeAnnotationVerification, }; /** * Verify that annotations are present in tools from the tools/list response. * * This function checks all possible annotation locations: * 1. tool.annotations object (MCP 2024-11 spec) * 2. Direct properties on tool (preserved by SDK interceptor) * 3. tool.metadata object * 4. tool._meta object * 5. tool.annotations.hints nested object * * @param tools - Array of tools from tools/list response * @returns Verification result with coverage stats and per-tool details */ export declare function verifyRuntimeAnnotations(tools: Tool[]): RuntimeAnnotationVerification; //# sourceMappingURL=RuntimeAnnotationVerifier.d.ts.map