UNPKG

@the_cfdude/productboard-mcp

Version:

Model Context Protocol server for Productboard REST API with dynamic tool loading

90 lines (89 loc) 2.62 kB
/** * High-performance lightweight tools for status checking, validation, and monitoring */ import { ToolDefinition } from '../types/tool-types.js'; /** * Check status for multiple entities with minimal data transfer */ export declare function checkEntityStatus(args: { entityType: 'features' | 'notes' | 'companies' | 'users' | 'products' | 'components'; ids: string[]; fields?: string[]; format?: 'summary' | 'detailed' | 'counts'; useCache?: boolean; instance?: string; workspaceId?: string; }): Promise<unknown>; /** * Validate existence of multiple entities */ export declare function validateEntityExistence(args: { entityType: 'features' | 'notes' | 'companies' | 'users' | 'products' | 'components'; ids: string[]; returnMissing?: boolean; returnExisting?: boolean; useCache?: boolean; instance?: string; workspaceId?: string; }): Promise<any>; /** * Track progress for batch operations using custom markers */ export declare function trackBatchProgress(args: { entityType: 'features' | 'notes' | 'companies' | 'users' | 'products' | 'components'; ids: string[]; progressMarker: string; includeDetails?: boolean; groupBy?: 'status' | 'progress'; useCache?: boolean; instance?: string; workspaceId?: string; }): Promise<any>; /** * Get entity counts without fetching full data */ export declare function getEntityCounts(args: { entityType: 'features' | 'notes' | 'companies' | 'users' | 'products' | 'components'; filters?: Record<string, any>; useCache?: boolean; instance?: string; workspaceId?: string; }): Promise<any>; /** * Perform system health check */ export declare function performHealthCheck(args: { includeDetails?: boolean; includeCacheStats?: boolean; includeMemoryStats?: boolean; instance?: string; workspaceId?: string; }): Promise<any>; /** * Get performance statistics */ export declare function getPerformanceStats(args: { operation?: string; includePercentiles?: boolean; clearOldMetrics?: boolean; instance?: string; workspaceId?: string; }): Promise<any>; /** * Clear caches and perform cleanup */ export declare function performCleanup(args: { clearCache?: boolean; clearMetrics?: boolean; forceGC?: boolean; instance?: string; workspaceId?: string; }): Promise<any>; /** * Tool handler function */ export declare function handlePerformanceTool(operation: string, args: any): Promise<any>; /** * Setup performance tools definitions */ export declare function setupPerformanceTools(): ToolDefinition[];