Skip to main content
Glama

mcp-资产生成

npm 版本

此工具允许 Claude 与 OpenAI 通信,并使用gpt-image-1生成图像资源。这对于游戏或 Web 开发中需要打印单个资源时非常有用。

要求

  • 节点

  • OpenAI API 密钥

    • 请注意,这需要一个组织,目前具有身份验证。

安装

  1. OpenAI 网站获取 API KEY。

  2. 将其作为 API_KEY 导出到您的 shell 中。

export API_KEY=sk-proj-....
  1. 然后,将其粘贴到同一个 shell 中:

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
  1. 大功告成!让 Claude 为你生成一个图像,你会看到

> generate a small logo image that i could use for my arcade game

 I'll generate a logo for your arcade game. Please provide a more specific description of what you'd like to see in the logo (colors, style,
  game theme, etc.) for better results.

> It should look like an old school pacman machine (liek a wooden arcade machine)

⏺ 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.

⏺ Generated arcade logo saved to /Users/jbrower/projects/mcp-asset-gen/arcade-logo.png
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jbrower95/mcp-asset-gen'

If you have feedback or need assistance with the MCP directory API, please join our Discord server