本工具能够让Claude与OpenAI进行通信,并借助gpt-image-1生成图像资产。在游戏或网络开发场景中,当你需要输出单个资产时,该工具会发挥巨大作用。
此工具允许Claude与OpenAI通信,使用gpt-image-1生成图像资产,在游戏或网络开发需输出单个资产时非常实用。
gpt-image-1生成图像资产。⚠️ 重要提示
这需要一个组织,并且目前需要进行身份验证。
export API_KEY=sk-proj-....
jq --arg apiKey "$API_KEY" \
'.mcpServers = (.mcpServers // {}) |
.mcpServers["mcp-asset-gen"] = {
type: "stdio",
command: "npx",
args: ["mcp-asset-gen"],
env: { API_KEY: $apiKey }
}' ~/.claude.json > ~/.claude.tmp && mv ~/.claude.tmp ~/.claude.json
> 生成一个可用于我的街机游戏的小标志图像
我将为你的街机游戏生成一个标志。请提供更具体的描述(颜色、风格、游戏主题等)以获得更好的结果。
> 它应该看起来像旧式吃豆人机器(类似于木制街机机器)
⏺ mcp-asset-gen:generateImag(outputPathAbsolute: "/Users/jbrower/projects/mcp-asset-gen/arcade-logo.png", prompt: "An old school wooden arcade…
(MCP) machine logo in the style of Pacman, with retro colors and pixelated elements, top-down view of the cabinet,
nostalgic arcade gaming feel, vibrant colors against dark background", quality: "high", size: "1024x1024")
⎿ The image is now available at /Users/jbrower/projects/mcp-asset-gen/arcade-logo.png.
⏺ 已生成的街机标志保存到 /Users/jbrower/projects/mcp-asset-gen/arcade-logo.png