Skip to main content
Glama
sinch
by sinch
server.ts1.31 kB
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { registerPrompts } from './prompts'; import { registerVerificationTools } from './tools/verification'; import { registerConversationTools } from './tools/conversation'; import { registerVoiceTools } from './tools/voice'; import { registerEmailTools } from './tools/email'; import { registerConfigurationTools } from './tools/configuration'; import { Tags } from './types'; import { version as mcpServerVersion } from '../package.json'; export const instantiateMcpServer = () => { return new McpServer({ name: 'Sinch', version: mcpServerVersion, capabilities: { resources: {}, tools: {}, prompts: {} } }) }; export const parseArgs = (args: string[]): Tags[] => { const args1 = args.slice(2); return args1.includes('--tags') ? args1[args1.indexOf('--tags') + 1].split(',') : []; } export const registerCapabilities = (server: McpServer, tags: Tags[]) => { if ( tags.length === 0) tags.push('all') // Register the prompts registerPrompts(server, tags); // Register the tools registerVerificationTools(server, tags); registerConversationTools(server, tags); registerVoiceTools(server, tags); registerEmailTools(server, tags); registerConfigurationTools(server); }

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/sinch/sinch-mcp-server'

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