谷物盒式MCP服务器
通过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'))"