mcp-ai-agent-guidelines
Version:
A comprehensive Model Context Protocol server providing advanced tools, resources, and prompts for implementing AI agent best practices
39 lines • 1.26 kB
TypeScript
/**
* MCP Prompt Handlers
*
* This module provides MCP prompt capability handlers that delegate to tool builders
* to generate structured prompts. This ensures a single source of truth for prompt
* generation logic and maintains consistency across both MCP prompts and tools.
*
* Architecture:
* - Prompt definitions (metadata only) are maintained here for MCP listPrompts
* - Prompt generation delegates to corresponding tool builders in src/tools/prompt/
* - Output is cleaned to remove tool-specific metadata (frontmatter, refs, etc.)
*
* Benefits:
* - No code duplication between prompts and tools
* - Consistent, high-quality prompt generation
* - Single place to update prompt logic
* - Tools can be used directly or via MCP prompts
*/
export declare function listPrompts(): Promise<{
name: string;
description: string;
arguments: {
name: string;
description: string;
required: boolean;
}[];
}[]>;
type PromptArgs = Record<string, unknown>;
export declare function getPrompt(name: string, args: PromptArgs): Promise<{
messages: {
role: string;
content: {
type: string;
text: string;
};
}[];
}>;
export {};
//# sourceMappingURL=index.d.ts.map