deepsource-mcp-server
Version:
Model Context Protocol server for DeepSource
26 lines (25 loc) • 1.03 kB
TypeScript
/**
* @fileoverview Run handler for the DeepSource MCP server
* This module provides MCP tool handlers for fetching a specific DeepSource analysis run.
*/
import { ApiResponse } from '../models/common.js';
/**
* Interface for parameters for fetching a specific run
* @public
*/
export interface DeepsourceRunParams {
/** DeepSource project key to fetch the run from */
projectKey: string;
/** The run identifier (runUid or commitOid) */
runIdentifier: string;
/** Flag to indicate whether the runIdentifier is a commitOid (default: false) */
isCommitOid?: boolean;
}
/**
* Fetches and returns information about a specific analysis run
* @param params - Parameters for fetching the run, including project key and run identifier
* @returns A response containing the run data
* @throws Error if the DEEPSOURCE_API_KEY environment variable is not set
* @public
*/
export declare function handleDeepsourceRun({ projectKey, runIdentifier, isCommitOid, }: DeepsourceRunParams): Promise<ApiResponse>;