()
| 778 | } |
| 779 | |
| 780 | async run() { |
| 781 | debugLog('🚀 Starting MCP Server transport...'); |
| 782 | const transport = new StdioServerTransport(); |
| 783 | debugLog('🎯 iCSS MCP Server running on stdio (Debug Mode)'); |
| 784 | console.error('🎯 iCSS MCP Server running on stdio (Debug Mode)'); |
| 785 | |
| 786 | try { |
| 787 | await this.server.connect(transport); |
| 788 | } catch (error) { |
| 789 | debugLog('💥 Server error:', error); |
| 790 | console.error('❌ Fatal error:', error.message); |
| 791 | process.exit(1); |
| 792 | } |
| 793 | } |
| 794 | } |
| 795 | |
| 796 | // 启动服务器 |
no test coverage detected