Skip to main content
Glama

Beep Boop MCP

test-blocking-conversation.jsβ€’1.93 kB
#!/usr/bin/env node // Force local implementation by setting environment process.env.BEEP_BOOP_LISTENER_ENABLED = 'false'; process.env.BEEP_BOOP_DISCORD_DEFAULT_CHANNEL_ID = '1408235462769901598'; import { handleInitiateConversation } from './dist/tools.js'; async function testBlockingConversation() { console.log('πŸ§ͺ Starting blocking conversation test...'); console.log('πŸ“§ This will send a message to Discord and wait for your reply'); console.log('⏰ Maximum wait time: 5 minutes\n'); const params = { platform: 'discord', content: 'πŸ§ͺ **BLOCKING CONVERSATION TEST** πŸ§ͺ\n\nHi! This is a test of the new blocking conversation feature. I\'m going to wait here for up to 5 minutes for your reply.\n\n**What to do:**\n1. Reply to this message in Discord\n2. Watch me detect your response and return immediately!\n\n**Testing:** True blocking behavior with polling every 2 seconds', agentId: 'test-blocking-agent' }; const startTime = Date.now(); console.log(`πŸš€ Calling initiate_conversation at ${new Date().toISOString()}`); console.log('βŒ› Waiting for response...\n'); try { const result = await handleInitiateConversation(params); const duration = Math.round((Date.now() - startTime) / 1000); console.log(`\nβœ… Function completed after ${duration} seconds`); console.log('πŸ“„ Result:'); console.log(JSON.stringify(result, null, 2)); if (duration < 10) { console.log('\n⚠️ Function returned very quickly - check if message was sent properly'); } else if (duration >= 300) { console.log('\n⏰ Function timed out after 5 minutes - no user response detected'); } else { console.log('\nπŸŽ‰ SUCCESS! User response detected and blocking behavior worked correctly!'); } } catch (error) { console.error('\n❌ Error during test:', error); } } testBlockingConversation().catch(console.error);

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thesammykins/beep_boop_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server