Base Network MCP Server

MIT License
4
1
  • Apple
#!/usr/bin/env node import { spawn } from 'child_process'; // Path to the MCP server executable const serverPath = './dist/index.js'; // Start the MCP server as a child process console.log('Starting Base MCP Server...'); const server = spawn('node', [serverPath], { stdio: ['pipe', 'pipe', process.stderr] }); // Handle server output server.stdout.on('data', (data) => { console.log('Server output:', data.toString()); }); // Wait for server to start setTimeout(() => { console.log('Sending debug requests...'); // Try different method names to see which one works const methods = [ 'listTools', 'list_tools', 'ListTools', 'list-tools', 'callTool', 'call_tool', 'CallTool', 'call-tool' ]; let index = 0; // Send a request every second const interval = setInterval(() => { if (index >= methods.length) { clearInterval(interval); console.log('All methods tested. Exiting...'); server.kill(); process.exit(0); return; } const method = methods[index]; console.log(`Testing method: ${method}`); const request = { jsonrpc: '2.0', id: index.toString(), method: method, params: {} }; server.stdin.write(JSON.stringify(request) + '\n'); index++; }, 1000); }, 2000); // Handle process termination process.on('SIGINT', () => { console.log('Shutting down...'); server.kill(); process.exit(0); });
ID: xx2sxvy29l