mcp-adr-analysis-server
Version:
MCP server for analyzing Architectural Decision Records and project architecture
60 lines • 2.15 kB
TypeScript
/**
* Chain-of-Thought prompting template for MCP ADR Analysis Server
* Provides structured thinking patterns to reduce LLM confusion and improve accuracy
*/
/**
* Configuration for Chain-of-Thought prompting
*/
export interface ChainOfThoughtConfig {
/** Name of the task being performed */
taskName: string;
/** Step-by-step process instructions */
steps: string[];
/** Reasoning pattern to apply */
reasoningPattern?: 'sequential' | 'conditional' | 'exploratory' | 'analytical';
/** Validation checks to perform */
validationChecks?: string[];
/** Error handling instructions */
errorHandling?: string[];
/** Expected output format */
outputFormat?: string;
}
/**
* Generate Chain-of-Thought prompt section for structured AI reasoning
*
* @param config - Configuration for the Chain-of-Thought prompting
* @returns Formatted Chain-of-Thought prompt section
*/
export declare function generateChainOfThoughtSection(config: ChainOfThoughtConfig): string;
/**
* Directory scanning specific Chain-of-Thought template
*/
export declare function generateDirectoryScanningCoT(): string;
/**
* Add Chain-of-Thought wrapper to existing prompts
*/
export declare function enhancePromptWithCoT(originalPrompt: string, config: ChainOfThoughtConfig): string;
/**
* Specific CoT patterns for different prompt types
*/
export declare const COT_PATTERNS: {
readonly PROJECT_ANALYSIS: {
readonly taskName: "project structure analysis";
readonly steps: string[];
readonly reasoningPattern: "analytical";
readonly validationChecks: string[];
};
readonly ADR_SUGGESTION: {
readonly taskName: "architectural decision recommendation";
readonly steps: string[];
readonly reasoningPattern: "exploratory";
readonly validationChecks: string[];
};
readonly RULE_GENERATION: {
readonly taskName: "architectural rule extraction";
readonly steps: string[];
readonly reasoningPattern: "analytical";
readonly validationChecks: string[];
};
};
//# sourceMappingURL=chain-of-thought-template.d.ts.map