UNPKG

@hivetechs/hive-ai

Version:

Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API

88 lines 2.38 kB
/** * Model Context Protocol (MCP) Server for Hive AI - HTTP+SSE Transport * * This server exposes Hive AI consensus, analytics, and profile management * capabilities to AI agents and tools through modern HTTP+SSE streaming. * * Supports all major IDEs: Claude Code, Cursor, Windsurf, VS Code * MCP Specification: https://modelcontextprotocol.io/ */ /** * Hive AI MCP Server Manager - HTTP+SSE Transport (Stateless) * * Stateless MCP server following 2025-03-26 specification. * No persistent sessions - each request is handled independently. */ declare class HiveAIMCPServer { private httpServer; private serverInstance; private port; private isRunning; private portManager; constructor(port?: number); /** * Validate Origin header for security (2025-03-26 MCP spec requirement) */ private isValidOrigin; /** * Initialize the HTTP+SSE MCP server */ private initialize; /** * Set up HTTP server with MCP endpoints following 2025-03-26 specification */ private setupHTTPServer; /** * Execute Hive CLI command with real-time SSE streaming */ private executeHiveCommandWithStreaming; /** * Execute Hive CLI command without streaming */ private executeHiveCommand; /** * Build Hive CLI command from tool name and arguments */ private buildHiveCommand; /** * Execute streaming consensus using direct engine (real-time SSE) */ private executeStreamingConsensus; /** * Set up error handling for the HTTP server */ private setupErrorHandling; /** * Start the HTTP+SSE MCP server */ start(): Promise<void>; /** * Stop the HTTP+SSE MCP server */ stop(): Promise<void>; /** * Check if the server is running */ isServerRunning(): boolean; /** * Get server status and health information */ getStatus(): Promise<any>; /** * Get detailed port management report */ getPortReport(): Promise<any>; /** * Resolve any port conflicts */ resolvePortConflicts(): Promise<any>; /** * Change the server port (requires restart) */ changePort(newPort: number): Promise<{ success: boolean; message: string; }>; } export { HiveAIMCPServer }; //# sourceMappingURL=server.d.ts.map