// Simple test - verify npm link works
console.log('Testing MCX npm link...\n');
// Test 1: Import @mcx/core
try {
const core = await import('@mcx/core');
console.log('✅ @mcx/core imported');
console.log(' Exports:', Object.keys(core).slice(0, 5).join(', '), '...');
} catch (e) {
console.log('❌ @mcx/core import failed:', (e as Error).message);
}
// Test 2: Import @mcx/adapters
try {
const adapters = await import('@mcx/adapters');
console.log('✅ @mcx/adapters imported');
console.log(' Exports:', Object.keys(adapters).slice(0, 5).join(', '), '...');
} catch (e) {
console.log('❌ @mcx/adapters import failed:', (e as Error).message);
}
export default async function() {
return { status: 'ok', timestamp: new Date().toISOString() };
}