DreamLayer image tools
@dreamlayer/mcp
MCP 호환 AI 클라이언트를 위한 이미지 생성 및 편집 도구로, DreamLayer Agent API를 기반으로 합니다.
클론할 것도, 빌드할 것도 없습니다.
설치
클라이언트에 추가하세요. Claude Code:
claude mcp add dreamlayer --env DREAMLAYER_API_KEY=dlr_live_your_key -- npx -y @dreamlayer/mcpCodex:
codex mcp add dreamlayer --env DREAMLAYER_API_KEY=dlr_live_your_key -- npx -y @dreamlayer/mcpCursor 또는 기타 stdio MCP 클라이언트:
{
"mcpServers": {
"dreamlayer": {
"command": "npx",
"args": ["-y", "@dreamlayer/mcp"],
"env": { "DREAMLAYER_API_KEY": "dlr_live_your_key" }
}
}
}키는 서버 자체 환경에 있어야 합니다. MCP 클라이언트는 이 서버를 하위 프로세스로 실행하므로, 셸에서 내보낸 키는 서버에 도달하지 않습니다. 이것이 가장 흔한 설정 실패이며, 서버는 손상된 상태로 시작하는 대신 설명과 함께 종료됩니다.
키는 platform.dreamlayer.io에서 받으세요. 새 계정은 0크레딧으로 시작하며, 완성된 이미지 하나당 1크레딧이 소요됩니다.
Related MCP server: Dreamshot MCP Server
도구
도구 | 기능 |
| 이 키가 실행할 수 있는 계약과 작업을 읽습니다. 비용이 들지 않습니다. |
| PNG, JPEG, WebP 또는 카메라 RAW(최대 200MB)를 업로드하고 |
| 생성 또는 편집. 이벤트 스트림을 반환합니다. |
| 단일 실행의 표준 상태를 읽습니다. |
| 중단 후 마지막 이벤트 ID부터 스트림을 재개합니다. |
| 디스패치 전에 취소합니다. |
작업
operation을 생략하면 DreamLayer가 프롬프트를 읽고, 명확화 질문을 반환할 수 있습니다. 이름을 지정하면 해당 추론은 완전히 건너뜁니다.
| 이미지 필요 | 결과 |
| 아니요 | 프롬프트에서 새 이미지 생성 |
| 예 | 설명대로 편집된 참조 이미지 |
| 예 | 투명 배경 위의 피사체 |
| 예 | 가로와 세로가 두 배 |
upscale은 각 변을 두 배로 늘리며 완성된 이미지는 변당 4096으로 제한되므로, 입력의 가장 긴 변은 2048 이하여야 합니다. 더 큰 이미지는 크레딧을 소모하기 전에 거부됩니다.
알아두면 좋은 동작
질문은 실패가 아닙니다. 모호한 프롬프트는 needs_input으로 끝나는 question 이벤트를 반환합니다. respond와 conversation_id를 사용하여 dreamlayer_generate를 다시 호출해 답하세요.
키를 재사용하면 재시도가 안전합니다. idempotency_key가 자동 생성됩니다. 불확실한 응답 후 재시도할 때 동일한 키를 다시 전달하면 원래 결과가 재생되어 두 번 지불하지 않습니다.
긴 실행은 잘리지 않고 유지됩니다. 256개 이상의 이벤트가 있는 스트림은 현재까지의 내용을 반환하고 truncated로 표시하며, 재개할 execution_id와 마지막 이벤트 ID를 제공합니다.
요구 사항
Node.js 22.12 이상.
라이선스
MIT. LICENSE 및 NOTICE를 참조하세요.
Available Tools
7 toolsdreamlayer_balanceARead-onlyIdempotent
Use before paid image work to check available credits for this API key. Returns promotional, purchased, available and credit_usd. Compare the complete rounded quote against available; separately rounded buckets may sum to 0.1 less. Costs no credits and does not buy credits. Resolve authentication or balance errors before generation.
Inputs: no named parameters. Returns: error, available, purchased, credit_usd, +1 more
dreamlayer_capabilitiesARead-onlyIdempotent
Use before choosing an image operation or quoting a sprite job. Read supported operations, input limits and sprite_pricing for this API key. Returns the current API contract; no image input, generation or credits required. Do not use this to create an asset.
Inputs: no named parameters. Returns: error, operations, api_version
dreamlayer_downloadA
Use when an existing execution completed or a previous download failed. Requires execution_id and an absolute new local path. Saves the finished image or sprite ZIP and returns path/bytes; starts no generation and spends no new credits. Never overwrites. For output_not_ready check status; for local_output_failed repair the path and download the same execution.
Inputs: path (required), execution_id (required). Returns: path, bytes, error
dreamlayer_eventsARead-onlyIdempotent
Use to resume running work or a dropped stream without another generation charge. Requires execution_id; pass the last_event_id actually processed. Returns bounded events, status and recovery cursor. If still running or rate-limited, back off before polling again. Do not repeatedly call in a tight loop or submit replacement work.
Inputs: execution_id (required), last_event_id. Returns: asset, error, events, status, +3 more
dreamlayer_executionARead-onlyIdempotent
Use after a timeout, rate limit or uncertain result to read the existing execution's canonical status. Requires execution_id; costs no credits. Returns state and result details, not a newly generated image. If running, wait and resume events; if completed, download. Do not replace an uncertain paid job.
Inputs: execution_id (required). Returns: error, status, image_job, execution_id
dreamlayer_generateA
Use when the user needs an original image, raster logo concept, product or marketing visual, an edit, transparent cutout, upscale, or reference-based sprite animation. Starts paid work within the user's authorized scope and budget. Text-to-image needs a prompt; other operations need input_asset_id. Select operation explicitly. Image operations cost one credit; sprite beta accepts 7–100 frames and returns a ZIP. Read sprite_pricing, round the whole quote upward once to 0.1 credit and set max_credits. Returns execution_id, status, asset, question and last_event_id. needs_input is a question; running work must be resumed, not replaced. No sprite cancellation; failed/expired holds are restored. Not a vector-logo, print-validation, product-fidelity or animation-quality guarantee.
Inputs: prompt, options, respond, operation, +5 more. Returns: asset, error, events, status, +3 more
dreamlayer_upload_imageA
Use when an edit, background removal, upscale or sprite animation needs a local reference. Requires an absolute path to PNG, JPEG, WebP or supported camera RAW, up to 200 MB. Uploads that file and returns input_asset_id; starts no paid work. Reuse the asset ID for recovery. Not needed for text-to-image. If upload fails, fix the input or retry upload only.
Inputs: path (required). Returns: error, expires_at, input_asset_id
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools are clearly distinct: balance, capabilities, generate, upload_image, and download each have a single obvious purpose. The only potential confusion is between execution and events, since both take an execution_id and serve post-generation recovery, but their descriptions separate status checking from stream resumption well.
All tools share the dreamlayer_ prefix and snake_case style, but the naming pattern is inconsistent: balance, capabilities, events, and execution are nouns, while download, generate, and upload_image are verbs or verb_noun. It remains readable and predictable in prefix, but not a uniform verb_noun convention.
Seven tools is a well-scoped set for a paid async image generation workflow. Each tool covers a necessary stage—checking credits, reading contract terms, uploading inputs, generating, checking status, resuming streams, and downloading results—without bloat.
The lifecycle is well covered: billing check, capability discovery, upload, generation, status retrieval, event resumption, and download. Minor gaps exist around asset management and cancellation, but the descriptions indicate these are either unnecessary or unsupported rather than critical missing operations.
Maintenance
Related MCP Connectors
Generate AI images and videos from any compatible MCP client.
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
Generate AI videos, images, music, and speech from any MCP client
Generate AI video, images and audio, and browse your history, from any MCP client.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables image generation and multi-turn editing sessions using the Gemini API within MCP-compatible environments. Users can create, modify, and configure images through natural language commands, supporting features like aspect ratio adjustments and session-based image transformations.5ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI image and video generation using Dreamshot's API, supporting tools like image editing, video creation, and enhancement directly from MCP-compatible clients.MIT
- AlicenseNot gradedqualityCmaintenanceEnables coding agents and other MCP clients to generate images from text prompts and edit, restyle, or extend existing images through an OpenAI-compatible /v1/images API. Results are returned both inline as image content blocks and as files saved to disk, so agents can view and reuse them within a normal task.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables generating and editing images from any MCP client by rewriting requests into detailed prompts and routing them to Gemini, OpenAI, or BytePlus Seedream, with configurable quality presets, aspect ratios, and image sizes. Results are saved to disk and returned to the assistant as MCP resources.1,225 npmMIT