mcp-ai-agent-guidelines
Version:
A comprehensive Model Context Protocol server providing advanced tools, resources, and prompts for implementing AI agent best practices
30 lines • 1.07 kB
TypeScript
/**
* Validate Spec Tool
*
* Dedicated MCP tool for validating spec.md content against
* constitutional constraints without generating new artifacts.
* Useful for iterative spec refinement and quality assurance.
*
* @module tools/validate-spec
*/
import type { ValidateSpecRequest } from "../schemas/validate-spec.js";
import type { McpResponse } from "./shared/error-handler.js";
/**
* Validate spec.md content against constitutional constraints
*
* @param request - Validation request with spec content and constitution
* @returns MCP response with validation results
* @throws {Error} If neither constitutionPath nor constitutionContent is provided
* @throws {Error} If constitution file cannot be read
*
* @example
* ```typescript
* const result = await validateSpec({
* specContent: "# My Spec\n\n## Overview\n...",
* constitutionPath: "./CONSTITUTION.md",
* outputFormat: "markdown"
* });
* ```
*/
export declare function validateSpec(request: ValidateSpecRequest): Promise<McpResponse>;
//# sourceMappingURL=validate-spec.d.ts.map