UNPKG

deepsource-mcp-server

Version:
30 lines (29 loc) 1.44 kB
/** * @fileoverview Dependency vulnerabilities handler for the DeepSource MCP server * This module provides MCP tool handlers for fetching dependency vulnerabilities. */ import { ApiResponse } from '../models/common.js'; import { PaginationParams } from '../utils/pagination/types.js'; import { BaseHandlerDeps } from './base/handler.interface.js'; /** * Interface for parameters for fetching dependency vulnerabilities * @public */ export interface DeepsourceDependencyVulnerabilitiesParams extends PaginationParams { /** DeepSource project key to fetch vulnerabilities for */ projectKey: string; } /** * Creates a dependency vulnerabilities handler with injected dependencies * @param deps - The dependencies for the handler * @returns The configured handler factory */ export declare const createDependencyVulnerabilitiesHandler: import("./base/handler.interface.js").HandlerFactory<BaseHandlerDeps, DeepsourceDependencyVulnerabilitiesParams, ApiResponse>; /** * Fetches and returns dependency vulnerabilities from a DeepSource project * @param params - Parameters for fetching vulnerabilities, including project key and pagination * @returns A response containing the vulnerabilities data * @throws Error if the DEEPSOURCE_API_KEY environment variable is not set * @public */ export declare function handleDeepsourceDependencyVulnerabilities(params: DeepsourceDependencyVulnerabilitiesParams): Promise<ApiResponse>;