We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SMGoro/mcsm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
simple-test.jsβ’1.41 KiB
/**
* Simple test to verify the MCP server code compiles and loads correctly
*/
console.log('π§ͺ Running simple test to verify MCP server code...');
try {
// Try to import the main modules to check for syntax errors
import('../src/tools.js').then(tools => {
console.log('β Tools module loaded successfully');
// Check that TOOL_DEFINITIONS exists
if (tools.TOOL_DEFINITIONS && Array.isArray(tools.TOOL_DEFINITIONS)) {
console.log(`β Found ${tools.TOOL_DEFINITIONS.length} tool definitions`);
} else {
console.log('β TOOL_DEFINITIONS not found or not an array');
process.exit(1);
}
// Check that handleToolCall function exists
if (typeof tools.handleToolCall === 'function') {
console.log('β handleToolCall function found');
} else {
console.log('β handleToolCall function not found');
process.exit(1);
}
// Check that listTools function exists
if (typeof tools.listTools === 'function') {
console.log('β listTools function found');
} else {
console.log('β listTools function not found');
process.exit(1);
}
console.log('\nπ All basic checks passed!');
process.exit(0);
}).catch(error => {
console.error('β Test failed with error:', error.message);
process.exit(1);
});
} catch (error) {
console.error('β Test failed with error:', error.message);
process.exit(1);
}