UNPKG

@chinchillaenterprises/mcp-ai-assistant

Version:

MCP server for AI assistant with ElevenLabs text-to-speech integration

33 lines 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.switchAccountTool = void 0; const zod_1 = require("zod"); const account_state_js_1 = require("../../services/account-state.js"); const inputSchema = zod_1.z.object({ name: zod_1.z.string().describe('Account name to switch to') }); exports.switchAccountTool = { name: 'elevenlabs_switch_account', description: 'Switch to a different ElevenLabs account', inputSchema, handler: async (args) => { const accountState = new account_state_js_1.AccountState(); await accountState.initialize(); await accountState.switchAccount(args.name); const activeAccount = accountState.getActiveAccount(); return { content: [{ type: 'text', text: JSON.stringify({ success: true, activeAccount: activeAccount ? { id: activeAccount.id, name: activeAccount.name, isDefault: activeAccount.isDefault } : null }, null, 2) }] }; } }; //# sourceMappingURL=switch-account.js.map