/** * Tool Annotation Extractor * * Pre-extracts annotations from all tools for security assessment context. * Issue #170: Enables annotation-aware security severity adjustment. * * This helper is used during context preparation to extract annotations * BEFORE security testing begins, allowing SecurityAssessor to adjust * vulnerability severity based on tool capabilities. * * @module helpers/ToolAnnotationExtractor */ import type { Tool } from "@modelcontextprotocol/sdk/types.js"; import type { ToolAnnotationsContext } from "../../../lib/assessment/coreTypes.js"; /** * Extract tool annotations context from all tools. * * Iterates through all tools, extracts annotations using the existing * 5-tier priority system, and computes server-level flags for read-only * and closed-world servers. * * @param tools - Array of MCP tools to extract annotations from * @returns ToolAnnotationsContext with per-tool annotations and server flags * * @example * ```typescript * const context = extractToolAnnotationsContext(tools); * if (context.serverIsReadOnly) { * console.log("Server is 100% read-only"); * } * ``` */ export declare function extractToolAnnotationsContext(tools: Tool[]): ToolAnnotationsContext; //# sourceMappingURL=ToolAnnotationExtractor.d.ts.map