MagicLayers
Convert PNG, JPEG, and WebP images into editable layered Photoshop PSDs.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"magiclayers": {
"url": "https://magiclayers.app/mcp"
}
}
}远程端点
https://magiclayers.app/mcpstreamable-http它能做什么
工具清单
工具(8)
🟢doctor
Read the current MagicLayers quote configuration and payment availability.
输入模式
{
"type": "object",
"properties": {}
}输出模式
{
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"status": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"code",
"message",
"status"
],
"additionalProperties": false
}
},
"required": [
"ok"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢prepare_conversion
Reserve a private task reference before submitting an image. Keep task_ref for follow-up tools and retries. Treat it as a password and never show it in the chat. This creates no task or payment.
输入模式
{
"type": "object",
"properties": {}
}输出模式
{
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"status": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"code",
"message",
"status"
],
"additionalProperties": false
}
},
"required": [
"ok"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟡convert(file, image_base64, task_ref, email, locale, ...)
Submit one PNG, JPEG or WebP (up to 30 MiB) for editable image layers or automatic spot-color separations. Use the attached original image. Set dry_run to validate it without submission. A real submission locks a quote and does not charge the customer.
输入模式
{
"type": "object",
"properties": {
"file": {
"description": "One original image attached by the client.",
"type": "object",
"properties": {
"download_url": {
"type": "string",
"maxLength": 8192
},
"file_id": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"mime_type": {
"type": "string",
"maxLength": 128
},
"file_name": {
"type": "string",
"maxLength": 255
}
},
"required": [
"download_url",
"file_id"
]
},
"image_base64": {
"description": "Original image bytes encoded by the client for direct integrations. Use exactly one image input.",
"type": "string",
"minLength": 4,
"maxLength": 41943040
},
"task_ref": {
"description": "Required for submission. Use the private reference from prepare_conversion and reuse it after an uncertain result.",
"type": "string",
"pattern": "^mltask1_[A-Za-z0-9_-]{16}\\.[A-Za-z0-9_-]{160}$"
},
"email": {
"description": "Optional delivery notification address.",
"type": "string",
"format": "email",
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"locale": {
"default": "en-US",
"type": "string",
"minLength": 2
},
"time_zone": {
"type": "string",
"maxLength": 100
},
"browser_language": {
"type": "string",
"maxLength": 128
},
"print": {
"default": false,
"description": "Create automatic spot separations instead of editable layers.",
"type": "boolean"
},
"print_settings": {
"description": "Original explicit ink settings for a retry of an existing print task.",
"anyOf": [
{
"type": "object",
"properties": {
"process": {
"type": "string",
"const": "spot-screen"
},
"substrate": {
"type": "string",
"const": "white"
},
"dpi": {
"type": "number",
"const": 300
},
"palette": {
"type": "string",
"const": "auto"
}
},
"required": [
"process",
"substrate",
"dpi",
"palette"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"process": {
"type": "string",
"const": "spot-screen"
},
"substrate": {
"type": "string",
"const": "white"
},
"dpi": {
"type": "integer",
"minimum": 72,
"maximum": 1200
},
"inks": {
"minItems": 1,
"maxItems": 12,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"pattern": "^[^/\\\\\\u0000-\\u001f]+$"
},
"hex": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
}
},
"required": [
"name",
"hex"
],
"additionalProperties": false
}
}
},
"required": [
"process",
"substrate",
"dpi",
"inks"
],
"additionalProperties": false
}
]
},
"dry_run": {
"default": false,
"description": "Validate the image and inputs without creating a task or payment.",
"type": "boolean"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"status": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"code",
"message",
"status"
],
"additionalProperties": false
}
},
"required": [
"ok"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢checkout(task_id, task_ref)
Return a private MagicLayers checkout link, valid for one hour. Show the link to the user who submitted the task so they can pay with Stripe and open the task in their browser.
输入模式
{
"type": "object",
"properties": {
"task_id": {
"description": "The compact or full UUIDv7 returned by MagicLayers.",
"type": "string"
},
"task_ref": {
"description": "The private task reference. Omit only when the MCP client supplies task authorization in its HTTP header.",
"type": "string",
"pattern": "^mltask1_[A-Za-z0-9_-]{16}\\.[A-Za-z0-9_-]{160}$"
}
},
"required": [
"task_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"status": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"code",
"message",
"status"
],
"additionalProperties": false
}
},
"required": [
"ok"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢payment(task_id, task_ref)
Read the last verified financial state for one private MagicLayers task.
输入模式
{
"type": "object",
"properties": {
"task_id": {
"description": "The compact or full UUIDv7 returned by MagicLayers.",
"type": "string"
},
"task_ref": {
"description": "The private task reference. Omit only when the MCP client supplies task authorization in its HTTP header.",
"type": "string",
"pattern": "^mltask1_[A-Za-z0-9_-]{16}\\.[A-Za-z0-9_-]{160}$"
}
},
"required": [
"task_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"status": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"code",
"message",
"status"
],
"additionalProperties": false
}
},
"required": [
"ok"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}⚪verify_payment(task_id, task_ref)
After the user finishes Stripe checkout, verify it with Stripe and activate the paid task. Use the original task reference.
输入模式
{
"type": "object",
"properties": {
"task_id": {
"description": "The compact or full UUIDv7 returned by MagicLayers.",
"type": "string"
},
"task_ref": {
"description": "The private task reference. Omit only when the MCP client supplies task authorization in its HTTP header.",
"type": "string",
"pattern": "^mltask1_[A-Za-z0-9_-]{16}\\.[A-Za-z0-9_-]{160}$"
}
},
"required": [
"task_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"status": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"code",
"message",
"status"
],
"additionalProperties": false
}
},
"required": [
"ok"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢status(task_id, task_ref)
Read the processing and delivery state of one private MagicLayers task.
输入模式
{
"type": "object",
"properties": {
"task_id": {
"description": "The compact or full UUIDv7 returned by MagicLayers.",
"type": "string"
},
"task_ref": {
"description": "The private task reference. Omit only when the MCP client supplies task authorization in its HTTP header.",
"type": "string",
"pattern": "^mltask1_[A-Za-z0-9_-]{16}\\.[A-Za-z0-9_-]{160}$"
}
},
"required": [
"task_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"status": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"code",
"message",
"status"
],
"additionalProperties": false
}
},
"required": [
"ok"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢download(task_id, task_ref, kind)
Get a private short-lived download link, byte count and SHA-256 for a completed and paid task. Defaults to the delivery package.
输入模式
{
"type": "object",
"properties": {
"task_id": {
"description": "The compact or full UUIDv7 returned by MagicLayers.",
"type": "string"
},
"task_ref": {
"description": "The private task reference. Omit only when the MCP client supplies task authorization in its HTTP header.",
"type": "string",
"pattern": "^mltask1_[A-Za-z0-9_-]{16}\\.[A-Za-z0-9_-]{160}$"
},
"kind": {
"default": "package",
"type": "string",
"enum": [
"package",
"psd",
"preview"
]
}
},
"required": [
"task_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"data": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"status": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"code",
"message",
"status"
],
"additionalProperties": false
}
},
"required": [
"ok"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}社区
证据