Skip to main content
Glama

generación de activos mcp

versión npm

Esta herramienta permite a Claude comunicarse con OpenAI y usar gpt-image-1 para generar recursos de imagen. Esto puede ser muy útil para el desarrollo de juegos o web, cuando se necesita imprimir recursos individuales.

Requisitos

  • Nodo

  • Una clave API de OpenAI

    • Tenga en cuenta que esto requiere una organización, con verificación de identidad en este momento.

Instalación

  1. Obtenga una CLAVE API del sitio web de OpenAI .

  2. Exportelo en su shell como API_KEY.

export API_KEY=sk-proj-....
  1. Luego, pega esto en ese mismo 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. ¡Listo! Pídele a Claude que te genere una imagen para algo y lo verás.

> 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

Available Tools

1 tool
generateImageD

Inputs: outputPathAbsolute (required), prompt (required), quality, size.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    D1.7/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion between tools. The tool's purpose is clearly implied by its name even without a description.

    Naming Consistency5/5

    Single tool uses a clear camelCase convention, and there are no other tools to introduce inconsistencies. The name is readable and follows a logical pattern.

    Tool Count2/5

    A single tool feels too few for a server called 'Asset Generator,' which implies a broader suite of asset-creation capabilities. This is under-scoped and likely limits practical use.

    Completeness1/5

    With only generateImage and no other operations, the server covers a tiny slice of asset generation. There is no way to handle other asset types or perform related tasks, making the surface severely incomplete for the stated domain.

    Related MCP Connectors

    Related MCP Servers