@sinch/mcp
Version:
Sinch MCP server
57 lines (56 loc) • 1.91 kB
TypeScript
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { z } from 'zod';
import { IPromptResponse, Tags } from '../../types';
declare const choiceMessage: z.ZodEffects<z.ZodObject<{
phone_number: z.ZodOptional<z.ZodString>;
lat: z.ZodOptional<z.ZodNumber>;
long: z.ZodOptional<z.ZodNumber>;
address: z.ZodOptional<z.ZodString>;
text: z.ZodOptional<z.ZodString>;
url: z.ZodOptional<z.ZodString>;
title: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text?: string | undefined;
title?: string | undefined;
phone_number?: string | undefined;
lat?: number | undefined;
long?: number | undefined;
address?: string | undefined;
url?: string | undefined;
}, {
text?: string | undefined;
title?: string | undefined;
phone_number?: string | undefined;
lat?: number | undefined;
long?: number | undefined;
address?: string | undefined;
url?: string | undefined;
}>, {
text?: string | undefined;
title?: string | undefined;
phone_number?: string | undefined;
lat?: number | undefined;
long?: number | undefined;
address?: string | undefined;
url?: string | undefined;
}, {
text?: string | undefined;
title?: string | undefined;
phone_number?: string | undefined;
lat?: number | undefined;
long?: number | undefined;
address?: string | undefined;
url?: string | undefined;
}>;
export declare const registerSendCardOrChoiceMessage: (server: McpServer, tags: Tags[]) => void;
export declare const sendCardOrChoiceMessageHandler: ({ recipient, channel, choiceContent, text, mediaUrl, appId, sender, region }: {
recipient: string;
channel: string[];
choiceContent?: z.infer<typeof choiceMessage>[];
text: string;
mediaUrl?: string;
appId?: string;
sender?: string;
region?: string;
}) => Promise<IPromptResponse>;
export {};