Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/parser/extract-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export function extractToolsFromApi(
const securityRequirements =
operation.security === null ? globalSecurity : operation.security || globalSecurity;

const deprecated = operation.deprecated || false;

// Create the tool definition
tools.push({
name: finalToolName,
Expand All @@ -102,6 +104,7 @@ export function extractToolsFromApi(
requestBodyContentType,
securityRequirements,
operationId: baseName,
deprecated,
});
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export interface McpToolDefinition {
securityRequirements: OpenAPIV3.SecurityRequirementObject[];
/** Original operation ID from the OpenAPI spec */
operationId: string;
/** OpenAPI deprecated attribute **/
deprecated: boolean;
}

/**
Expand Down