图像提示风格转换工具

Cereal Box Style MCP Server 是一个图像提示风格转换工具,提供7种不同的谷物盒包装美学风格转换功能,适用于创意设计、广告制作和内容生成场景。

  • by dmarsters
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 dmarsters/cereal-box-style-mcp

使用说明

谷物盒式MCP服务器

通过7种不同的谷物盒包装美学转换图像提示。

分类

  1. 吉祥物剧场 -卡通人物,大胆的轮廓,明亮的原色
  2. 健康光环 -极简主义自然摄影,柔和的大地色调
  3. 怀旧复兴 -复古丝网印刷,有限的调色板,复古排版
  4. 高级破坏者 -黑色背景,金属色调,奢华简约
  5. 孩子混乱 -霓虹灯爆炸,最大密度,极端角度
  6. 透明诚实 -临床信息图、标记组件、系统
  7. 冒险幻想 -电影史诗般的规模、神奇的效果、戏剧性的灯光

安装

cd /Users/dalmarsters/Documents/cereal-box-style-mcp
uv pip install -e .

使用Claude Desktop

MCP服务器提供了Claude可以调用的工具来转换提示:

User: "Transform 'a tired chef tasting soup' into mascot theater style"

Claude will:
1. Call parse_prompt to extract components
2. Call apply_transformations with mascot_theater
3. Call build_prompt_skeleton to structure output
4. Synthesize the final creative prompt

可用工具

  • parse_prompt -提取语义成分
  • get_available_categories -列出所有样式类别
  • suggest_category -人工智能驱动的类别推荐
  • get_category_rules -获取类别的转换规则
  • apply_transformations -将组件转换为类别样式
  • build_prompt_skeleton -组装结构化提示
  • refine_component -编辑特定零件
  • generate_variants -创建多种变体

工作流示例

# 1. Parse user input
components = parse_prompt("a firefighter rescuing a cat")

# 2. Get suggestion
suggestion = suggest_category(components)
# Returns: "mascot_theater"

# 3. Apply transformation
transformed = apply_transformations(components, "mascot_theater")

# 4. Build skeleton
skeleton = build_prompt_skeleton(transformed, "mascot_theater", components['semantic_weights'])

# 5. Claude synthesizes final prompt

成本优化

  • 无MCP:每个请求约10000个代币(约0.025美元)
  • 使用MCP:每个请求约250个令牌(约0.008美元)
  • 储蓄:API成本降低68%

发展

# Run server directly
python -m cereal_box_style_mcp.server

# Test tools
uv run python -c "from cereal_box_style_mcp.server import parse_prompt; print(parse_prompt('a happy dog'))"