UNPKG

mcp-quiz-server

Version:

🧠 AI-Powered Quiz Management via Model Context Protocol (MCP) - Create, manage, and take quizzes directly from VS Code, Claude, and other AI agents.

65 lines (64 loc) 2.96 kB
"use strict"; /** * @moduleName: MCP Transport Module Index * @version: 2.0.0 * @since: 2025-07-25 * @lastUpdated: 2025-07-27 * @projectSummary: Enhanced MCP Quiz Server - Transport Layer Aggregation * @techStack: TypeScript, JSON-RPC 2.0, MCP Protocol, Node.js HTTP, SSE * @dependency: None (pure aggregation module) * @interModuleDependency: All transport implementations and abstractions * @requirementsTraceability: * {@link Requirements.REQ_OPS_001} (Transport Configuration) * {@link Requirements.REQ_OPS_002} (Transport Monitoring) * {@link Requirements.REQ_OPS_003} (Protocol Adaptation) * {@link Requirements.REQ_OPS_004} (Communication Patterns) * @briefDescription: Central exports for all MCP transport layer components * @methods: Re-exports from transport implementations * @contributors: GitHub Copilot, Claude Code Agent * @examples: * - import { TransportFactory, STDIOTransport } from './transport'; * - const factory = new TransportFactory(); factory.getOptimalTransport(); * @vulnerabilitiesAssessment: Low - aggregation only, inherits security from components */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); // Core abstractions and interfaces __exportStar(require("./transport-abstraction"), exports); // Specific transport implementations __exportStar(require("./stdio-transport"), exports); // Factory and management __exportStar(require("./transport-factory"), exports); /** * Transport module summary: * * This module provides a comprehensive transport abstraction layer for the MCP protocol, * supporting current standards (STDIO, SSE) and future protocols (Streamable HTTP, WebSocket). * * Key Features: * - 🔌 Pluggable transport architecture * - 🚀 Auto-detection and optimal transport selection * - 🎯 Environment-specific optimization (VS Code, Browser, Server) * - 📡 Streaming capabilities with SSE * - 🔒 Security-first design with input validation * - 🛡️ Future-ready for emerging MCP standards * * Architecture: * - BaseTransport: Abstract foundation for all transports * - STDIOTransport: VS Code integration and local development * - SSETransport: Browser streaming and real-time updates * - TransportFactory: Intelligent transport selection and management */