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
JavaScript
// 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();