Skip to content

Tags: dsphper/lanhu-mcp

Tags

v1.7.0

Toggle v1.7.0's commit message
Release v1.7.0

Features:
- Extract Axure annotations with native positions (#109)

v1.6.2

Toggle v1.6.2's commit message
v1.6.2: MCP config hints respect SERVER_PORT in .env

v1.6.1

Toggle v1.6.1's commit message
v1.6.1: clearer error when PRD URL lacks docId

v1.6.0

Toggle v1.6.0's commit message
Release v1.6.0

Features:
- Add stdio launcher for MCP clients (stdio transport)
- Support Figma artboard format and improved URL parsing
- Add health check endpoint and transport configuration
- Add lanhu_list_product_documents for project-wide PRD discovery
- Add design sector metadata to design lists

Fixes:
- Replace slashes in design names to avoid path issues
- Extract Photoshop slices from assets and generate scale URLs

v1.5.3

Toggle v1.5.3's commit message
fix: SERVER_PORT 默认值从 8100 改为 8000,与 docker-compose.yml 保持一致

Made-with: Cursor

v1.5.2

Toggle v1.5.2's commit message
fix: 修复 Figma 切图提取逻辑,过滤图片填充层,修正尺寸计算和命名规范

v1.5.1

Toggle v1.5.1's commit message
v1.5.1: fix Figma 切图提取逻辑

v1.5.0

Toggle v1.5.0's commit message
feat: 切图下载支持多倍图 (1x/2x/3x + iOS/Android 全套)

- 新增 _build_scale_urls,基于 OSS image/resize 生成全平台多倍图 URL
- 每个 slice 返回 scale_urls(11 个倍率)和 logical_size 字段
- AI workflow guide 要求先询问用户平台/倍率偏好再下载

v1.4.0

Toggle v1.4.0's commit message
Lanhu MCP v1.4.0

v1.3.0

Toggle v1.3.0's commit message
v1.3.0 - Post-generation fidelity audit (STEP 5)

Add mandatory post-generation fidelity audit to lanhu_get_ai_analyze_design_result.

New features:
- RULE 5 in tool docstring: platform-agnostic fidelity checklist exposed to MCP clients
- STEP 5 in runtime prompt: returned on every design analysis call, guiding AI to
  perform a property-by-property comparison after code generation

Audit covers 10 items across HTML/CSS, Flutter, SwiftUI, Compose, Android:
  ① Size constraints (height vs min-height / SizedBox vs Flexible)
  ② Clipping (overflow:hidden / ClipRect / .clipped())
  ③ Color value precision (rgba → platform format without drift)
  ④ Gradient preservation (no degradation to solid color)
  ⑤ Absolute positioning coordinates
  ⑥ Font family, weight, size
  ⑦ Spacing (margin/padding all directions)
  ⑧ Image assets (no SVG/emoji/placeholder substitution)
  ⑨ Element completeness
  ⑩ No remote CDN URLs in final code