Skip to main content
Glama

Voice Call MCP Server

by popcornspace
context.service.ts982 B
import { generateOutboundCallContext } from '../../config/prompts.js'; import { CallState, ConversationMessage } from '../../types.js'; export class OpenAIContextService { public initializeCallState(callState: CallState, fromNumber: string, toNumber: string): void { callState.fromNumber = fromNumber; callState.toNumber = toNumber; } public setupConversationContext(callState: CallState, callContext?: string): void { callState.initialMessage = 'Hello!'; callState.callContext = generateOutboundCallContext(callState, callContext); const systemMessage: ConversationMessage = { role: 'system', content: callState.callContext }; callState.conversationHistory = [systemMessage]; const initialMessage: ConversationMessage = { role: 'user', content: callState.initialMessage }; callState.conversationHistory.push(initialMessage); } }

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