星座构图MCP服务器

将天文星座图案转换为AI图像生成的构图参数的服务,支持22个主要星座和多种输出格式。

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

使用说明

星座组合MCP服务器

MCP服务器,将天文星座模式转换为AI图像生成的组成参数。

特性

  • 22个具有几何和神话元数据的主要星座
  • 从星图到焦点的零LLM成本确定性映射
  • 主题指导的神话整合
  • 多种输出格式(JSON和Markdown)
  • 画布缩放从512x512到4096x4096像素

安装

pip install -e ".[dev]"

用法

作为MCP服务器

添加到Claude桌面配置:

{
  "mcpServers": {
    "constellation-composition": {
      "command": "constellation-composition-mcp"
    }
  }
}

以编程方式

from constellation_composition_mcp.server import (
    generate_constellation_composition,
    search_constellations
)

# Search for constellations
results = await search_constellations(query="hunting")

# Generate composition
composition = await generate_constellation_composition(
    constellation_name="Orion",
    canvas_width=1920,
    canvas_height=1080
)

可用工具

  1. 搜索_配置 -按主题、形状或亮度搜索
  2. 生成_统计_定位 -将星座图映射到组成参数
  3. list_all_constellations -浏览所有可用星座

发展

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
./tests/run_tests.sh

# Format code
black src/ tests/
ruff check src/ tests/

文档

看 docs/ 详细文档目录:

  • 体系结构概述
  • 集成示例
  • 星座数据库参考

许可证

MIT许可证-有关详细信息,请参阅许可证文件

作者

从火星 - Lushy.app