Visual Generator MCP
Visual Generator MCP
外部多模态生成 MCP Server(图片 + 视频),用于在 Tailscale 内网被 MCP Host(例如 eCommerceAgent)接入并调用。
目标
只负责生成与交付:调用方负责业务语义,本服务负责模型调用与 OSS/CDN URL 返回。
工具稳定:
imageGenerate、videoGenerate、materialWrite三块。模式统一:
imageGenerate/videoGenerate通过generationMode区分常规与智能模式。
工具(MCP Tools)
1) imageGenerate(Host 落位点:visual__imageGenerate)
必填:
vendor、modelName、prompt、storageMode/env/project/referenceType/referenceId新增:
generationMode(normal|smart,默认normal)当前状态:
generationMode=normal已支持generationMode=smart首期预留(未开放)
出参:
structuredContent.images[](imageUrl/mimeType/objectKey)
2) videoGenerate(Host 落位点:visual__videoGenerate)
常规必填:
vendor、modelName、storageMode/env/project/referenceType/referenceId模式字段:
generationMode(normal|smart,默认normal)模式说明:
normal:调用方提供完整 prompt 与参数smart:先做需求分析与方案生成,再做素材匹配与分段生成(视频优先实施)
出参:
structuredContent.videos[](videoUrl/mimeType/objectKey)
3) materialWrite(Host 落位点:visual__materialWrite)
定位:将用户认可素材写入素材库,并自动打标签与权限字段。
当前状态:规划中(详见
docs/plan/plan-intelligent-generation.md)。
兼容说明(历史调用):
旧工具名
generate/generateVideo已废弃,调用方需升级到imageGenerate/videoGenerate。
快速开始
安装依赖
npm install配置环境变量
cp .env.example .env启动 SSE MCP Server
npm run dev:sse健康检查:
curl -i http://localhost:3107/health接入 eCommerceAgent(示例)
{
"mcpServers": {
"visual": {
"transport": "sse",
"endpoint": "http://<tailscale-ip>:3107/"
}
}
}Verify 后应看到:
visual__imageGeneratevisual__videoGenerate
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/baronedog1/visualGeneratorMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server