We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4001703 + 2209f7b commit ad819a2Copy full SHA for ad819a2
src/extract-tools.ts
@@ -15,6 +15,7 @@ export interface McpToolLogEntry {
15
}
16
17
export interface AAPMcpToolDefinition extends McpToolDefinition {
18
+ deprecated: boolean;
19
logs: McpToolLogEntry[];
20
size?: number;
21
@@ -366,6 +367,8 @@ export function extractToolsFromApi(api: OpenAPIV3.Document, defaultInclude = tr
366
367
// Determine security requirements
368
const securityRequirements = operation.security === null ? globalSecurity : operation.security || globalSecurity;
369
370
+ const deprecated = operation.deprecated || false;
371
+
372
// Create the tool definition
373
tools.push({
374
name: nameCandidate,
0 commit comments