Vibe Worldbuilding MCP
模型上下文协议 (MCP) 用于使用 Claude 创建详细的虚构世界,并具有自动图像生成功能。
概述
这款 MCP 能够帮助您通过结构化的世界构建方法,构建丰富且具有凝聚力的虚构世界。它利用 Claude 的功能,帮助您发展概念、探索细节并保持一致性。MCP 还可以生成图像,以直观的方式呈现您世界的各个元素。
安装
- 安装 MCP CLI:
- 安装所需的依赖项:
pip install google-generativeai
- 使用您的 Google AI API 密钥安装 Vibe Worldbuilding MCP:
cd /path/to/vibe-worldbuilding-mcp
mcp install vibe_worldbuilding_server.py -v IMAGEN_API_KEY=your_api_key_here
-v
标志设置图像生成所需的环境变量。如果您没有 Imagen 的 Google AI API 密钥,您仍然可以使用 MCP 进行世界构建,但图像生成功能将无法使用。或者,您可以在开发模式下测试 MCP:mcp dev vibe_worldbuilding_server.py -v IMAGEN_API_KEY=your_api_key_here
如何使用
MCP 提供了几个提示来指导您的世界构建过程:
- start-worldbuilding - 开始一个新的世界项目
- continue-worldbuilding - 继续在现有世界工作
- 世界基金会- 发展你的世界的核心概念
- 分类法- 为世界元素创建分类系统
- world-entry - 为特定元素创建详细条目
- 一致性审查- 检查逻辑一致性
- entry-revision - 修改和改进现有条目
- 工作流程- 获取整个流程的指导
图像生成
MCP 可以为你的世界元素生成图片。在为条目、分类法或其他元素创建 Markdown 文件后,请使用generate_image_from_markdown_file
工具:
Use the generate_image_from_markdown_file tool with path="/path/to/your/file.md"
该工具将:
- 读取 Markdown 文件的内容
- 提取标题和描述
- 使用 Google 的 Imagen API 生成合适的图像
- 将图像保存在 markdown 文件旁边的“images”文件夹中
然后,您可以将生成的图像上传给 Claude 以便在对话中查看它。
世界构建工作流程
- 从start-worldbuilding提示开始
- 对于每个新课程,从继续世界建设开始
- 按以下顺序发展你的世界:
- 世界基础(核心概念和概述)
- 分类法(分类系统)
- 具体条目(详细文章)
- 通过开发你感兴趣的元素,让你的世界自然成长
- 为您的世界元素生成图像,让它们在视觉上栩栩如生
示例会话
User: Let's create a new world.
[User selects the "start-worldbuilding" prompt from the MCP menu]
Claude: [Displays the worldbuilding prompt]
User: I'd like to create a world where sound has magical properties.
Claude: [Helps develop the concept and explores implications]
User: Let's save this as my world overview file.
Claude: [Saves the content to world-overview.md]
User: Now generate an image for this overview.
[User uses the generate_image_from_markdown_file tool]
Claude: [Generates an image and saves it to disk]
要求
- Imagen 的 Google AI API 密钥(设置为 IMAGEN_API_KEY 环境变量)
- Google 生成式 AI Python 库(
google-generativeai
) - MCP CLI 工具
成功秘诀
- 从核心概念开始,逐步构建你的世界
- 创建相关内容集群
- 定期审查一致性
- 注重质量而非数量
- 让你的世界自然而然地出现
- 使用生成的图像来激发进一步的世界构建