@digitalsamba/embedded-api-mcp-server
Version:
Digital Samba Embedded API MCP Server - Model Context Protocol server for Digital Samba's Embedded API
65 lines • 2.52 kB
TypeScript
/**
* Digital Samba MCP Server - Live Session Control Tools
*
* This module implements tools for real-time control of live Digital Samba sessions.
* It provides MCP tools for managing active sessions including transcription and
* phone participant integration.
*
* Tools provided:
* - start-transcription: Start transcription for a session
* - stop-transcription: Stop transcription for a session
* - phone-participants-joined: Register phone participants joining
* - phone-participants-left: Register phone participants leaving
*
* Note: Recording controls (start/stop) are in the recording-management module
* Note: Session termination (end-session) is in the session-management module
*
* @module tools/live-session-controls
* @author Digital Samba Team
* @version 1.0.0
*/
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { DigitalSambaApiClient } from "../../digital-samba-api.js";
/**
* Tool definition interface
*/
interface ToolDefinition {
name: string;
description: string;
inputSchema: any;
}
/**
* Register live session control tools with the MCP SDK
*
* This function returns an array of tool definitions that can be registered
* with the MCP server. It follows the modular pattern where tools are defined
* here and registered in the main index.ts file.
*
* @returns {ToolDefinition[]} Array of tool definitions
*/
export declare function registerLiveSessionTools(): ToolDefinition[];
/**
* Execute a live session control tool
*
* This function handles the execution of live session control tools.
* It's called by the main server when a tool is invoked.
*
* @param {string} toolName - Name of the tool to execute
* @param {any} params - Tool parameters
* @param {DigitalSambaApiClient} apiClient - API client instance
* @returns {Promise<any>} Tool execution result
*/
export declare function executeLiveSessionTool(toolName: string, params: any, _apiClient: DigitalSambaApiClient): Promise<any>;
/**
* Set up live session control tools for the MCP server (legacy function)
*
* This function is kept for backward compatibility but delegates to the
* modular registration system.
*
* @deprecated Use registerLiveSessionTools() and executeLiveSessionTool() instead
* @param {McpServer} server - The MCP server instance
* @param {string} apiUrl - Base URL for the Digital Samba API
*/
export declare function setupLiveSessionTools(server: McpServer, apiUrl: string): void;
export {};
//# sourceMappingURL=index.d.ts.map