UNPKG

mcp-server-tester-sse-http-stdio

Version:

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

33 lines (32 loc) 1.65 kB
/** * Connection Health Tests * Tests STDIO, HTTP, and SSE transport connectivity and lifecycle management */ import { DiagnosticTest } from '../DiagnosticTest.js'; import { type DiagnosticResult, type ComplianceConfig } from '../types.js'; import { type McpClient as McpClientType } from '../../../shared/core/mcp-client.js'; declare class StdioConnectivityTest extends DiagnosticTest { readonly name = "Base Protocol: Transport Layer (STDIO)"; readonly description = "Test STDIO transport establishment and basic communication"; readonly category = "base-protocol"; readonly feature: "transport"; readonly severity: "critical"; execute(client: McpClientType, config: ComplianceConfig): Promise<DiagnosticResult>; } declare class ConnectionLifecycleTest extends DiagnosticTest { readonly name = "Base Protocol: Transport Connection Lifecycle"; readonly description = "Test connection establishment and clean termination"; readonly category = "base-protocol"; readonly feature: "transport"; readonly severity: "warning"; execute(_client: McpClientType, config: ComplianceConfig): Promise<DiagnosticResult>; } declare class TransportErrorHandlingTest extends DiagnosticTest { readonly name = "Base Protocol: Transport Error Handling"; readonly description = "Test basic transport-level error handling"; readonly category = "base-protocol"; readonly feature: "transport"; readonly severity: "warning"; execute(client: McpClientType, _config: ComplianceConfig): Promise<DiagnosticResult>; } export { StdioConnectivityTest, ConnectionLifecycleTest, TransportErrorHandlingTest };