UNPKG

mushcode-mcp-server

Version:

A specialized Model Context Protocol server for MUSHCODE development assistance. Provides AI-powered code generation, validation, optimization, and examples for MUD development.

61 lines 1.85 kB
/** * validate_mushcode tool implementation * Validates MUSHCODE for syntax errors and security vulnerabilities */ import { MushcodeKnowledgeBase } from '../knowledge/base.js'; import { SyntaxError, SecurityWarning, CodeImprovement } from '../types/knowledge.js'; interface ValidateToolResult { is_valid: boolean; syntax_errors: SyntaxError[]; security_warnings: SecurityWarning[]; best_practice_suggestions: CodeImprovement[]; compatibility_notes: string[]; analysis_summary: { total_lines: number; complexity_score: number; security_score: number; maintainability_score: number; }; } export declare const validateMushcodeTool: { name: string; description: string; inputSchema: { type: "object"; properties: { code: { type: string; description: string; minLength: number; maxLength: number; }; server_type: { type: string; description: string; enum: string[]; }; strict_mode: { type: string; description: string; default: boolean; }; check_security: { type: string; description: string; default: boolean; }; check_best_practices: { type: string; description: string; default: boolean; }; }; required: string[]; }; }; /** * Tool handler for validate_mushcode */ export declare function validateMushcodeHandler(args: Record<string, unknown>, knowledgeBase: MushcodeKnowledgeBase): Promise<ValidateToolResult>; export {}; //# sourceMappingURL=validate.d.ts.map