UNPKG

ai-debug-local-mcp

Version:

🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh

57 lines • 2.19 kB
#!/usr/bin/env node import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; import { CallToolRequestSchema, ListToolsRequestSchema, } from '@modelcontextprotocol/sdk/types.js'; class SimpleAIDebugServer { server; constructor() { this.server = new Server({ name: 'ai-debug-local', version: '1.0.0', }); this.setupHandlers(); } setupHandlers() { this.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: [ { name: 'test_debug', description: 'Test that the AI Debug server is working', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'Test message' } } } } ] }; }); this.server.setRequestHandler(CallToolRequestSchema, async (request) => { if (request.params.name === 'test_debug') { return { content: [{ type: 'text', text: `✅ AI Debug Server is working!\n\nMessage: ${request.params.arguments?.message || 'No message provided'}\n\nThe full server with all debugging tools is available. Try:\n- inject_debugging\n- detect_problems\n- meta_framework_info` }] }; } throw new Error(`Unknown tool: ${request.params.name}`); }); } async run() { const transport = new StdioServerTransport(); await this.server.connect(transport); } } // Start server const server = new SimpleAIDebugServer(); server.run().catch((error) => { console.error('Server error:', error); process.exit(1); }); //# sourceMappingURL=simple-server.js.map