├── .github └── workflows │ └── npm-publish.yml ├── .gitignore ├── LICENSE ├── README.md ├── README.zh-CN.md ├── assets └── minimax-mcp-tools-banner.jpg ├── index.js ├── minimax-api.js ├── minimax-tts-api.js ├── package-lock.json └── package.json /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- 1 | # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created 2 | # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages 3 | 4 | name: Node.js Package 5 | 6 | on: 7 | release: 8 | types: [created] 9 | 10 | jobs: 11 | publish-npm: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - uses: actions/checkout@v4 15 | - uses: actions/setup-node@v4 16 | with: 17 | node-version: 20 18 | registry-url: https://registry.npmjs.org/ 19 | - run: npm ci 20 | - run: npm publish 21 | env: 22 | NODE_AUTH_TOKEN: ${{secrets.npm_token}} 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Dependency directories 2 | node_modules/ 3 | npm-debug.log 4 | yarn-debug.log 5 | yarn-error.log 6 | 7 | # Environment variables 8 | .env 9 | .env.local 10 | .env.development.local 11 | .env.test.local 12 | .env.production.local 13 | 14 | # Generated files 15 | generated-images/ 16 | generated-audio/ 17 | 18 | # Build output 19 | dist/ 20 | build/ 21 | 22 | # IDE and editor files 23 | .idea/ 24 | .vscode/ 25 | *.swp 26 | *.swo 27 | .DS_Store 28 | 29 | # Logs 30 | logs 31 | *.log 32 | npm-debug.log* 33 | yarn-debug.log* 34 | yarn-error.log* 35 | 36 | # Coverage directory used by tools like istanbul 37 | coverage/ 38 | 39 | # nyc test coverage 40 | .nyc_output/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 PsychArch 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Minimax MCP Tools 2 | 3 | ![Minimax MCP Tools Banner](assets/minimax-mcp-tools-banner.jpg) 4 | 5 | A Model Context Protocol (MCP) server implementation with Minimax API integration for AI-powered image generation and text-to-speech functionality. 6 | 7 | English | [简体中文](README.zh-CN.md) 8 | 9 | ## Features 10 | 11 | - **Image Generation**: Generate high-quality images based on text prompts using Minimax's image-01 model 12 | - **Text-to-Speech (TTS)**: Convert text to natural-sounding speech with various voice options, emotions, and audio formats 13 | 14 | ## Setup 15 | 16 | ### Prerequisites 17 | 18 | - Node.js 16 or higher 19 | - A Minimax API key (obtain from [Minimax Platform](https://api.minimax.chat/)) 20 | - Minimax Group ID for TTS functionality 21 | 22 | ### Configuration 23 | 24 | Create or update your MCP configuration file: 25 | 26 | ```json 27 | { 28 | "mcpServers": { 29 | "minimax-mcp-tools": { 30 | "command": "npx", 31 | "args": [ 32 | "minimax-mcp-tools" 33 | ], 34 | "env": { 35 | "MINIMAX_API_KEY": "your-minimax-api-key", 36 | "MINIMAX_GROUP_ID": "your-minimax-group-id" 37 | } 38 | } 39 | } 40 | } 41 | ``` 42 | 43 | ## MCP Interface 44 | 45 | ### Image Generation 46 | 47 | Generate images based on text prompts: 48 | 49 | ```javascript 50 | // Example parameters for image generation 51 | { 52 | "prompt": "A mountain landscape at sunset", 53 | "aspectRatio": "16:9", 54 | "n": 1, 55 | "outputFile": "/absolute/path/to/image.jpg", 56 | "subjectReference": "/path/to/reference.jpg" // Optional: local file or URL 57 | } 58 | ``` 59 | 60 | Parameters: 61 | - `prompt` (required): Description of the image to generate 62 | - `outputFile` (required): Absolute path to save the generated image file. **The directory must already exist**. When generating multiple images (n>1), files will be named with sequential numbers (e.g., 'image-1.jpg', 'image-2.jpg'). 63 | - `aspectRatio` (optional): Aspect ratio of the image (default: "1:1", options: "1:1", "16:9", "4:3", "3:2", "2:3", "3:4", "9:16", "21:9") 64 | - `n` (optional): Number of images to generate (default: 1, range: 1-9). When n>1, the output filenames will be automatically numbered. 65 | - `subjectReference` (optional): Path to a local image file or a public URL for character reference. When provided, the generated image will use this as a reference for character appearance. Supported formats: JPG, JPEG, PNG 66 | 67 | ### Text-to-Speech 68 | 69 | Convert text to speech with various customization options: 70 | 71 | ```javascript 72 | // Example parameters for text-to-speech 73 | { 74 | "text": "Hello, this is a test of the text-to-speech functionality.", 75 | "model": "speech-02-hd", 76 | "voiceId": "female-shaonv", 77 | "speed": 1.0, 78 | "volume": 1.0, 79 | "pitch": 0, 80 | "emotion": "happy", 81 | "format": "mp3", 82 | "outputFile": "/absolute/path/to/audio.mp3", 83 | "subtitleEnable": true 84 | } 85 | ``` 86 | 87 | #### Basic Parameters: 88 | - `text` (required): Text to convert to speech (max 10,000 characters) 89 | - `outputFile` (required): Absolute path to save the generated audio file 90 | - `model` (optional): Model version to use (default: "speech-02-hd", options: "speech-02-hd", "speech-02-turbo") 91 | - `speech-02-hd`: High-definition model with excellent timbre similarity, rhythm stability, and studio-grade audio quality 92 | - `speech-02-turbo`: Fast model with excellent performance and low latency, enhanced multilingual capabilities 93 | - `voiceId` (optional): Voice ID to use (default: "male-qn-qingse") 94 | - `speed` (optional): Speech speed (default: 1.0, range: 0.5-2.0) 95 | - `volume` (optional): Speech volume (default: 1.0, range: 0.1-10.0) 96 | - `pitch` (optional): Speech pitch (default: 0, range: -12 to 12) 97 | - `emotion` (optional): Emotion of the speech (default: "neutral", options: "happy", "sad", "angry", "fearful", "disgusted", "surprised", "neutral") 98 | - `timberWeights` (optional): Voice mixing settings, allows mixing up to 4 different voices with weights 99 | ```javascript 100 | "timberWeights": [ 101 | { "voice_id": "male-qn-qingse", "weight": 70 }, 102 | { "voice_id": "female-shaonv", "weight": 30 } 103 | ] 104 | ``` 105 | 106 | #### Audio Settings: 107 | - `format` (optional): Audio format (default: "mp3", options: "mp3", "pcm", "flac", "wav") 108 | - `sampleRate` (optional): Sample rate in Hz (default: 32000, options: 8000, 16000, 22050, 24000, 32000, 44100) 109 | - `bitrate` (optional): Bitrate for MP3 format (default: 128000, options: 32000, 64000, 128000, 256000) 110 | - `channel` (optional): Number of audio channels (default: 1, options: 1=mono, 2=stereo) 111 | 112 | #### Advanced Features: 113 | - `latexRead` (optional): Whether to read LaTeX formulas (default: false) 114 | - `pronunciationDict` (optional): List of pronunciation replacements 115 | ```javascript 116 | "pronunciationDict": ["处理/(chu3)(li3)", "危险/dangerous"] 117 | ``` 118 | - `stream` (optional): Whether to use streaming mode (default: false) 119 | - `languageBoost` (optional): Enhance recognition of specific languages 120 | - Options: "Chinese", "Chinese,Yue", "English", "Arabic", "Russian", "Spanish", "French", "Portuguese", "German", "Turkish", "Dutch", "Ukrainian", "Vietnamese", "Indonesian", "Japanese", "Italian", "Korean", "Thai", "Polish", "Romanian", "Greek", "Czech", "Finnish", "Hindi", "auto" 121 | - `subtitleEnable` (optional): Whether to enable subtitle generation (default: false) 122 | 123 | ## License 124 | 125 | MIT 126 | 127 | ## Contributing 128 | 129 | Contributions are welcome! Please feel free to submit a Pull Request. 130 | 131 | ## Acknowledgements 132 | 133 | - [Minimax API](https://platform.minimaxi.com/) for providing the AI models 134 | - [Model Context Protocol](https://github.com/modelcontextprotocol/) for the MCP specification 135 | -------------------------------------------------------------------------------- /README.zh-CN.md: -------------------------------------------------------------------------------- 1 | # Minimax MCP 工具 2 | 3 | ![Minimax MCP Tools Banner](assets/minimax-mcp-tools-banner.jpg) 4 | 5 | 一个集成了Minimax API的模型上下文协议(MCP)服务器实现,提供AI驱动的图像生成和文本转语音功能。 6 | 7 | [English](README.md) | 简体中文 8 | 9 | ## 功能特点 10 | 11 | - **图像生成**:使用Minimax的image-01模型,根据文本提示生成高质量图像 12 | - **文本转语音(TTS)**:将文本转换为自然流畅的语音,支持多种声音选项、情感和音频格式 13 | 14 | ## 设置 15 | 16 | ### 前提条件 17 | 18 | - Node.js 16或更高版本 19 | - Minimax API密钥(从[Minimax平台](https://api.minimax.chat/)获取) 20 | - 用于TTS功能的Minimax Group ID 21 | 22 | ### 配置 23 | 24 | 创建或更新您的MCP配置文件: 25 | 26 | ```json 27 | { 28 | "mcpServers": { 29 | "minimax-mcp-tools": { 30 | "command": "npx", 31 | "args": [ 32 | "minimax-mcp-tools" 33 | ], 34 | "env": { 35 | "MINIMAX_API_KEY": "your-minimax-api-key", 36 | "MINIMAX_GROUP_ID": "your-minimax-group-id" 37 | } 38 | } 39 | } 40 | } 41 | ``` 42 | 43 | ## MCP接口 44 | 45 | ### 图像生成 46 | 47 | 根据文本提示生成图像: 48 | 49 | ```javascript 50 | // 图像生成参数示例 51 | { 52 | "prompt": "日落时分的山景", 53 | "aspectRatio": "16:9", 54 | "n": 1, 55 | "outputFile": "/absolute/path/to/image.jpg", 56 | "subjectReference": "/path/to/reference.jpg" // 可选:本地文件或URL 57 | } 58 | ``` 59 | 60 | 参数: 61 | - `prompt`(必需):要生成的图像描述 62 | - `outputFile`(必需):保存生成图像文件的绝对路径。**目录必须已存在**。当生成多张图像(n>1)时,文件将以序号命名(例如,'image-1.jpg','image-2.jpg')。 63 | - `aspectRatio`(可选):图像的宽高比(默认:"1:1",选项:"1:1","16:9","4:3","3:2","2:3","3:4","9:16","21:9") 64 | - `n`(可选):要生成的图像数量(默认:1,范围:1-9)。当n>1时,输出文件名将自动编号。 65 | - `subjectReference`(可选):本地图像文件路径或公共URL,用作角色参考。提供后,生成的图像将使用此作为角色外观参考。支持的格式:JPG,JPEG,PNG 66 | 67 | ### 文本转语音 68 | 69 | 将文本转换为语音,支持多种自定义选项: 70 | 71 | ```javascript 72 | // 文本转语音参数示例 73 | { 74 | "text": "你好,这是文本转语音功能的测试。", 75 | "model": "speech-02-hd", 76 | "voiceId": "female-shaonv", 77 | "speed": 1.0, 78 | "volume": 1.0, 79 | "pitch": 0, 80 | "emotion": "happy", 81 | "format": "mp3", 82 | "outputFile": "/absolute/path/to/audio.mp3", 83 | "subtitleEnable": true 84 | } 85 | ``` 86 | 87 | #### 基本参数: 88 | - `text`(必需):要转换为语音的文本(最多10,000个字符) 89 | - `outputFile`(必需):保存生成音频文件的绝对路径 90 | - `model`(可选):要使用的模型版本(默认:"speech-02-hd",选项:"speech-02-hd","speech-02-turbo") 91 | - `speech-02-hd`:高清模型,具有出色的音色相似度、节奏稳定性和录音室级音频质量 92 | - `speech-02-turbo`:快速模型,性能出色且延迟低,增强的多语言能力 93 | - `voiceId`(可选):要使用的声音ID(默认:"male-qn-qingse") 94 | - `speed`(可选):语音速度(默认:1.0,范围:0.5-2.0) 95 | - `volume`(可选):语音音量(默认:1.0,范围:0.1-10.0) 96 | - `pitch`(可选):语音音调(默认:0,范围:-12到12) 97 | - `emotion`(可选):语音情感(默认:"neutral",选项:"happy","sad","angry","fearful","disgusted","surprised","neutral") 98 | - `timberWeights`(可选):声音混合设置,允许混合最多4种不同的声音及其权重 99 | ```javascript 100 | "timberWeights": [ 101 | { "voice_id": "male-qn-qingse", "weight": 70 }, 102 | { "voice_id": "female-shaonv", "weight": 30 } 103 | ] 104 | ``` 105 | 106 | #### 音频设置: 107 | - `format`(可选):音频格式(默认:"mp3",选项:"mp3","pcm","flac","wav") 108 | - `sampleRate`(可选):采样率,单位Hz(默认:32000,选项:8000,16000,22050,24000,32000,44100) 109 | - `bitrate`(可选):MP3格式的比特率(默认:128000,选项:32000,64000,128000,256000) 110 | - `channel`(可选):音频通道数(默认:1,选项:1=单声道,2=立体声) 111 | 112 | #### 高级功能: 113 | - `latexRead`(可选):是否读取LaTeX公式(默认:false) 114 | - `pronunciationDict`(可选):发音替换列表 115 | ```javascript 116 | "pronunciationDict": ["处理/(chu3)(li3)", "危险/dangerous"] 117 | ``` 118 | - `stream`(可选):是否使用流式模式(默认:false) 119 | - `languageBoost`(可选):增强特定语言的识别 120 | - 选项:"Chinese","Chinese,Yue","English","Arabic","Russian","Spanish","French","Portuguese","German","Turkish","Dutch","Ukrainian","Vietnamese","Indonesian","Japanese","Italian","Korean","Thai","Polish","Romanian","Greek","Czech","Finnish","Hindi","auto" 121 | - `subtitleEnable`(可选):是否启用字幕生成(默认:false) 122 | 123 | ## 许可证 124 | 125 | MIT 126 | 127 | ## 贡献 128 | 129 | 欢迎贡献!请随时提交Pull Request。 130 | 131 | ## 致谢 132 | 133 | - 感谢[Minimax API](https://platform.minimaxi.com/)提供AI模型 134 | - 感谢[Model Context Protocol](https://github.com/modelcontextprotocol/)提供MCP规范 135 | -------------------------------------------------------------------------------- /assets/minimax-mcp-tools-banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PsychArch/minimax-mcp-tools/6f7bbd522f725d3e41a30996d1d31cda06476dd1/assets/minimax-mcp-tools-banner.jpg -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; 4 | import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; 5 | import { z } from "zod"; 6 | import { generateImage } from "./minimax-api.js"; 7 | import { generateSpeech } from "./minimax-tts-api.js"; 8 | import path from 'path'; 9 | import { fileURLToPath } from 'url'; 10 | import { dirname } from 'path'; 11 | 12 | const __filename = fileURLToPath(import.meta.url); 13 | const __dirname = dirname(__filename); 14 | 15 | // Create a new MCP server 16 | const server = new McpServer({ 17 | name: "minimax-mcp-tools", 18 | version: "1.4.0" 19 | }); 20 | 21 | // Define an image generation tool using Minimax API 22 | server.tool( 23 | "generate_image", 24 | { 25 | prompt: z.string().describe("Description of the image to generate"), 26 | aspectRatio: z.enum(["1:1", "16:9", "4:3", "3:2", "2:3", "3:4", "9:16", "21:9"]).optional().describe("Aspect ratio of the image"), 27 | outputFile: z.string().describe("Absolute path to save the generated image file. The directory must already exist. When generating multiple images (n>1), files will be named with sequential numbers (e.g., 'image-1.jpg', 'image-2.jpg')"), 28 | n: z.number().min(1).max(9).optional().describe("Number of images to generate (1-9)"), 29 | subjectReference: z.string().optional().describe("Path to a local image file or a public URL for character reference image") 30 | }, 31 | async ({ prompt, aspectRatio, outputFile, n, subjectReference }) => { 32 | // Get API key from environment variable 33 | const apiKey = process.env.MINIMAX_API_KEY; 34 | if (!apiKey) { 35 | return { 36 | content: [{ 37 | type: "text", 38 | text: "Error: MINIMAX_API_KEY environment variable is not set. Please set it in the MCP server configuration." 39 | }] 40 | }; 41 | } 42 | 43 | // Set default output directory if not provided 44 | const outputDirectory = path.dirname(outputFile); 45 | 46 | try { 47 | // Call the Minimax API to generate the image 48 | const result = await generateImage(prompt, apiKey, { 49 | aspectRatio: aspectRatio || "1:1", 50 | n: n || 1, 51 | subjectReference 52 | }, outputDirectory, outputFile); 53 | 54 | if (!result.success) { 55 | return { 56 | content: [{ 57 | type: "text", 58 | text: `Error generating image: ${result.error}` 59 | }] 60 | }; 61 | } 62 | 63 | // Prepare the response with image information 64 | const imageDetails = result.images.map(img => { 65 | return `- Image saved to: ${img.localPath}\n URL: ${img.url}`; 66 | }).join('\n'); 67 | 68 | return { 69 | content: [{ 70 | type: "text", 71 | text: `Successfully generated ${result.images.length} image(s):\n${imageDetails}` 72 | }] 73 | }; 74 | } catch (error) { 75 | console.error('Error in generate_image tool:', error); 76 | 77 | // Provide more specific error messages for common issues 78 | let errorMessage = error.message; 79 | if (error.message.includes('directory does not exist')) { 80 | errorMessage = `The specified output directory does not exist. Please make sure the directory exists before generating images. Error: ${error.message}`; 81 | } 82 | 83 | return { 84 | content: [{ 85 | type: "text", 86 | text: `Error generating image: ${errorMessage}` 87 | }] 88 | }; 89 | } 90 | } 91 | ); 92 | 93 | // Voice ID descriptions for better user experience 94 | const voiceIdDescription = `Voice ID to use. Options include: 95 | - Male voices: male-qn-qingse (青涩青年), male-qn-jingying (精英青年), male-qn-badao (霸道青年), male-qn-daxuesheng (青年大学生) 96 | - Female voices: female-shaonv (少女), female-yujie (御姐), female-chengshu (成熟女性), female-tianmei (甜美女性) 97 | - Presenters: presenter_male (男性主持人), presenter_female (女性主持人) 98 | - Audiobooks: audiobook_male_1 (男性有声书1), audiobook_male_2 (男性有声书2), audiobook_female_1 (女性有声书1), audiobook_female_2 (女性有声书2) 99 | - Beta voices: male-qn-qingse-jingpin (青涩青年-beta), male-qn-jingying-jingpin (精英青年-beta), male-qn-badao-jingpin (霸道青年-beta), male-qn-daxuesheng-jingpin (青年大学生-beta), female-shaonv-jingpin (少女音色-beta), female-yujie-jingpin (御姐音色-beta), female-chengshu-jingpin (成熟女性-beta), female-tianmei-jingpin (甜美女性-beta) 100 | - Character voices: clever_boy (聪明男童), cute_boy (可爱男童), lovely_girl (萌萌女童), cartoon_pig (卡通猪小琪), 101 | bingjiao_didi (病娇弟弟), junlang_nanyou (俊朗男友), chunzhen_xuedi (纯真学弟), lengdan_xiongzhang (冷淡学长), 102 | badao_shaoye (霸道少爷), tianxin_xiaoling (甜心小玲), qiaopi_mengmei (俏皮萌妹), wumei_yujie (妩媚御姐), 103 | diadia_xuemei (嗲嗲学妹), danya_xuejie (淡雅学姐) 104 | - Western characters: Santa_Claus, Grinch, Rudolph, Arnold, Charming_Santa, Charming_Lady, Sweet_Girl, Cute_Elf, Attractive_Girl, Serene_Woman`; 105 | 106 | // Define a text-to-speech tool using Minimax API 107 | server.tool( 108 | "generate_speech", 109 | { 110 | text: z.string().describe("Text to convert to speech"), 111 | model: z.enum(["speech-02-hd", "speech-02-turbo"]).optional().describe("Model version to use for speech generation. speech-02-hd is the newest high-definition model with better quality and naturalness. speech-02-turbo has excellent performance with low latency."), 112 | voiceId: z.string().optional().describe(voiceIdDescription), 113 | speed: z.number().min(0.5).max(2).optional().describe("Speech speed (0.5-2.0)"), 114 | volume: z.number().min(0.1).max(10).optional().describe("Speech volume (0.1-10.0)"), 115 | pitch: z.number().min(-12).max(12).optional().describe("Speech pitch (-12 to 12)"), 116 | emotion: z.enum(["happy", "sad", "angry", "fearful", "disgusted", "surprised", "neutral"]).optional().describe("Emotion of the speech"), 117 | format: z.enum(["mp3", "pcm", "flac", "wav"]).optional().describe("Audio format"), 118 | outputFile: z.string().describe("Absolute path to save the generated audio file"), 119 | sampleRate: z.enum([8000, 16000, 22050, 24000, 32000, 44100]).optional().describe("Sample rate of the generated audio"), 120 | bitrate: z.enum([32000, 64000, 128000, 256000]).optional().describe("Bitrate of the generated audio (for MP3 only)"), 121 | channel: z.enum([1, 2]).optional().describe("Number of audio channels (1=mono, 2=stereo)"), 122 | latexRead: z.boolean().optional().describe("Whether to read LaTeX formulas"), 123 | pronunciationDict: z.array(z.string()).optional().describe("List of pronunciation replacements"), 124 | timberWeights: z.array( 125 | z.object({ 126 | voice_id: z.string(), 127 | weight: z.number().min(1).max(100) 128 | }) 129 | ).optional().describe("Voice timber weights for voice mixing"), 130 | stream: z.boolean().optional().describe("Whether to use streaming mode"), 131 | languageBoost: z.enum([ 132 | "Chinese", "Chinese,Yue", "English", "Arabic", "Russian", "Spanish", 133 | "French", "Portuguese", "German", "Turkish", "Dutch", "Ukrainian", 134 | "Vietnamese", "Indonesian", "Japanese", "Italian", "Korean", "Thai", 135 | "Polish", "Romanian", "Greek", "Czech", "Finnish", "Hindi", "auto" 136 | ]).optional().describe("Enhance recognition of specific languages"), 137 | subtitleEnable: z.boolean().optional().describe("Whether to enable subtitle generation") 138 | }, 139 | async ({ 140 | text, model, voiceId, speed, volume, pitch, emotion, format, outputFile, 141 | sampleRate, bitrate, channel, latexRead, pronunciationDict, timberWeights, 142 | stream, languageBoost, subtitleEnable 143 | }) => { 144 | // Get API key and group ID from environment variables 145 | const apiKey = process.env.MINIMAX_API_KEY; 146 | const groupId = process.env.MINIMAX_GROUP_ID; 147 | 148 | if (!apiKey) { 149 | return { 150 | content: [{ 151 | type: "text", 152 | text: "Error: MINIMAX_API_KEY environment variable is not set. Please set it in the MCP server configuration." 153 | }] 154 | }; 155 | } 156 | 157 | if (!groupId) { 158 | return { 159 | content: [{ 160 | type: "text", 161 | text: "Error: MINIMAX_GROUP_ID environment variable is not set. Please set it in the MCP server configuration." 162 | }] 163 | }; 164 | } 165 | 166 | // Set default output directory if not provided 167 | const outputDirectory = path.dirname(outputFile); 168 | 169 | try { 170 | // Call the Minimax API to generate speech 171 | const result = await generateSpeech(text, apiKey, groupId, { 172 | model, 173 | voiceId: voiceId || "male-qn-qingse", 174 | speed: speed || 1.0, 175 | volume: volume || 1.0, 176 | pitch: pitch || 0, 177 | emotion: emotion || "neutral", 178 | format: format || "mp3", 179 | sampleRate, 180 | bitrate, 181 | channel, 182 | latexRead, 183 | pronunciationDict, 184 | timberWeights, 185 | stream, 186 | languageBoost, 187 | subtitleEnable 188 | }, outputDirectory, outputFile); 189 | 190 | if (!result.success) { 191 | return { 192 | content: [{ 193 | type: "text", 194 | text: `Error generating speech: ${result.error}` 195 | }] 196 | }; 197 | } 198 | 199 | // Prepare the response with audio information 200 | const audioInfo = result.audioInfo; 201 | const durationSeconds = audioInfo.length / 1000; // Convert milliseconds to seconds 202 | const fileSizeKB = Math.round(audioInfo.size / 1024); // Convert bytes to KB 203 | 204 | let responseText = `Successfully generated speech:\n- Audio saved to: ${outputFile}\n- Format: ${audioInfo.format}\n- Duration: ${durationSeconds.toFixed(2)} seconds\n- File size: ${fileSizeKB} KB`; 205 | 206 | // Add subtitle information if available 207 | if (audioInfo.subtitlePath) { 208 | responseText += `\n- Subtitle file: ${audioInfo.subtitlePath}`; 209 | } 210 | 211 | return { 212 | content: [{ 213 | type: "text", 214 | text: responseText 215 | }] 216 | }; 217 | } catch (error) { 218 | console.error('Error in generate_speech tool:', error); 219 | return { 220 | content: [{ 221 | type: "text", 222 | text: `Error generating speech: ${error.message}` 223 | }] 224 | }; 225 | } 226 | } 227 | ); 228 | 229 | // Log to stderr for debugging 230 | console.error("Minimax MCP Tools Server starting..."); 231 | 232 | // Set up stdio transport and connect 233 | const transport = new StdioServerTransport(); 234 | await server.connect(transport); 235 | 236 | console.error("MCP Server connected and ready to receive commands"); 237 | -------------------------------------------------------------------------------- /minimax-api.js: -------------------------------------------------------------------------------- 1 | import fetch from 'node-fetch'; 2 | import fs from 'fs'; 3 | import path from 'path'; 4 | import { fileURLToPath } from 'url'; 5 | import { dirname } from 'path'; 6 | 7 | const __filename = fileURLToPath(import.meta.url); 8 | const __dirname = dirname(__filename); 9 | 10 | /** 11 | * Convert a local file to base64 string 12 | * @param {string} filePath - Path to the local file 13 | * @returns {Promise} - Base64 encoded string with data URI scheme 14 | */ 15 | async function fileToBase64(filePath) { 16 | // Read file as binary buffer 17 | const data = await fs.promises.readFile(filePath); 18 | 19 | // Convert to base64 20 | const base64 = data.toString('base64'); 21 | 22 | // Determine MIME type based on file extension 23 | const ext = path.extname(filePath).toLowerCase(); 24 | const mimeType = ext === '.png' ? 'image/png' : 25 | (ext === '.gif' ? 'image/gif' : 'image/jpeg'); 26 | 27 | // Return in data URI format 28 | return `data:${mimeType};base64,${base64}`; 29 | } 30 | 31 | /** 32 | * Process subject reference to get base64 or URL 33 | * @param {string} reference - Local file path or URL 34 | * @returns {Promise} - Processed reference string 35 | */ 36 | async function processSubjectReference(reference) { 37 | if (!reference) return null; 38 | 39 | // Check if it's a URL (starts with http:// or https://) 40 | if (reference.startsWith('http://') || reference.startsWith('https://')) { 41 | return reference; // It's a URL, return as is 42 | } else if (reference.startsWith('data:image/')) { 43 | return reference; // It's already a data URI, return as is 44 | } else { 45 | // Treat as local file path 46 | if (!fs.existsSync(reference)) { 47 | throw new Error(`Subject reference file not found: ${reference}`); 48 | } 49 | console.error(`Converting file to base64: ${reference}`); 50 | return await fileToBase64(reference); 51 | } 52 | } 53 | 54 | /** 55 | * Generate an image using Minimax API and save it to a file 56 | * @param {string} prompt - The description for image generation 57 | * @param {string} apiKey - The Minimax API key 58 | * @param {Object} options - Additional options for image generation 59 | * @param {string} outputDir - Directory to save the generated image 60 | * @param {string} outputFile - Absolute path to save the generated image 61 | * @returns {Promise} - Object containing the image information 62 | */ 63 | export async function generateImage(prompt, apiKey, options = {}, outputDir, outputFile) { 64 | if (!apiKey) { 65 | throw new Error('Minimax API key is required'); 66 | } 67 | 68 | if (!outputFile) { 69 | throw new Error('Output file path is required'); 70 | } 71 | 72 | const url = "https://api.minimax.chat/v1/image_generation"; 73 | 74 | const payload = { 75 | model: options.model || "image-01", 76 | prompt: prompt, 77 | aspect_ratio: options.aspectRatio || "1:1", 78 | response_format: "url", 79 | n: options.n || 1, 80 | prompt_optimizer: options.promptOptimizer !== undefined ? options.promptOptimizer : true 81 | }; 82 | 83 | // Process subject reference if provided 84 | if (options.subjectReference) { 85 | try { 86 | const processedReference = await processSubjectReference(options.subjectReference); 87 | if (processedReference) { 88 | console.error(`Using subject reference: ${processedReference.substring(0, 50)}...`); 89 | payload.subject_reference = [ 90 | { 91 | type: "character", 92 | image_file: processedReference 93 | } 94 | ]; 95 | } 96 | } catch (error) { 97 | console.error(`Error processing subject reference: ${error.message}`); 98 | throw new Error(`Failed to process subject reference: ${error.message}`); 99 | } 100 | } 101 | 102 | const headers = { 103 | 'Authorization': `Bearer ${apiKey}`, 104 | 'Content-Type': 'application/json' 105 | }; 106 | 107 | // Check if output directory exists before proceeding 108 | const absoluteOutputDir = path.dirname(outputFile); 109 | if (!fs.existsSync(absoluteOutputDir)) { 110 | throw new Error(`Output directory does not exist: ${absoluteOutputDir}. Please provide a valid existing directory.`); 111 | } 112 | 113 | try { 114 | console.error(`Generating image with prompt: ${prompt}`); 115 | // Add debugging output to help diagnose issues 116 | console.error(`Making request to ${url} with payload: ${JSON.stringify({ 117 | ...payload, 118 | subject_reference: payload.subject_reference ? 119 | [{...payload.subject_reference[0], image_file: payload.subject_reference[0].image_file.substring(0, 50) + '...'}] : 120 | undefined 121 | })}`); 122 | 123 | const response = await fetch(url, { 124 | method: 'POST', 125 | headers: headers, 126 | body: JSON.stringify(payload) 127 | }); 128 | 129 | const data = await response.json(); 130 | console.error(`API response: ${JSON.stringify(data)}`); 131 | 132 | if (data.base_resp && data.base_resp.status_code !== 0) { 133 | throw new Error(`Minimax API error: ${data.base_resp.status_msg}`); 134 | } 135 | 136 | // Download and save images 137 | const savedImages = []; 138 | if (data.data && data.data.image_urls && data.data.image_urls.length > 0) { 139 | for (let i = 0; i < data.data.image_urls.length; i++) { 140 | const imageUrl = data.data.image_urls[i]; 141 | const timestamp = Date.now(); 142 | 143 | // Handle multiple images with numbered filenames 144 | let filePath; 145 | let filename; 146 | 147 | if (i === 0 && data.data.image_urls.length === 1) { 148 | // Single image case - use the exact outputFile 149 | filePath = outputFile; 150 | filename = path.basename(outputFile); 151 | } else { 152 | // Multiple images case - append number to filename 153 | const fileExt = path.extname(outputFile); 154 | const fileBaseName = path.basename(outputFile, fileExt); 155 | filename = `${fileBaseName}-${i+1}${fileExt}`; 156 | filePath = path.join(absoluteOutputDir, filename); 157 | } 158 | 159 | // Download the image 160 | const imageResponse = await fetch(imageUrl); 161 | const buffer = await imageResponse.buffer(); 162 | fs.writeFileSync(filePath, buffer); 163 | 164 | savedImages.push({ 165 | url: imageUrl, 166 | localPath: filePath, 167 | filename: filename 168 | }); 169 | } 170 | } 171 | 172 | return { 173 | success: true, 174 | requestId: data.id, 175 | images: savedImages, 176 | metadata: data.metadata, 177 | rawResponse: data 178 | }; 179 | } catch (error) { 180 | console.error('Error generating image:', error); 181 | return { 182 | success: false, 183 | error: error.message 184 | }; 185 | } 186 | } 187 | -------------------------------------------------------------------------------- /minimax-tts-api.js: -------------------------------------------------------------------------------- 1 | import fetch from 'node-fetch'; 2 | import fs from 'fs'; 3 | import path from 'path'; 4 | import { fileURLToPath } from 'url'; 5 | import { dirname } from 'path'; 6 | 7 | const __filename = fileURLToPath(import.meta.url); 8 | const __dirname = dirname(__filename); 9 | 10 | /** 11 | * Generate speech from text using Minimax API and save it to a file 12 | * @param {string} text - The text to convert to speech 13 | * @param {string} apiKey - The Minimax API key 14 | * @param {string} groupId - The Minimax group ID 15 | * @param {Object} options - Additional options for speech generation 16 | * @param {string} outputDir - Directory to save the generated audio 17 | * @param {string} outputFile - Absolute path to save the generated audio file 18 | * @returns {Promise} - Object containing the audio information 19 | */ 20 | export async function generateSpeech(text, apiKey, groupId, options = {}, outputDir, outputFile) { 21 | if (!apiKey) { 22 | throw new Error('Minimax API key is required'); 23 | } 24 | 25 | if (!groupId) { 26 | throw new Error('Minimax group ID is required'); 27 | } 28 | 29 | if (!outputFile) { 30 | throw new Error('Output file path is required'); 31 | } 32 | 33 | const url = `https://api.minimax.chat/v1/t2a_v2?GroupId=${groupId}`; 34 | 35 | // Default voice settings 36 | const voiceSettings = { 37 | voice_id: options.voiceId || "male-qn-qingse", 38 | speed: options.speed || 1.0, 39 | vol: options.volume || 1.0, 40 | pitch: options.pitch || 0, 41 | emotion: options.emotion || "neutral" 42 | }; 43 | 44 | // Add latex_read if provided 45 | if (options.latexRead !== undefined) { 46 | voiceSettings.latex_read = options.latexRead; 47 | } 48 | 49 | // Default audio settings 50 | const audioSettings = { 51 | sample_rate: options.sampleRate || 32000, 52 | bitrate: options.bitrate || 128000, 53 | format: options.format || "mp3", 54 | channel: options.channel || 1 55 | }; 56 | 57 | // Build the request payload 58 | const payload = { 59 | model: options.model || "speech-02-hd", 60 | text: text, 61 | stream: options.stream || false, 62 | voice_setting: voiceSettings, 63 | audio_setting: audioSettings 64 | }; 65 | 66 | // Add pronunciation dictionary if provided 67 | if (options.pronunciationDict && options.pronunciationDict.length > 0) { 68 | payload.pronunciation_dict = { 69 | tone: options.pronunciationDict 70 | }; 71 | } 72 | 73 | // Add timber weights if provided 74 | if (options.timberWeights && options.timberWeights.length > 0) { 75 | payload.timber_weights = options.timberWeights; 76 | // Remove voice_id from voice_setting when using timber_weights 77 | delete payload.voice_setting.voice_id; 78 | } 79 | 80 | // Add language boost if provided 81 | if (options.languageBoost) { 82 | payload.language_boost = options.languageBoost; 83 | } 84 | 85 | // Add subtitle enable if provided 86 | if (options.subtitleEnable !== undefined) { 87 | payload.subtitle_enable = options.subtitleEnable; 88 | } 89 | 90 | const headers = { 91 | 'Authorization': `Bearer ${apiKey}`, 92 | 'Content-Type': 'application/json' 93 | }; 94 | 95 | try { 96 | console.error(`Generating speech for text: ${text.substring(0, 50)}${text.length > 50 ? '...' : ''}`); 97 | const response = await fetch(url, { 98 | method: 'POST', 99 | headers: headers, 100 | body: JSON.stringify(payload) 101 | }); 102 | 103 | const data = await response.json(); 104 | 105 | if (data.base_resp && data.base_resp.status_code !== 0) { 106 | throw new Error(`Minimax API error: ${data.base_resp.status_msg}`); 107 | } 108 | 109 | // Create output directory if it doesn't exist 110 | const absoluteOutputDir = path.dirname(outputFile); 111 | if (!fs.existsSync(absoluteOutputDir)) { 112 | fs.mkdirSync(absoluteOutputDir, { recursive: true }); 113 | } 114 | 115 | // Save the audio file 116 | if (data.data && data.data.audio) { 117 | const timestamp = Date.now(); 118 | const format = audioSettings.format; 119 | 120 | // Use outputFile path directly 121 | const filename = path.basename(outputFile); 122 | const filePath = outputFile; 123 | 124 | // Convert hex string to buffer and save 125 | const buffer = Buffer.from(data.data.audio, 'hex'); 126 | fs.writeFileSync(filePath, buffer); 127 | 128 | // Save subtitle file if available 129 | let subtitlePath = null; 130 | if (data.subtitle_file) { 131 | const subtitleFilename = `subtitle_${timestamp}.json`; 132 | subtitlePath = path.join(absoluteOutputDir, subtitleFilename); 133 | 134 | // Download subtitle file 135 | try { 136 | const subtitleResponse = await fetch(data.subtitle_file); 137 | const subtitleData = await subtitleResponse.text(); 138 | fs.writeFileSync(subtitlePath, subtitleData); 139 | } catch (error) { 140 | console.error('Error downloading subtitle file:', error); 141 | } 142 | } 143 | 144 | return { 145 | success: true, 146 | traceId: data.trace_id, 147 | audioInfo: { 148 | localPath: filePath, 149 | filename: filename, 150 | format: format, 151 | length: data.extra_info?.audio_length || 0, // in milliseconds 152 | size: data.extra_info?.audio_size || 0, // in bytes 153 | subtitlePath: subtitlePath 154 | }, 155 | extraInfo: data.extra_info, 156 | rawResponse: data 157 | }; 158 | } else { 159 | throw new Error('No audio data returned from the API'); 160 | } 161 | } catch (error) { 162 | console.error('Error generating speech:', error); 163 | return { 164 | success: false, 165 | error: error.message 166 | }; 167 | } 168 | } 169 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "minimax-mcp-tools", 3 | "version": "1.2.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "minimax-mcp-tools", 9 | "version": "1.2.0", 10 | "license": "MIT", 11 | "dependencies": { 12 | "@modelcontextprotocol/sdk": "^1.7.0", 13 | "node-fetch": "^3.3.2", 14 | "zod": "^3.22.4" 15 | }, 16 | "bin": { 17 | "minimax-mcp-tools": "index.js" 18 | }, 19 | "engines": { 20 | "node": ">=16.0.0" 21 | } 22 | }, 23 | "node_modules/@modelcontextprotocol/sdk": { 24 | "version": "1.7.0", 25 | "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.7.0.tgz", 26 | "integrity": "sha512-IYPe/FLpvF3IZrd/f5p5ffmWhMc3aEMuM2wGJASDqC2Ge7qatVCdbfPx3n/5xFeb19xN0j/911M2AaFuircsWA==", 27 | "license": "MIT", 28 | "dependencies": { 29 | "content-type": "^1.0.5", 30 | "cors": "^2.8.5", 31 | "eventsource": "^3.0.2", 32 | "express": "^5.0.1", 33 | "express-rate-limit": "^7.5.0", 34 | "pkce-challenge": "^4.1.0", 35 | "raw-body": "^3.0.0", 36 | "zod": "^3.23.8", 37 | "zod-to-json-schema": "^3.24.1" 38 | }, 39 | "engines": { 40 | "node": ">=18" 41 | } 42 | }, 43 | "node_modules/accepts": { 44 | "version": "2.0.0", 45 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", 46 | "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", 47 | "license": "MIT", 48 | "dependencies": { 49 | "mime-types": "^3.0.0", 50 | "negotiator": "^1.0.0" 51 | }, 52 | "engines": { 53 | "node": ">= 0.6" 54 | } 55 | }, 56 | "node_modules/body-parser": { 57 | "version": "2.1.0", 58 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.1.0.tgz", 59 | "integrity": "sha512-/hPxh61E+ll0Ujp24Ilm64cykicul1ypfwjVttduAiEdtnJFvLePSrIPk+HMImtNv5270wOGCb1Tns2rybMkoQ==", 60 | "license": "MIT", 61 | "dependencies": { 62 | "bytes": "^3.1.2", 63 | "content-type": "^1.0.5", 64 | "debug": "^4.4.0", 65 | "http-errors": "^2.0.0", 66 | "iconv-lite": "^0.5.2", 67 | "on-finished": "^2.4.1", 68 | "qs": "^6.14.0", 69 | "raw-body": "^3.0.0", 70 | "type-is": "^2.0.0" 71 | }, 72 | "engines": { 73 | "node": ">=18" 74 | } 75 | }, 76 | "node_modules/body-parser/node_modules/debug": { 77 | "version": "4.4.0", 78 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 79 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 80 | "license": "MIT", 81 | "dependencies": { 82 | "ms": "^2.1.3" 83 | }, 84 | "engines": { 85 | "node": ">=6.0" 86 | }, 87 | "peerDependenciesMeta": { 88 | "supports-color": { 89 | "optional": true 90 | } 91 | } 92 | }, 93 | "node_modules/body-parser/node_modules/ms": { 94 | "version": "2.1.3", 95 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 96 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 97 | "license": "MIT" 98 | }, 99 | "node_modules/body-parser/node_modules/qs": { 100 | "version": "6.14.0", 101 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", 102 | "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", 103 | "license": "BSD-3-Clause", 104 | "dependencies": { 105 | "side-channel": "^1.1.0" 106 | }, 107 | "engines": { 108 | "node": ">=0.6" 109 | }, 110 | "funding": { 111 | "url": "https://github.com/sponsors/ljharb" 112 | } 113 | }, 114 | "node_modules/bytes": { 115 | "version": "3.1.2", 116 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 117 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 118 | "license": "MIT", 119 | "engines": { 120 | "node": ">= 0.8" 121 | } 122 | }, 123 | "node_modules/call-bind-apply-helpers": { 124 | "version": "1.0.2", 125 | "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", 126 | "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", 127 | "license": "MIT", 128 | "dependencies": { 129 | "es-errors": "^1.3.0", 130 | "function-bind": "^1.1.2" 131 | }, 132 | "engines": { 133 | "node": ">= 0.4" 134 | } 135 | }, 136 | "node_modules/call-bound": { 137 | "version": "1.0.4", 138 | "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", 139 | "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", 140 | "license": "MIT", 141 | "dependencies": { 142 | "call-bind-apply-helpers": "^1.0.2", 143 | "get-intrinsic": "^1.3.0" 144 | }, 145 | "engines": { 146 | "node": ">= 0.4" 147 | }, 148 | "funding": { 149 | "url": "https://github.com/sponsors/ljharb" 150 | } 151 | }, 152 | "node_modules/content-disposition": { 153 | "version": "1.0.0", 154 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", 155 | "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", 156 | "license": "MIT", 157 | "dependencies": { 158 | "safe-buffer": "5.2.1" 159 | }, 160 | "engines": { 161 | "node": ">= 0.6" 162 | } 163 | }, 164 | "node_modules/content-type": { 165 | "version": "1.0.5", 166 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 167 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 168 | "license": "MIT", 169 | "engines": { 170 | "node": ">= 0.6" 171 | } 172 | }, 173 | "node_modules/cookie": { 174 | "version": "0.7.1", 175 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", 176 | "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", 177 | "license": "MIT", 178 | "engines": { 179 | "node": ">= 0.6" 180 | } 181 | }, 182 | "node_modules/cookie-signature": { 183 | "version": "1.2.2", 184 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", 185 | "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", 186 | "license": "MIT", 187 | "engines": { 188 | "node": ">=6.6.0" 189 | } 190 | }, 191 | "node_modules/cors": { 192 | "version": "2.8.5", 193 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 194 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 195 | "license": "MIT", 196 | "dependencies": { 197 | "object-assign": "^4", 198 | "vary": "^1" 199 | }, 200 | "engines": { 201 | "node": ">= 0.10" 202 | } 203 | }, 204 | "node_modules/data-uri-to-buffer": { 205 | "version": "4.0.1", 206 | "resolved": "https://registry.npmmirror.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", 207 | "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", 208 | "license": "MIT", 209 | "engines": { 210 | "node": ">= 12" 211 | } 212 | }, 213 | "node_modules/debug": { 214 | "version": "4.3.6", 215 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", 216 | "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", 217 | "license": "MIT", 218 | "dependencies": { 219 | "ms": "2.1.2" 220 | }, 221 | "engines": { 222 | "node": ">=6.0" 223 | }, 224 | "peerDependenciesMeta": { 225 | "supports-color": { 226 | "optional": true 227 | } 228 | } 229 | }, 230 | "node_modules/depd": { 231 | "version": "2.0.0", 232 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 233 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 234 | "license": "MIT", 235 | "engines": { 236 | "node": ">= 0.8" 237 | } 238 | }, 239 | "node_modules/destroy": { 240 | "version": "1.2.0", 241 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 242 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 243 | "license": "MIT", 244 | "engines": { 245 | "node": ">= 0.8", 246 | "npm": "1.2.8000 || >= 1.4.16" 247 | } 248 | }, 249 | "node_modules/dunder-proto": { 250 | "version": "1.0.1", 251 | "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", 252 | "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", 253 | "license": "MIT", 254 | "dependencies": { 255 | "call-bind-apply-helpers": "^1.0.1", 256 | "es-errors": "^1.3.0", 257 | "gopd": "^1.2.0" 258 | }, 259 | "engines": { 260 | "node": ">= 0.4" 261 | } 262 | }, 263 | "node_modules/ee-first": { 264 | "version": "1.1.1", 265 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 266 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", 267 | "license": "MIT" 268 | }, 269 | "node_modules/encodeurl": { 270 | "version": "2.0.0", 271 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", 272 | "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", 273 | "license": "MIT", 274 | "engines": { 275 | "node": ">= 0.8" 276 | } 277 | }, 278 | "node_modules/es-define-property": { 279 | "version": "1.0.1", 280 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", 281 | "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", 282 | "license": "MIT", 283 | "engines": { 284 | "node": ">= 0.4" 285 | } 286 | }, 287 | "node_modules/es-errors": { 288 | "version": "1.3.0", 289 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 290 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 291 | "license": "MIT", 292 | "engines": { 293 | "node": ">= 0.4" 294 | } 295 | }, 296 | "node_modules/es-object-atoms": { 297 | "version": "1.1.1", 298 | "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", 299 | "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", 300 | "license": "MIT", 301 | "dependencies": { 302 | "es-errors": "^1.3.0" 303 | }, 304 | "engines": { 305 | "node": ">= 0.4" 306 | } 307 | }, 308 | "node_modules/escape-html": { 309 | "version": "1.0.3", 310 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 311 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", 312 | "license": "MIT" 313 | }, 314 | "node_modules/etag": { 315 | "version": "1.8.1", 316 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 317 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 318 | "license": "MIT", 319 | "engines": { 320 | "node": ">= 0.6" 321 | } 322 | }, 323 | "node_modules/eventsource": { 324 | "version": "3.0.5", 325 | "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.5.tgz", 326 | "integrity": "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw==", 327 | "license": "MIT", 328 | "dependencies": { 329 | "eventsource-parser": "^3.0.0" 330 | }, 331 | "engines": { 332 | "node": ">=18.0.0" 333 | } 334 | }, 335 | "node_modules/eventsource-parser": { 336 | "version": "3.0.0", 337 | "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", 338 | "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", 339 | "license": "MIT", 340 | "engines": { 341 | "node": ">=18.0.0" 342 | } 343 | }, 344 | "node_modules/express": { 345 | "version": "5.0.1", 346 | "resolved": "https://registry.npmjs.org/express/-/express-5.0.1.tgz", 347 | "integrity": "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ==", 348 | "license": "MIT", 349 | "dependencies": { 350 | "accepts": "^2.0.0", 351 | "body-parser": "^2.0.1", 352 | "content-disposition": "^1.0.0", 353 | "content-type": "~1.0.4", 354 | "cookie": "0.7.1", 355 | "cookie-signature": "^1.2.1", 356 | "debug": "4.3.6", 357 | "depd": "2.0.0", 358 | "encodeurl": "~2.0.0", 359 | "escape-html": "~1.0.3", 360 | "etag": "~1.8.1", 361 | "finalhandler": "^2.0.0", 362 | "fresh": "2.0.0", 363 | "http-errors": "2.0.0", 364 | "merge-descriptors": "^2.0.0", 365 | "methods": "~1.1.2", 366 | "mime-types": "^3.0.0", 367 | "on-finished": "2.4.1", 368 | "once": "1.4.0", 369 | "parseurl": "~1.3.3", 370 | "proxy-addr": "~2.0.7", 371 | "qs": "6.13.0", 372 | "range-parser": "~1.2.1", 373 | "router": "^2.0.0", 374 | "safe-buffer": "5.2.1", 375 | "send": "^1.1.0", 376 | "serve-static": "^2.1.0", 377 | "setprototypeof": "1.2.0", 378 | "statuses": "2.0.1", 379 | "type-is": "^2.0.0", 380 | "utils-merge": "1.0.1", 381 | "vary": "~1.1.2" 382 | }, 383 | "engines": { 384 | "node": ">= 18" 385 | } 386 | }, 387 | "node_modules/express-rate-limit": { 388 | "version": "7.5.0", 389 | "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", 390 | "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", 391 | "license": "MIT", 392 | "engines": { 393 | "node": ">= 16" 394 | }, 395 | "funding": { 396 | "url": "https://github.com/sponsors/express-rate-limit" 397 | }, 398 | "peerDependencies": { 399 | "express": "^4.11 || 5 || ^5.0.0-beta.1" 400 | } 401 | }, 402 | "node_modules/fetch-blob": { 403 | "version": "3.2.0", 404 | "resolved": "https://registry.npmmirror.com/fetch-blob/-/fetch-blob-3.2.0.tgz", 405 | "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", 406 | "funding": [ 407 | { 408 | "type": "github", 409 | "url": "https://github.com/sponsors/jimmywarting" 410 | }, 411 | { 412 | "type": "paypal", 413 | "url": "https://paypal.me/jimmywarting" 414 | } 415 | ], 416 | "license": "MIT", 417 | "dependencies": { 418 | "node-domexception": "^1.0.0", 419 | "web-streams-polyfill": "^3.0.3" 420 | }, 421 | "engines": { 422 | "node": "^12.20 || >= 14.13" 423 | } 424 | }, 425 | "node_modules/finalhandler": { 426 | "version": "2.1.0", 427 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", 428 | "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", 429 | "license": "MIT", 430 | "dependencies": { 431 | "debug": "^4.4.0", 432 | "encodeurl": "^2.0.0", 433 | "escape-html": "^1.0.3", 434 | "on-finished": "^2.4.1", 435 | "parseurl": "^1.3.3", 436 | "statuses": "^2.0.1" 437 | }, 438 | "engines": { 439 | "node": ">= 0.8" 440 | } 441 | }, 442 | "node_modules/finalhandler/node_modules/debug": { 443 | "version": "4.4.0", 444 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 445 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 446 | "license": "MIT", 447 | "dependencies": { 448 | "ms": "^2.1.3" 449 | }, 450 | "engines": { 451 | "node": ">=6.0" 452 | }, 453 | "peerDependenciesMeta": { 454 | "supports-color": { 455 | "optional": true 456 | } 457 | } 458 | }, 459 | "node_modules/finalhandler/node_modules/ms": { 460 | "version": "2.1.3", 461 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 462 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 463 | "license": "MIT" 464 | }, 465 | "node_modules/formdata-polyfill": { 466 | "version": "4.0.10", 467 | "resolved": "https://registry.npmmirror.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", 468 | "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", 469 | "license": "MIT", 470 | "dependencies": { 471 | "fetch-blob": "^3.1.2" 472 | }, 473 | "engines": { 474 | "node": ">=12.20.0" 475 | } 476 | }, 477 | "node_modules/forwarded": { 478 | "version": "0.2.0", 479 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 480 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 481 | "license": "MIT", 482 | "engines": { 483 | "node": ">= 0.6" 484 | } 485 | }, 486 | "node_modules/fresh": { 487 | "version": "2.0.0", 488 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", 489 | "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", 490 | "license": "MIT", 491 | "engines": { 492 | "node": ">= 0.8" 493 | } 494 | }, 495 | "node_modules/function-bind": { 496 | "version": "1.1.2", 497 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 498 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 499 | "license": "MIT", 500 | "funding": { 501 | "url": "https://github.com/sponsors/ljharb" 502 | } 503 | }, 504 | "node_modules/get-intrinsic": { 505 | "version": "1.3.0", 506 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", 507 | "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", 508 | "license": "MIT", 509 | "dependencies": { 510 | "call-bind-apply-helpers": "^1.0.2", 511 | "es-define-property": "^1.0.1", 512 | "es-errors": "^1.3.0", 513 | "es-object-atoms": "^1.1.1", 514 | "function-bind": "^1.1.2", 515 | "get-proto": "^1.0.1", 516 | "gopd": "^1.2.0", 517 | "has-symbols": "^1.1.0", 518 | "hasown": "^2.0.2", 519 | "math-intrinsics": "^1.1.0" 520 | }, 521 | "engines": { 522 | "node": ">= 0.4" 523 | }, 524 | "funding": { 525 | "url": "https://github.com/sponsors/ljharb" 526 | } 527 | }, 528 | "node_modules/get-proto": { 529 | "version": "1.0.1", 530 | "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", 531 | "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", 532 | "license": "MIT", 533 | "dependencies": { 534 | "dunder-proto": "^1.0.1", 535 | "es-object-atoms": "^1.0.0" 536 | }, 537 | "engines": { 538 | "node": ">= 0.4" 539 | } 540 | }, 541 | "node_modules/gopd": { 542 | "version": "1.2.0", 543 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", 544 | "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", 545 | "license": "MIT", 546 | "engines": { 547 | "node": ">= 0.4" 548 | }, 549 | "funding": { 550 | "url": "https://github.com/sponsors/ljharb" 551 | } 552 | }, 553 | "node_modules/has-symbols": { 554 | "version": "1.1.0", 555 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", 556 | "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", 557 | "license": "MIT", 558 | "engines": { 559 | "node": ">= 0.4" 560 | }, 561 | "funding": { 562 | "url": "https://github.com/sponsors/ljharb" 563 | } 564 | }, 565 | "node_modules/hasown": { 566 | "version": "2.0.2", 567 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 568 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 569 | "license": "MIT", 570 | "dependencies": { 571 | "function-bind": "^1.1.2" 572 | }, 573 | "engines": { 574 | "node": ">= 0.4" 575 | } 576 | }, 577 | "node_modules/http-errors": { 578 | "version": "2.0.0", 579 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 580 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 581 | "license": "MIT", 582 | "dependencies": { 583 | "depd": "2.0.0", 584 | "inherits": "2.0.4", 585 | "setprototypeof": "1.2.0", 586 | "statuses": "2.0.1", 587 | "toidentifier": "1.0.1" 588 | }, 589 | "engines": { 590 | "node": ">= 0.8" 591 | } 592 | }, 593 | "node_modules/iconv-lite": { 594 | "version": "0.5.2", 595 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", 596 | "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", 597 | "license": "MIT", 598 | "dependencies": { 599 | "safer-buffer": ">= 2.1.2 < 3" 600 | }, 601 | "engines": { 602 | "node": ">=0.10.0" 603 | } 604 | }, 605 | "node_modules/inherits": { 606 | "version": "2.0.4", 607 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 608 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 609 | "license": "ISC" 610 | }, 611 | "node_modules/ipaddr.js": { 612 | "version": "1.9.1", 613 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 614 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 615 | "license": "MIT", 616 | "engines": { 617 | "node": ">= 0.10" 618 | } 619 | }, 620 | "node_modules/is-promise": { 621 | "version": "4.0.0", 622 | "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", 623 | "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", 624 | "license": "MIT" 625 | }, 626 | "node_modules/math-intrinsics": { 627 | "version": "1.1.0", 628 | "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", 629 | "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", 630 | "license": "MIT", 631 | "engines": { 632 | "node": ">= 0.4" 633 | } 634 | }, 635 | "node_modules/media-typer": { 636 | "version": "1.1.0", 637 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", 638 | "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", 639 | "license": "MIT", 640 | "engines": { 641 | "node": ">= 0.8" 642 | } 643 | }, 644 | "node_modules/merge-descriptors": { 645 | "version": "2.0.0", 646 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", 647 | "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", 648 | "license": "MIT", 649 | "engines": { 650 | "node": ">=18" 651 | }, 652 | "funding": { 653 | "url": "https://github.com/sponsors/sindresorhus" 654 | } 655 | }, 656 | "node_modules/methods": { 657 | "version": "1.1.2", 658 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 659 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 660 | "license": "MIT", 661 | "engines": { 662 | "node": ">= 0.6" 663 | } 664 | }, 665 | "node_modules/mime-db": { 666 | "version": "1.53.0", 667 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.53.0.tgz", 668 | "integrity": "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==", 669 | "license": "MIT", 670 | "engines": { 671 | "node": ">= 0.6" 672 | } 673 | }, 674 | "node_modules/mime-types": { 675 | "version": "3.0.0", 676 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.0.tgz", 677 | "integrity": "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w==", 678 | "license": "MIT", 679 | "dependencies": { 680 | "mime-db": "^1.53.0" 681 | }, 682 | "engines": { 683 | "node": ">= 0.6" 684 | } 685 | }, 686 | "node_modules/ms": { 687 | "version": "2.1.2", 688 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 689 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 690 | "license": "MIT" 691 | }, 692 | "node_modules/negotiator": { 693 | "version": "1.0.0", 694 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", 695 | "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", 696 | "license": "MIT", 697 | "engines": { 698 | "node": ">= 0.6" 699 | } 700 | }, 701 | "node_modules/node-domexception": { 702 | "version": "1.0.0", 703 | "resolved": "https://registry.npmmirror.com/node-domexception/-/node-domexception-1.0.0.tgz", 704 | "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", 705 | "funding": [ 706 | { 707 | "type": "github", 708 | "url": "https://github.com/sponsors/jimmywarting" 709 | }, 710 | { 711 | "type": "github", 712 | "url": "https://paypal.me/jimmywarting" 713 | } 714 | ], 715 | "license": "MIT", 716 | "engines": { 717 | "node": ">=10.5.0" 718 | } 719 | }, 720 | "node_modules/node-fetch": { 721 | "version": "3.3.2", 722 | "resolved": "https://registry.npmmirror.com/node-fetch/-/node-fetch-3.3.2.tgz", 723 | "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", 724 | "license": "MIT", 725 | "dependencies": { 726 | "data-uri-to-buffer": "^4.0.0", 727 | "fetch-blob": "^3.1.4", 728 | "formdata-polyfill": "^4.0.10" 729 | }, 730 | "engines": { 731 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 732 | }, 733 | "funding": { 734 | "type": "opencollective", 735 | "url": "https://opencollective.com/node-fetch" 736 | } 737 | }, 738 | "node_modules/object-assign": { 739 | "version": "4.1.1", 740 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 741 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 742 | "license": "MIT", 743 | "engines": { 744 | "node": ">=0.10.0" 745 | } 746 | }, 747 | "node_modules/object-inspect": { 748 | "version": "1.13.4", 749 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", 750 | "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", 751 | "license": "MIT", 752 | "engines": { 753 | "node": ">= 0.4" 754 | }, 755 | "funding": { 756 | "url": "https://github.com/sponsors/ljharb" 757 | } 758 | }, 759 | "node_modules/on-finished": { 760 | "version": "2.4.1", 761 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 762 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 763 | "license": "MIT", 764 | "dependencies": { 765 | "ee-first": "1.1.1" 766 | }, 767 | "engines": { 768 | "node": ">= 0.8" 769 | } 770 | }, 771 | "node_modules/once": { 772 | "version": "1.4.0", 773 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 774 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 775 | "license": "ISC", 776 | "dependencies": { 777 | "wrappy": "1" 778 | } 779 | }, 780 | "node_modules/parseurl": { 781 | "version": "1.3.3", 782 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 783 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 784 | "license": "MIT", 785 | "engines": { 786 | "node": ">= 0.8" 787 | } 788 | }, 789 | "node_modules/path-to-regexp": { 790 | "version": "8.2.0", 791 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", 792 | "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", 793 | "license": "MIT", 794 | "engines": { 795 | "node": ">=16" 796 | } 797 | }, 798 | "node_modules/pkce-challenge": { 799 | "version": "4.1.0", 800 | "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-4.1.0.tgz", 801 | "integrity": "sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ==", 802 | "license": "MIT", 803 | "engines": { 804 | "node": ">=16.20.0" 805 | } 806 | }, 807 | "node_modules/proxy-addr": { 808 | "version": "2.0.7", 809 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 810 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 811 | "license": "MIT", 812 | "dependencies": { 813 | "forwarded": "0.2.0", 814 | "ipaddr.js": "1.9.1" 815 | }, 816 | "engines": { 817 | "node": ">= 0.10" 818 | } 819 | }, 820 | "node_modules/qs": { 821 | "version": "6.13.0", 822 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", 823 | "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", 824 | "license": "BSD-3-Clause", 825 | "dependencies": { 826 | "side-channel": "^1.0.6" 827 | }, 828 | "engines": { 829 | "node": ">=0.6" 830 | }, 831 | "funding": { 832 | "url": "https://github.com/sponsors/ljharb" 833 | } 834 | }, 835 | "node_modules/range-parser": { 836 | "version": "1.2.1", 837 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 838 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 839 | "license": "MIT", 840 | "engines": { 841 | "node": ">= 0.6" 842 | } 843 | }, 844 | "node_modules/raw-body": { 845 | "version": "3.0.0", 846 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", 847 | "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", 848 | "license": "MIT", 849 | "dependencies": { 850 | "bytes": "3.1.2", 851 | "http-errors": "2.0.0", 852 | "iconv-lite": "0.6.3", 853 | "unpipe": "1.0.0" 854 | }, 855 | "engines": { 856 | "node": ">= 0.8" 857 | } 858 | }, 859 | "node_modules/raw-body/node_modules/iconv-lite": { 860 | "version": "0.6.3", 861 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", 862 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", 863 | "license": "MIT", 864 | "dependencies": { 865 | "safer-buffer": ">= 2.1.2 < 3.0.0" 866 | }, 867 | "engines": { 868 | "node": ">=0.10.0" 869 | } 870 | }, 871 | "node_modules/router": { 872 | "version": "2.1.0", 873 | "resolved": "https://registry.npmjs.org/router/-/router-2.1.0.tgz", 874 | "integrity": "sha512-/m/NSLxeYEgWNtyC+WtNHCF7jbGxOibVWKnn+1Psff4dJGOfoXP+MuC/f2CwSmyiHdOIzYnYFp4W6GxWfekaLA==", 875 | "license": "MIT", 876 | "dependencies": { 877 | "is-promise": "^4.0.0", 878 | "parseurl": "^1.3.3", 879 | "path-to-regexp": "^8.0.0" 880 | }, 881 | "engines": { 882 | "node": ">= 18" 883 | } 884 | }, 885 | "node_modules/safe-buffer": { 886 | "version": "5.2.1", 887 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 888 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 889 | "funding": [ 890 | { 891 | "type": "github", 892 | "url": "https://github.com/sponsors/feross" 893 | }, 894 | { 895 | "type": "patreon", 896 | "url": "https://www.patreon.com/feross" 897 | }, 898 | { 899 | "type": "consulting", 900 | "url": "https://feross.org/support" 901 | } 902 | ], 903 | "license": "MIT" 904 | }, 905 | "node_modules/safer-buffer": { 906 | "version": "2.1.2", 907 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 908 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 909 | "license": "MIT" 910 | }, 911 | "node_modules/send": { 912 | "version": "1.1.0", 913 | "resolved": "https://registry.npmjs.org/send/-/send-1.1.0.tgz", 914 | "integrity": "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==", 915 | "license": "MIT", 916 | "dependencies": { 917 | "debug": "^4.3.5", 918 | "destroy": "^1.2.0", 919 | "encodeurl": "^2.0.0", 920 | "escape-html": "^1.0.3", 921 | "etag": "^1.8.1", 922 | "fresh": "^0.5.2", 923 | "http-errors": "^2.0.0", 924 | "mime-types": "^2.1.35", 925 | "ms": "^2.1.3", 926 | "on-finished": "^2.4.1", 927 | "range-parser": "^1.2.1", 928 | "statuses": "^2.0.1" 929 | }, 930 | "engines": { 931 | "node": ">= 18" 932 | } 933 | }, 934 | "node_modules/send/node_modules/fresh": { 935 | "version": "0.5.2", 936 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 937 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 938 | "license": "MIT", 939 | "engines": { 940 | "node": ">= 0.6" 941 | } 942 | }, 943 | "node_modules/send/node_modules/mime-db": { 944 | "version": "1.52.0", 945 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 946 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 947 | "license": "MIT", 948 | "engines": { 949 | "node": ">= 0.6" 950 | } 951 | }, 952 | "node_modules/send/node_modules/mime-types": { 953 | "version": "2.1.35", 954 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 955 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 956 | "license": "MIT", 957 | "dependencies": { 958 | "mime-db": "1.52.0" 959 | }, 960 | "engines": { 961 | "node": ">= 0.6" 962 | } 963 | }, 964 | "node_modules/send/node_modules/ms": { 965 | "version": "2.1.3", 966 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 967 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 968 | "license": "MIT" 969 | }, 970 | "node_modules/serve-static": { 971 | "version": "2.1.0", 972 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.1.0.tgz", 973 | "integrity": "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA==", 974 | "license": "MIT", 975 | "dependencies": { 976 | "encodeurl": "^2.0.0", 977 | "escape-html": "^1.0.3", 978 | "parseurl": "^1.3.3", 979 | "send": "^1.0.0" 980 | }, 981 | "engines": { 982 | "node": ">= 18" 983 | } 984 | }, 985 | "node_modules/setprototypeof": { 986 | "version": "1.2.0", 987 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 988 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", 989 | "license": "ISC" 990 | }, 991 | "node_modules/side-channel": { 992 | "version": "1.1.0", 993 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", 994 | "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", 995 | "license": "MIT", 996 | "dependencies": { 997 | "es-errors": "^1.3.0", 998 | "object-inspect": "^1.13.3", 999 | "side-channel-list": "^1.0.0", 1000 | "side-channel-map": "^1.0.1", 1001 | "side-channel-weakmap": "^1.0.2" 1002 | }, 1003 | "engines": { 1004 | "node": ">= 0.4" 1005 | }, 1006 | "funding": { 1007 | "url": "https://github.com/sponsors/ljharb" 1008 | } 1009 | }, 1010 | "node_modules/side-channel-list": { 1011 | "version": "1.0.0", 1012 | "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", 1013 | "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", 1014 | "license": "MIT", 1015 | "dependencies": { 1016 | "es-errors": "^1.3.0", 1017 | "object-inspect": "^1.13.3" 1018 | }, 1019 | "engines": { 1020 | "node": ">= 0.4" 1021 | }, 1022 | "funding": { 1023 | "url": "https://github.com/sponsors/ljharb" 1024 | } 1025 | }, 1026 | "node_modules/side-channel-map": { 1027 | "version": "1.0.1", 1028 | "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", 1029 | "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", 1030 | "license": "MIT", 1031 | "dependencies": { 1032 | "call-bound": "^1.0.2", 1033 | "es-errors": "^1.3.0", 1034 | "get-intrinsic": "^1.2.5", 1035 | "object-inspect": "^1.13.3" 1036 | }, 1037 | "engines": { 1038 | "node": ">= 0.4" 1039 | }, 1040 | "funding": { 1041 | "url": "https://github.com/sponsors/ljharb" 1042 | } 1043 | }, 1044 | "node_modules/side-channel-weakmap": { 1045 | "version": "1.0.2", 1046 | "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", 1047 | "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", 1048 | "license": "MIT", 1049 | "dependencies": { 1050 | "call-bound": "^1.0.2", 1051 | "es-errors": "^1.3.0", 1052 | "get-intrinsic": "^1.2.5", 1053 | "object-inspect": "^1.13.3", 1054 | "side-channel-map": "^1.0.1" 1055 | }, 1056 | "engines": { 1057 | "node": ">= 0.4" 1058 | }, 1059 | "funding": { 1060 | "url": "https://github.com/sponsors/ljharb" 1061 | } 1062 | }, 1063 | "node_modules/statuses": { 1064 | "version": "2.0.1", 1065 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 1066 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 1067 | "license": "MIT", 1068 | "engines": { 1069 | "node": ">= 0.8" 1070 | } 1071 | }, 1072 | "node_modules/toidentifier": { 1073 | "version": "1.0.1", 1074 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 1075 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 1076 | "license": "MIT", 1077 | "engines": { 1078 | "node": ">=0.6" 1079 | } 1080 | }, 1081 | "node_modules/type-is": { 1082 | "version": "2.0.0", 1083 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.0.tgz", 1084 | "integrity": "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw==", 1085 | "license": "MIT", 1086 | "dependencies": { 1087 | "content-type": "^1.0.5", 1088 | "media-typer": "^1.1.0", 1089 | "mime-types": "^3.0.0" 1090 | }, 1091 | "engines": { 1092 | "node": ">= 0.6" 1093 | } 1094 | }, 1095 | "node_modules/unpipe": { 1096 | "version": "1.0.0", 1097 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1098 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 1099 | "license": "MIT", 1100 | "engines": { 1101 | "node": ">= 0.8" 1102 | } 1103 | }, 1104 | "node_modules/utils-merge": { 1105 | "version": "1.0.1", 1106 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1107 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 1108 | "license": "MIT", 1109 | "engines": { 1110 | "node": ">= 0.4.0" 1111 | } 1112 | }, 1113 | "node_modules/vary": { 1114 | "version": "1.1.2", 1115 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1116 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 1117 | "license": "MIT", 1118 | "engines": { 1119 | "node": ">= 0.8" 1120 | } 1121 | }, 1122 | "node_modules/web-streams-polyfill": { 1123 | "version": "3.3.3", 1124 | "resolved": "https://registry.npmmirror.com/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", 1125 | "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", 1126 | "license": "MIT", 1127 | "engines": { 1128 | "node": ">= 8" 1129 | } 1130 | }, 1131 | "node_modules/wrappy": { 1132 | "version": "1.0.2", 1133 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1134 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 1135 | "license": "ISC" 1136 | }, 1137 | "node_modules/zod": { 1138 | "version": "3.24.2", 1139 | "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", 1140 | "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", 1141 | "license": "MIT", 1142 | "funding": { 1143 | "url": "https://github.com/sponsors/colinhacks" 1144 | } 1145 | }, 1146 | "node_modules/zod-to-json-schema": { 1147 | "version": "3.24.4", 1148 | "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.4.tgz", 1149 | "integrity": "sha512-0uNlcvgabyrni9Ag8Vghj21drk7+7tp7VTwwR7KxxXXc/3pbXz2PHlDgj3cICahgF1kHm4dExBFj7BXrZJXzig==", 1150 | "license": "ISC", 1151 | "peerDependencies": { 1152 | "zod": "^3.24.1" 1153 | } 1154 | } 1155 | } 1156 | } 1157 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "minimax-mcp-tools", 3 | "version": "1.4.0", 4 | "description": "MCP server with Minimax API integration for image generation and text-to-speech", 5 | "type": "module", 6 | "main": "index.js", 7 | "bin": { 8 | "minimax-mcp-tools": "./index.js" 9 | }, 10 | "scripts": { 11 | "start": "node index.js", 12 | "test": "echo \"Error: no test specified\" && exit 1" 13 | }, 14 | "keywords": [ 15 | "mcp", 16 | "minimax", 17 | "ai", 18 | "image-generation", 19 | "text-to-speech", 20 | "tts" 21 | ], 22 | "author": "PsychArch (https://github.com/PsychArch)", 23 | "license": "MIT", 24 | "repository": { 25 | "type": "git", 26 | "url": "git+https://github.com/PsychArch/minimax-mcp-tools.git" 27 | }, 28 | "bugs": { 29 | "url": "https://github.com/PsychArch/minimax-mcp-tools/issues" 30 | }, 31 | "homepage": "https://github.com/PsychArch/minimax-mcp-tools#readme", 32 | "dependencies": { 33 | "@modelcontextprotocol/sdk": "^1.7.0", 34 | "node-fetch": "^3.3.2", 35 | "zod": "^3.22.4" 36 | }, 37 | "engines": { 38 | "node": ">=16.0.0" 39 | }, 40 | "files": [ 41 | "index.js", 42 | "minimax-api.js", 43 | "minimax-tts-api.js", 44 | "README.md", 45 | "LICENSE" 46 | ], 47 | "publishConfig": { 48 | "access": "public" 49 | } 50 | } 51 | --------------------------------------------------------------------------------