// Test HTTP endpoint const http = require('http'); const data = JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'tools/list', params: {} }); const options = { hostname: '127.0.0.1', port: 19017, path: '/', method: 'POST', headers: { 'Content-Type': 'application/json', 'Content-Length': data.length } }; const req = http.request(options, (res) => { console.log(`Status: ${res.statusCode}`); console.log(`Headers: ${JSON.stringify(res.headers)}`); let body = ''; res.on('data', (chunk) => { body += chunk; }); res.on('end', () => { console.log('Response:', body); }); }); req.on('error', (error) => { console.error('Error:', error); }); req.write(data); req.end();