Labnana MCP
v2.2.0Generate and edit images with Labnana through a local MCP server with MCP Apps previews.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_subscription 获取订阅信息与积分余额
获取当前 API Key 账户的订阅状态、可用积分(月度/永久/限时)、免费额度(freeUsages)与重置时间。
estimate_credits 预估图片生成所需积分
根据模型、尺寸、宽高比等参数预估生成图片所需的积分。同步返回,不实际生成图片、不扣除积分。适合在批量生成或使用 4K 前先确认成本。
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
imageConfig | object | |
model | string | 图片生成模型,默认 gemini-3-pro-image。选择建议:gemini-3-pro-image 综合最强、指令遵循和文字渲染好(15 积分/1K-2K);gemini-3.1-flash-image 快速便宜的日常生æ… |
referenceImages | array | 图生图 / 改图的参考图片,支持 fileUri(gs:// 或 https://)或 base64 inlineData |
generate_image 生成图片
文生图 / 图生图 / 改图的一站式工具:默认保存完整原图,同时返回有大小上限的 MCP 图片预览、结构化元数据和 JSON 文本兜底。大图(4K)会自动走异步任务并在内部等待完成,无需手动轮询。支持 Gemini 系列、GPT-Image-2 / 2.5、Wan2.7、Seedream 5.0 Pro,模型由 model 参数选择,无需指定提供商。
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
imageConfig | object | |
model | string | 图片生成模型,默认 gemini-3-pro-image。选择建议:gemini-3-pro-image 综合最强、指令遵循和文字渲染好(15 积分/1K-2K);gemini-3.1-flash-image 快速便宜的日常生æ… |
outputMode | string | 结果返回方式:hybrid(默认)保存原图并内联有界预览,跨客户端兼容性最好;file 只保存原图并返回定位信息;inline 不保存到 saveDir,有 URL 时返回有ç… |
referenceImages | array | 图生图 / 改图的参考图片,支持 fileUri(gs:// 或 https://)或 base64 inlineData |
saveDir | string | hybrid/file 模式下的保存目录,默认取 LABNANA_OUTPUT_DIR 或当前目录下的 labnana-images/ |
timeoutSeconds | integer | 生成总超时秒数,默认 300(仅 4K 等异步路径需要等待时生效) |
list_generation_tasks 获取图片生成任务列表
按创建时间倒序返回当前 API Key 用户的图片生成任务历史,可按状态过滤。
| Parameter | Type | Description |
|---|---|---|
page | integer | 页码,默认 1 |
pageSize | integer | 每页数量,默认 20 |
status | string | 按状态过滤:pending / generating / success / fail |
get_generation_task 获取图片生成任务详情
查询图片生成任务状态与结果。任务成功时返回统一结构化 envelope、有界 MCP 图片预览和原图 URL。generate_image 等待超时后可用返回的 taskId 在这里取回结果。
| Parameter | Type | Description |
|---|---|---|
taskId * | string |