UNPKG

jimeng-ai-mcp

Version:

火山引擎即梦AI多模态生成服务MCP工具

213 lines 5.78 kB
{ "name": "jimeng-ai-mcp", "version": "1.0.14", "description": "火山引擎即梦AI多模态生成服务MCP工具", "author": "Jimeng AI", "license": "MIT", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "scripts": { "build": "tsc", "start": "node dist/examples/mcp-server.js", "dev": "ts-node examples/mcp-server.ts" }, "tools": [ { "name": "generate-image", "description": "当用户需要生成图片时使用的工具", "parameters": { "type": "object", "properties": { "text": { "type": "string", "description": "用户需要在图片上显示的文字" }, "illustration": { "type": "string", "description": "根据用户要显示的文字,提取3-5个可以作为图片配饰的插画元素关键词" }, "color": { "type": "string", "description": "图片的背景主色调" }, "ratio": { "type": "string", "enum": ["4:3", "3:4", "16:9", "9:16"], "description": "图片比例。支持: 4:3 (512*384), 3:4 (384*512), 16:9 (512*288), 9:16 (288*512)" }, "region": { "type": "string", "description": "火山引擎区域", "default": "cn-north-1" } }, "required": ["text", "illustration", "color", "ratio"] }, "returns": { "type": "object", "properties": { "content": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": ["text"] }, "text": { "type": "string" } } } } } } }, { "name": "generate-video", "description": "当用户需要生成视频时使用的工具,基于即梦AI文生视频模型", "parameters": { "type": "object", "properties": { "prompt": { "type": "string", "description": "视频内容的描述" }, "async": { "type": "boolean", "description": "是否异步生成视频,true表示立即返回任务ID,false或不填表示等待视频生成完成", "default": true }, "intent_sync": { "type": "boolean", "description": "是否检测到同步生成意图,如用户提到'一次输出'、'同步输出'、'等待结果'等", "default": false }, "region": { "type": "string", "description": "火山引擎区域", "default": "cn-north-1" } }, "required": ["prompt"] }, "returns": { "type": "object", "properties": { "content": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": ["text"] }, "text": { "type": "string" } } } } } } }, { "name": "submit-video-task", "description": "提交视频生成任务,立即返回任务ID,不等待视频生成完成", "parameters": { "type": "object", "properties": { "prompt": { "type": "string", "description": "视频内容的描述" }, "region": { "type": "string", "description": "火山引擎区域", "default": "cn-north-1" } }, "required": ["prompt"] }, "returns": { "type": "object", "properties": { "content": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": ["text"] }, "text": { "type": "string" } } } } } } }, { "name": "get-video-task", "description": "查询视频生成任务的结果,根据任务ID获取视频生成结果", "parameters": { "type": "object", "properties": { "task_id": { "type": "string", "description": "任务ID,通过submit-video-task工具获取" } }, "required": ["task_id"] }, "returns": { "type": "object", "properties": { "content": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": ["text"] }, "text": { "type": "string" } } } } } } } ], "env": [ { "name": "JIMENG_ACCESS_KEY", "description": "火山引擎即梦AI访问密钥", "required": true }, { "name": "JIMENG_SECRET_KEY", "description": "火山引擎即梦AI密钥", "required": true } ], "dependencies": { "axios": "^1.4.0", "dotenv": "^16.5.0", "@modelcontextprotocol/sdk": "^1.12.3", "zod": "^3.25.67" }, "devDependencies": { "typescript": "^5.1.3", "ts-node": "^10.9.2", "@types/node": "^18.16.0" } }