UNPKG

frappe-mcp-server

Version:

Enhanced Model Context Protocol server for Frappe Framework with comprehensive API instructions and helper tools

36 lines (28 loc) โ€ข 1.17 kB
#!/usr/bin/env node // Simple test to check if HTTP server is running import axios from 'axios'; async function simpleTest() { try { console.log('๐Ÿงช Testing HTTP server at http://localhost:51966 (0xCAFE)'); // Test health endpoint console.log('Testing /health...'); const healthResponse = await axios.get('http://localhost:51966/health', { timeout: 5000 }); console.log('โœ… Health:', healthResponse.data); // Test info endpoint console.log('Testing /info...'); const infoResponse = await axios.get('http://localhost:51966/info', { timeout: 5000 }); console.log('โœ… Info:', infoResponse.data); // Test ping tool console.log('Testing ping tool...'); const pingResponse = await axios.post('http://localhost:51966/call/ping', {}, { timeout: 5000 }); console.log('โœ… Ping:', pingResponse.data); console.log('๐ŸŽ‰ All tests passed!'); } catch (error) { console.error('โŒ Test failed:', error.message); if (error.response) { console.error('Response status:', error.response.status); console.error('Response data:', error.response.data); } } } simpleTest();