UNPKG

@the_cfdude/productboard-mcp

Version:

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

82 lines (81 loc) 2.21 kB
/** * Context-aware tools with simplified approach * Provides intelligent response adaptation and user context management */ import { ToolDefinition } from '../types/tool-types.js'; /** * Set user context for intelligent response adaptation */ export declare function setUserContext(args: { sessionId: string; userPreferences?: { dataFormat?: 'detailed' | 'standard' | 'basic'; includeMetadata?: boolean; maxResults?: number; timezone?: string; language?: string; }; workspaceContext?: { id?: string; name?: string; permissions?: string[]; }; instanceContext?: { name?: string; features?: string[]; limits?: Record<string, number>; }; }): Promise<unknown>; /** * Get current user context */ export declare function getUserContext(args: { sessionId: string; }): Promise<unknown>; /** * Adapt response based on user context */ export declare function adaptResponse(args: { sessionId: string; query: string; originalResponse: unknown; includeGuidance?: boolean; includeSuggestions?: boolean; }): Promise<unknown>; /** * Add custom adaptation rule */ export declare function addAdaptationRule(args: { sessionId?: string; name: string; description: string; priority: number; condition: { type: 'query_contains' | 'response_size' | 'context_field' | 'custom'; value?: string; threshold?: number; field?: string; }; adaptation: { type: 'summarize' | 'simplify' | 'enhance' | 'filter' | 'custom'; parameters?: Record<string, unknown>; }; }): Promise<unknown>; /** * Clear user context */ export declare function clearUserContext(args: { sessionId: string; }): Promise<unknown>; /** * Get context-aware system statistics */ export declare function getContextStats(_args?: Record<string, unknown>): Promise<unknown>; /** * Tool handler function */ export declare function handleContextAwareTool(operation: string, args: Record<string, unknown>): Promise<unknown>; /** * Setup context-aware tools definitions */ export declare function setupContextAwareTools(): ToolDefinition[];