@wallacewen/tapd-mcp-server
Version:
Model Context Protocol server for TAPD (Tencent Agile Product Development) - Provides professional weekly report generation and timesheet analysis
141 lines • 4.43 kB
TypeScript
export interface TimeSheetQueryParams {
name: string;
startDate: string;
endDate: string;
}
export interface TimeSheetEntry {
id?: string;
name?: string;
date?: string;
hours?: number;
project?: string;
task?: string;
description?: string;
[key: string]: any;
}
export interface TimeSheetResponse {
success: boolean;
data: TimeSheetEntry[];
message?: string;
total?: number;
}
export interface TimeSheetSelectParams {
startDate: string;
endDate: string;
}
export interface MantisAnalysisEntry {
id?: string;
date?: string;
hours?: number;
project?: string;
task?: string;
description?: string;
analysisType?: string;
severity?: string;
status?: string;
thisWeekNonModifiedCount?: number;
thisWeekNonModifiedWithin8h?: number;
thisWeekNonModifiedExceeding8h?: number;
thisWeekModifiedCount?: number;
thisYearNonModifiedCount?: number;
thisYearModifiedCount?: number;
thisYearNonModifiedTimeOutCount?: number;
lastYearNonModifiedCount?: number;
lastYearModifiedCount?: number;
lastYearNonModifiedTimeOutCount?: number;
processingTime?: number;
mantisId?: number;
currentHandler?: string;
submitter?: string;
dateFixed?: string | null;
lastReplyTime?: string | null;
submitTime?: string | null;
summary?: string;
projectName?: string;
category?: string;
knowledgeBaseCovered?: string | null;
weekKey?: string;
weekValue?: number;
trendType?: string;
period?: string;
count?: number;
thisWeekNonModifiedDataCount?: number;
thisWeekNonModifiedDataWithin8HoursCount?: number;
thisWeekNonModifiedDataExceeding8HoursCount?: number;
thisWeekModifiedDataCount?: number;
thisYearNonModifiedDataCount?: number;
thisYearModifiedDataCount?: number;
thisYearNonModifiedDataTimeOutCount?: number;
lastYearNonModifiedDataCount?: number;
lastYearModifiedDataCount?: number;
lastYearNonModifiedDataTimeOutCount?: number;
thisWeekModifiedDataProcessingTimeExceeding8HoursMantisDetails?: any[];
thisWeekModifiedDataProcessingTimeWithin8HoursMantisDetails?: any[];
lastTwelveWeeksModifiedDataVolumeTrend?: Record<string, number>;
lastTwelveWeeksNonModifiedDataVolumeTrend?: Record<string, number>;
[key: string]: any;
}
export interface MantisAnalysisResponse {
success: boolean;
data: MantisAnalysisEntry[];
message?: string;
total?: number;
}
export interface WorkflowRunParams {
msg: string;
}
export interface WorkflowRunResponse {
success: boolean;
data: {
task_id: string;
workflow_run_id: string;
data: {
id: string;
workflow_id: string;
status: string;
outputs: Record<string, any>;
error: string | null;
elapsed_time: number;
total_tokens: number;
total_steps: number;
created_at: number;
finished_at: number;
};
};
message?: string;
}
export declare class TAPDClient {
private httpClient;
private workflowClient;
private baseUrl;
private workflowBaseUrl;
private workflowToken;
constructor(baseUrl?: string, workflowBaseUrl?: string, workflowToken?: string);
/**
* Query time sheets for a specific user and date range
* 完全匹配test.http中的POST请求格式
* @param params Parameters for querying time sheets
* @returns Promise containing the time sheet data
*/
queryTimeSheets(params: TimeSheetQueryParams): Promise<TimeSheetResponse>;
/**
* Select time sheet data for mantis operation analysis
* 完全匹配Untitled-1.http中的POST请求格式
* @param params Parameters for selecting time sheet data
* @returns Promise containing the mantis analysis data
*/
selectTimeSheet(params: TimeSheetSelectParams): Promise<MantisAnalysisResponse>;
/**
* Get the base URL being used
* @returns The base URL for TAPD API
*/
/**
* Run workflow to query TAPD bug list and details
* @param params Parameters for workflow run
* @returns Promise containing the workflow run response
*/
runWorkflow(params: WorkflowRunParams): Promise<WorkflowRunResponse>;
getBaseUrl(): string;
getWorkflowBaseUrl(): string;
}
//# sourceMappingURL=tapd.d.ts.map