mcp-ai-agent-guidelines
Version:
A comprehensive Model Context Protocol server providing advanced tools, resources, and prompts for implementing AI agent best practices
112 lines • 6.49 kB
TypeScript
import { z } from "zod";
declare const HierarchicalPromptSchema: z.ZodObject<{
context: z.ZodString;
goal: z.ZodString;
requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
outputFormat: z.ZodOptional<z.ZodString>;
audience: z.ZodOptional<z.ZodString>;
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["agent", "tool", "workflow"]>>>;
model: z.ZodDefault<z.ZodOptional<z.ZodString>>;
tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
description: z.ZodOptional<z.ZodString>;
includeFrontmatter: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
includeDisclaimer: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
includeReferences: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
issues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
includeExplanation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
includeMetadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
inputFile: z.ZodOptional<z.ZodString>;
forcePromptMdStyle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
techniques: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEnum<["zero-shot", "few-shot", "chain-of-thought", "self-consistency", "in-context-learning", "generate-knowledge", "prompt-chaining", "tree-of-thoughts", "meta-prompting", "rag", "react", "art"]>, "many">>, ("zero-shot" | "few-shot" | "chain-of-thought" | "self-consistency" | "in-context-learning" | "generate-knowledge" | "prompt-chaining" | "tree-of-thoughts" | "meta-prompting" | "rag" | "react" | "art")[] | undefined, unknown>;
includeTechniqueHints: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
includePitfalls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
autoSelectTechniques: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
provider: z.ZodDefault<z.ZodOptional<z.ZodEnum<["gpt-4.1", "gpt-5", "gpt-5.1", "gpt-5.2", "gpt-5-codex", "gpt-5.1-codex", "gpt-5.1-codex-mini", "gpt-5-mini", "claude-opus-4.1", "claude-haiku-4.5", "claude-sonnet-4.5", "claude-sonnet-4", "gemini-2.5-pro", "gemini-2.0-flash", "grok-code-fast-1", "qwen2.5", "raptor-mini", "other"]>>>;
style: z.ZodOptional<z.ZodEnum<["markdown", "xml"]>>;
exportFormat: z.ZodDefault<z.ZodOptional<z.ZodEnum<["markdown", "latex", "csv", "json"]>>>;
includeHeaders: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
documentTitle: z.ZodOptional<z.ZodString>;
documentAuthor: z.ZodOptional<z.ZodString>;
documentDate: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
context: string;
includeHeaders: boolean;
exportFormat: "markdown" | "latex" | "csv" | "json";
includeFrontmatter: boolean;
mode: "agent" | "tool" | "workflow";
model: string;
tools: string[];
includeReferences: boolean;
includeMetadata: boolean;
forcePromptMdStyle: boolean;
goal: string;
includeDisclaimer: boolean;
includeExplanation: boolean;
includeTechniqueHints: boolean;
includePitfalls: boolean;
autoSelectTechniques: boolean;
provider: "gpt-4.1" | "gpt-5" | "gpt-5.1" | "gpt-5.2" | "gpt-5-codex" | "gpt-5.1-codex" | "gpt-5.1-codex-mini" | "gpt-5-mini" | "claude-opus-4.1" | "claude-haiku-4.5" | "claude-sonnet-4.5" | "claude-sonnet-4" | "gemini-2.5-pro" | "gemini-2.0-flash" | "grok-code-fast-1" | "qwen2.5" | "raptor-mini" | "other";
issues?: string[] | undefined;
documentTitle?: string | undefined;
documentAuthor?: string | undefined;
documentDate?: string | undefined;
description?: string | undefined;
inputFile?: string | undefined;
requirements?: string[] | undefined;
constraints?: string[] | undefined;
outputFormat?: string | undefined;
audience?: string | undefined;
techniques?: ("zero-shot" | "few-shot" | "chain-of-thought" | "self-consistency" | "in-context-learning" | "generate-knowledge" | "prompt-chaining" | "tree-of-thoughts" | "meta-prompting" | "rag" | "react" | "art")[] | undefined;
style?: "markdown" | "xml" | undefined;
}, {
context: string;
goal: string;
issues?: string[] | undefined;
includeHeaders?: boolean | undefined;
exportFormat?: "markdown" | "latex" | "csv" | "json" | undefined;
includeFrontmatter?: boolean | undefined;
documentTitle?: string | undefined;
documentAuthor?: string | undefined;
documentDate?: string | undefined;
mode?: "agent" | "tool" | "workflow" | undefined;
model?: string | undefined;
tools?: string[] | undefined;
description?: string | undefined;
includeReferences?: boolean | undefined;
includeMetadata?: boolean | undefined;
inputFile?: string | undefined;
forcePromptMdStyle?: boolean | undefined;
requirements?: string[] | undefined;
constraints?: string[] | undefined;
outputFormat?: string | undefined;
audience?: string | undefined;
includeDisclaimer?: boolean | undefined;
includeExplanation?: boolean | undefined;
techniques?: unknown;
includeTechniqueHints?: boolean | undefined;
includePitfalls?: boolean | undefined;
autoSelectTechniques?: boolean | undefined;
provider?: "gpt-4.1" | "gpt-5" | "gpt-5.1" | "gpt-5.2" | "gpt-5-codex" | "gpt-5.1-codex" | "gpt-5.1-codex-mini" | "gpt-5-mini" | "claude-opus-4.1" | "claude-haiku-4.5" | "claude-sonnet-4.5" | "claude-sonnet-4" | "gemini-2.5-pro" | "gemini-2.0-flash" | "grok-code-fast-1" | "qwen2.5" | "raptor-mini" | "other" | undefined;
style?: "markdown" | "xml" | undefined;
}>;
type HierarchicalPromptInput = z.infer<typeof HierarchicalPromptSchema>;
declare function buildHierarchicalFrontmatter(input: HierarchicalPromptInput): string;
export declare function hierarchicalPromptBuilder(args: unknown): Promise<import("../shared/error-handler.js").McpResponse | {
content: {
type: string;
text: string;
}[];
}>;
/**
* Normalize enumerated list styles in free-form text:
* - Converts patterns like "1) Item" to "1. Item" to align with Markdown ordered lists.
* - Preserves content inside fenced code blocks (```...```) unchanged.
* This is intentionally limited to simple numeric list markers to avoid unintended changes.
*/
declare function normalizeOutputFormat(text: string): string;
/** @internal - For testing purposes only */
export { normalizeOutputFormat as _normalizeOutputFormat };
/** @internal - For testing purposes only */
export { buildHierarchicalFrontmatter as _buildHierarchicalFrontmatter };
//# sourceMappingURL=hierarchical-prompt-builder.d.ts.map