核爆炸美学提示增强系统

一个用于核爆炸美学的提示增强系统,通过时间-形态耦合架构提供结构化的视觉参数输出。

  • by dmarsters
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 dmarsters/nuclear-aesthetic-mcp

使用说明

核美学MCP服务器

一个核爆炸美学的快速增强系统,实现了一个分类的olog架构 时间形态相位耦合 作为主要的组织轴心。

建筑

此MCP遵循三层模式,以实现经济高效的快速增强:

  1. 克劳德层:解释创意意图,将自然语言描述映射到PhaseForm+修饰符
  2. MCP层:确定性分类查找和参数映射(无LLM推理)
  3. 输出层:已准备好生成图像的结构化视觉参数

为什么是这种架构?

时间形态耦合消除了冗余的参数规范。每个PhaseForm都捆绑了其固有的视觉特性——您不必单独指定“热开花”照明,因为 initiation.thermal_bloom 是 热开花照明。耦合意味着:

  • 清洁剂API表面
  • 更少的参数出错
  • 分类学保证了视觉连贯性

核心概念

相位形式(主轴)

时间相位和形态形态的融合:

Initiation Phase (sub-μs to μs)
├── initiation.radiant_point      → pure white point, corona forming
└── initiation.thermal_bloom      → white sphere consuming frame

Fireball Phase (ms to seconds)
├── fireball.plasma_core          → orange-white sphere, internal convection
├── fireball.surface_instability  → mottled surface, rope tricks
└── fireball.expansion_front      → cooling edges, shock separating

Shock Phase (seconds)
├── shock.compression_disc        → visible ring of compressed air
├── shock.mach_stem              → dust skirt, debris curtain
└── shock.wilson_cloud           → white vapor ring, eerie transient

Rise Phase (seconds to minutes)
├── rise.vortex_stem             → rising column, internal fire
├── rise.toroidal_roll           → mushroom cap forming, rolling edges
└── rise.cauliflower_cap         → baroque complexity, fractal edges

Dispersal Phase (minutes to hours)
├── dispersal.column_collapse    → stem losing coherence
├── dispersal.anvil_spread       → cap spreading horizontally
└── dispersal.fallout_plume      → drifting, ominous, entropic

修改器(次轴)

修改器在不改变其标识的情况下变换基础PhaseForm:

规模 (产量)

  • tactical --亚千吨级,紧凑型,快速进化
  • strategic --千吨级,典型图像
  • thermonuclear --兆吨级+,多级,极端垂直

环境 (媒介互动)

  • surface --火山口、泥土碎片、脏茎
  • airburst --干净的火球,纯粹的冲击效果
  • underwater --威尔逊柱,巨大的蒸汽
  • space --无大气,纯等离子体膨胀
  • underground --仅包含通风口羽流

时代 (捕捉美学)

  • trinity --深褐色,重颗粒,静态相机
  • pacific --Kodachrome,海军装帧
  • nevada --沙漠调色板,民防纪录片
  • modern --CGI干净,不可能的角度

影响 (情绪登记)

  • sublime --压倒性的规模,发光的极端
  • terrible --破坏媒介、恐怖/力量
  • clinical --测量参考文件
  • melancholic --余波、熵、悲伤
  • anxious --期待、倒计时、恐惧
  • sacred_profane --美恐怖张力

工具

enhance_nuclear_aesthetic

主要增强工具。接受提示+PhaseForm+修饰符,返回结构化参数。

# Example invocation
{
    "prompt": "explosion over desert landscape",
    "phase_form": "rise.cauliflower_cap",
    "scale": "thermonuclear",
    "environment": "airburst",
    "era": "nevada",
    "affect": "sublime"
}

退货:

  • visual_parameters:色温、光度、对比度、形状、大气
  • modifiers_applied:所有活动修改器效果
  • enhanced_prompt_elements:描述性元素数组
  • synthesized_prompt:即用型增强提示

suggest_phase_form

将自然语言映射到PhaseForm建议。克劳德用这个来解释创作意图。

{"description": "that moment where everything goes white but you can still see shape forming"}
# Returns: initiation.thermal_bloom with high confidence

list_phase_forms

浏览可用的阶段表单,可选择按阶段前缀过滤。

{"phase_filter": "fireball"}
# Returns: plasma_core, surface_instability, expansion_front

get_phase_form_details

检查特定PhaseForm的完整内在特性。

list_modifiers

浏览所有修改器类别及其效果。

使用模式

Claude的工作流程:

  1. 接收用户的创作意图(自然语言)
  2. 呼叫 suggest_phase_form 绘制意图图→ PhaseForm候选人
  3. 选择最佳PhaseForm,确定适当的修改器
  4. 呼叫 enhance_nuclear_aesthetic 有选择
  5. 使用返回的参数指导图像生成提示

对话示例:

用户:“我想要那个有蒸汽环的诡异时刻”

克劳德解释→ calls suggest_phase_form:

{"description": "eerie moment with vapor ring"}

MCP返回 shock.wilson_cloud 作为顶级比赛。

克劳德打电话来 enhance_nuclear_aesthetic:

{
    "prompt": "nuclear test atmospheric phenomenon",
    "phase_form": "shock.wilson_cloud",
    "scale": "strategic",
    "environment": "airburst",
    "affect": "sublime"
}

获取用于生成图像的结构化参数。

安装

cd nuclear_aesthetic_mcp
pip install -e .

跑步

# stdio transport (local)
python nuclear_aesthetic_mcp.py

# Or via installed script
nuclear-aesthetic-mcp

与Claude整合

添加到MCP配置中:

{
    "mcpServers": {
        "nuclear_aesthetic": {
            "command": "python",
            "args": ["/path/to/nuclear_aesthetic_mcp.py"]
        }
    }
}

范畴结构

该系统背后的olog:

Objects:
- PhaseForm (primary, bundled temporal-morphological states)
- Scale, Environment, Era, Affect (modifier categories)
- VisualParameters (output space)

Morphisms:
- enhance: PhaseForm × Scale × Environment × Era? × Affect? → VisualParameters
- suggest: Description → List[PhaseForm × Confidence]

Commutative Properties:
- Modifier application is commutative (order doesn't matter)
- PhaseForm intrinsics override conflicting modifier suggestions

关键观点:时间相位和形态形式不是独立的轴。“威尔逊云”只存在于冲击阶段。“花椰菜帽”只存在于生长阶段。联轴器是 物理的,所以分类法反映了这一点。

许可证

麻省理工学院

作者

达尔·马斯特斯