lanhu-design-mcp

v0.2.0
io.github.blantian/lanhu-design-mcp Checked 3 days ago Published 4 months ago

Read Lanhu design specs and export fine-grained UI assets with platform-adjusted units

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lanhu_health_check Lanhu Health Check

返回本地配置状态,不访问网络且不暴露 Cookie 值。

lanhu_get_designs Lanhu Get Designs

获取项目的所有设计图列表。

ParameterTypeDescription
url *stringLanhu stage/detailDetach design URL.

lanhu_analyze_design Lanhu Analyze Design

分析指定设计稿并返回平台调整后的 UI 结构。

ParameterTypeDescription
url *stringLanhu stage/detailDetach design URL.
design_name_or_indexDesign exact name, list index, image_id, or omitted when URL contains image_id.
target_platformstringOutput platform: web/android/ios/wechat_miniprogram.

lanhu_get_design_assets Lanhu Get Design Assets

返回完整设计图与细粒度可下载切图资源。

ParameterTypeDescription
url *stringLanhu stage/detailDetach design URL.
design_name_or_indexDesign exact name, list index, image_id, or omitted when URL contains image_id.
target_platformstringOutput platform: web/android/ios/wechat_miniprogram.

lanhu_export_ui_context Lanhu Export Ui Context

返回包含资产和分析的完整 Agent UI 还原上下文。

ParameterTypeDescription
url *stringLanhu stage/detailDetach design URL.
design_name_or_indexDesign exact name, list index, image_id, or omitted when URL contains image_id.
target_platformstringOutput platform: web/android/ios/wechat_miniprogram.

lanhu_auth_login Lanhu Auth Login

打开专属 Chrome Profile 进行交互式 Lanhu 登录。

lanhu_auth_status Lanhu Auth Status

报告托管认证状态,不含凭据信息。

ParameterTypeDescription
session_id

lanhu_auth_logout Lanhu Auth Logout

登出并删除托管 Profile,需要 confirm=true 确认。

ParameterTypeDescription
confirmboolean