TF

txpple/fvtt-mcp-imagegen

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 0 forks 质量 75 趋势 20MIT

MCP服务器允许Claude用Google的Gemini图片模型制作Foundry的虚拟桌面艺术(图标、代币、肖像、插画)。没有GPU,没有本地模型。

概览

一个MCP服务器,允许Claude用Google的Gemini图像模型(Nano Banana)为你的Foundry VTT桌面制作艺术作品。四个工具,一个API密钥,没有GPU。 Claude 代码驱动它。服务器注册为图像生成,其插画构建技能将每个部分都基于你的世界已有的设定和展示。Claude 写提示词,服务器渲染,Claude 查看结果并修正错误,完成的文件会上传到磁盘,准备上传到 Foundry。 - 来自某条样式线的二十个图标作为一套匹配的图像返回。每个约3美分。- 俯视、全身、切割为透明,中心为正方形,使Foundry的比例1.0正确:512像素,大型及更大生物则为1024像素。类人生物面向镜头;兽类在背面可见。没有阴影,边缘也不会有任何东西被剪掉:如果画面中剑或翅膀被切割,渲染会重新制作,如果穿插两次则拒绝。

概述(AI 翻译)

一个MCP服务器,允许Claude为你的Foundry VTT制作艺术作品 使用谷歌Gemini图像模型(Nano Banana)的表格。四个工具,一个API密钥,没有GPU。

Claude Code 驱动它。服务器注册为 imagegen。 它的illustration-builder技能让每一块棋子都扎根于你的世界已经说明的内容, 显示。Claude写提示词,服务器渲染,Claude查看结果并修正 错误,完成的文件会落到磁盘上,准备上传到Foundry。

你能创造的东西

  • 物品、法术和特征图标。 同一条样式线的二十个图标会合为一体 配套套装。每套大约3美分。
  • 代币。 俯视、全身、透明切割,中心为正方形,以Foundry的比例尺为中心 1.0版本的准确性是:512像素,大型和更大生物则为1024像素。类人生物在 摄像机;背部可见野兽。没有阴影,边缘也从未被剪断:a 用剑或翅膀被框架切割的渲染会重新制作,如果穿插两次则拒绝。交给它 你现有的代币作为风格参考,新的代币则与角度和外观相匹配。关于 每人3美分。
  • **令牌刷新。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

fvtt-mcp-imagegen

An MCP server that lets Claude make art for your Foundry VTT table using Google’s Gemini image models (Nano Banana). Four tools, one API key, no GPU.

Claude Code drives it. The server is registered as imagegen, and its illustration-builder skill grounds every piece in what your world already says and shows. Claude writes the prompt, the server renders it, Claude looks at the result and fixes what is wrong, and the finished file lands on disk ready to upload into Foundry.

What you can make

  • Item, spell, and feature icons. Twenty icons from one style line come back as one matching set. About 3 cents each.
  • Tokens. Top-down, full-body, cut to transparency, centred on a square so Foundry’s scale 1.0 is right: 512 px, or 1024 px for Large and bigger creatures. Humanoids face up at the camera; beasts are seen along the back. No shadow, and nothing ever clips off the edge: a render with a sword or wing cut by the frame is redone, and refused if it clips twice. Hand it one of your existing tokens as a style reference and new ones match the angle and look. About 3 cents each.
  • Token refreshes. Point it at an old, low-res token and it repaints it at higher quality while keeping the pose, silhouette, design, and colours your players know. It can also turn one creature into another in the same pose (a rat’s token into a squirrel).
  • Token redresses. Start from a token you already have as the prototype and change who it is: “make this a Sharran cleric, black armour, a morningstar instead of the club”. The pose, camera angle, and cut stay; the costume, gear, and figure change to match the actor it is now for. One stock token becomes the specific NPC in your world without a word of prompt about framing.
  • Token restyles. The same trick as battlemaps, for a whole bestiary. Tokens gathered from different packs (Immortal Nights, Forgotten Adventures, a few you drew yourself) do not match on one map. Hand it one token as the style reference and run the rest through, and they come back in one consistent look, each still recognisably the creature it was.
  • Props. Map dressing placed as tiles: furniture, barrels, trees, anvils. Seen straight down, object only, cut to transparency at the tile size (300 px per grid cell, from a footprint like "2x1"). Refreshing an existing prop returns it at the file’s exact pixel size in the same spot on its canvas, so it replaces the old one one for one.
  • Battlemap restyles. Repaint a map you bought (Tom Cartos, Mad Cartographer, anything) in one consistent painted style, with every wall, door, and object exactly where it was, so the walls and lights already traced over it in Foundry still fit. The result lands on the source’s own pixel grid. An old low-res map comes back at a whole-number upscale (a
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

"mcpServers": { "imagegen": { "command": "C:/Program Files/nodejs/node.exe", "args": ["/absolute/path/to/fvtt-mcp-imagegen/dist/index.js"] } }