mcp-자산-생성
이 도구를 사용하면 Claude가 OpenAI와 통신하고 gpt-image-1 사용하여 이미지 에셋을 생성할 수 있습니다. 이는 게임이나 웹 개발에서 개별 에셋을 출력해야 할 때 매우 유용합니다.
요구 사항
마디
OpenAI API 키
이 작업에는 조직이 필요하며, 현재는 신분 확인이 필요합니다.
설치
OpenAI 웹사이트 에서 API 키를 받으세요.
셸에서 API_KEY로 내보내세요.
지엑스피1
그런 다음, 같은 셸에 다음을 붙여넣습니다.
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
완료! 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