Skip to main content
Glama

Voice Call MCP Server

by popcornspace
call-utils.ts563 B
import { WebSocket } from 'ws'; import { GOODBYE_PHRASES } from '../config/constants.js'; export const checkForGoodbye = (text: string): boolean => { const lowercaseText = text.toLowerCase(); return GOODBYE_PHRASES.some(phrase => lowercaseText.includes(phrase)); }; export const endCall = (ws: WebSocket, openAiWs: WebSocket): void => { setTimeout(() => { if (ws.readyState === WebSocket.OPEN) { ws.close(); } if (openAiWs.readyState === WebSocket.OPEN) { openAiWs.close(); } }, 5000); };

Latest Blog Posts

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/popcornspace/voice-call-mcp-server'

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