UNPKG

mcp-server-tester-sse-http-stdio

Version:

MCP Server Tester with SSE support - Test MCP servers using HTTP, SSE, and STDIO transports

30 lines (29 loc) 1.28 kB
/** * Base class for all diagnostic tests */ import type { McpClient } from '../../shared/core/mcp-client.js'; import type { ComplianceConfig, DiagnosticResult, TestSeverity, TestCategory, IssueType, ProtocolFeature } from './types.js'; import type { McpCapability } from './CapabilityDetector.js'; export declare abstract class DiagnosticTest { abstract readonly name: string; abstract readonly description: string; abstract readonly category: TestCategory; abstract readonly severity: TestSeverity; readonly feature?: ProtocolFeature; readonly requiredCapability?: McpCapability; readonly mcpSpecSection?: string; abstract execute(_client: McpClient, _config: ComplianceConfig): Promise<DiagnosticResult>; protected createResult(success: boolean, message: string, details?: unknown, recommendations?: string[]): DiagnosticResult; protected createEnhancedResult(options: { success: boolean; message: string; details?: unknown; recommendations?: string[]; issueType?: IssueType; expected?: string; actual?: string; fixInstructions?: string[]; specLinks?: string[]; }): DiagnosticResult; protected createSkippedResult(reason: string): DiagnosticResult; }