deepsource-mcp-server
Version:
Model Context Protocol server for DeepSource
25 lines (24 loc) • 1.11 kB
TypeScript
/**
* @fileoverview Recent run issues handler for the DeepSource MCP server
* This module provides MCP tool handlers for fetching issues from the most recent run.
*/
import { ApiResponse } from '../models/common.js';
import { PaginationParams } from '../utils/pagination/types.js';
/**
* Interface for parameters for fetching issues from the most recent run
* @public
*/
export interface DeepsourceRecentRunIssuesParams extends PaginationParams {
/** DeepSource project key to fetch issues for */
projectKey: string;
/** Branch name to fetch the most recent run from */
branchName: string;
}
/**
* Fetches and returns issues from the most recent analysis run on a specific branch
* @param params - Parameters for fetching the issues, including project key, branch name, and pagination
* @returns A response containing the issues data and run information
* @throws Error if the DEEPSOURCE_API_KEY environment variable is not set
* @public
*/
export declare function handleDeepsourceRecentRunIssues({ projectKey, branchName, }: DeepsourceRecentRunIssuesParams): Promise<ApiResponse>;