MCP图像生成器添加福利群:解决AI开发者的「MCP实战痛点」一个模型上下文协议 (MCP) 服务器,通过 Together AI 实现无缝生成高质量图像。该服务器提供了一个标准化接口来指定图像生成参数。
~/Library/Application\ Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json{
"mcpServers": {
"image-gen": {
"command": "uv",
"args": ["--directory", "/ABSOLUTE/PATH/TO/image-gen/", "run", "image-gen"],
"env": {
"TOGETHER_AI_API_KEY": "<API KEY>"
}
}
}
}

该服务器实现了一个工具:
根据给定的文本提示和可选尺寸生成图像。
输入模式:
{
"prompt": {
"type": "string",
"description": "A descriptive prompt for generating the image (e.g., 'a futuristic cityscape at sunset')"
},
"width": {
"type": "integer",
"description": "Width of the generated image in pixels (optional)"
},
"height": {
"type": "integer",
"description": "Height of the generated image in pixels (optional)"
},
"model": {
"type": "string",
"description": "The exact model name as it appears in Together AI. If incorrect, it will fallback to the default model (black-forest-labs/FLUX.1-schnell)."
}
}

欢迎贡献!请按照以下步骤进行贡献:
feature/my-new-feature)对于重大更改,请先打开一个问题以讨论您提议的更改。
该项目根据 MIT 许可证许可。有关详细信息,请参阅 LICENSE 文件。