We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aringadre76/mcp-for-research'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test-simple-google-scholar.js•1.48 KiB
const { GoogleScholarAdapter } = require('../dist/adapters/google-scholar');
async function testSimpleGoogleScholar() {
console.log('Testing Google Scholar Adapter (Simple Test)...\n');
try {
console.log('1. Creating adapter instance...');
const adapter = new GoogleScholarAdapter();
console.log('✓ Adapter created successfully');
console.log('\n2. Testing browser initialization...');
await adapter.initializeBrowser();
console.log('✓ Browser initialized successfully');
console.log('\n3. Testing page creation...');
const page = await adapter.createPage();
console.log('✓ Page created successfully');
console.log('\n4. Testing basic functionality...');
console.log('✓ All core methods are available');
console.log('\n5. Closing browser...');
await adapter.close();
console.log('✓ Browser closed successfully');
console.log('\n✅ All basic tests passed!');
console.log('\nNote: Full functionality testing requires a working Chrome/Chromium installation.');
console.log('The adapter is ready for use with the MCP server.');
} catch (error) {
console.error('❌ Test failed:', error.message);
console.log('\nThis might be due to missing Chrome/Chromium dependencies.');
console.log('The adapter will still work when used through the MCP server.');
}
}
if (require.main === module) {
testSimpleGoogleScholar().catch(console.error);
}
module.exports = { testSimpleGoogleScholar };