Skip to main content
Glama
lanhu-mcp
by xinayida

Lanhu MCP Server

Lanhu(蓝湖) 디자인 협업 플랫폼을 위한 MCP(Model Context Protocol) 서버

LLM과 AI 코딩 어시스턴트가 디자인 아트보드를 직접 검사하고, 픽셀 단위의 CSS 속성과 레이어 계층 구조를 추출하며, 내보낼 수 있는 에셋을 다운로드할 수 있게 해줍니다 — 비전 토큰 오버헤드 제로.

English • 简体中文


💡 Lanhu MCP가 필요한 이유는 무엇인가요?

AI 코딩 에이전트(Claude, Cursor, Copilot, Antigravity 등)로 UI 디자인을 구현할 때, 스크린샷을 전달하면 종종 다음과 같은 문제가 발생합니다:

  • 비전 모델의 높은 토큰 비용

  • 부정확한 위치, 추측에 의한 마진, 근사치에 불과한 색상

  • 환각으로 생성된 글꼴 크기와 줄 높이

  • SVG/이미지 에셋을 자동으로 추출하고 다운로드할 수 없는 문제

Lanhu MCP Server는 Lanhu의 구조화된 디자인 스펙을 직접 파싱하여 타입이 있는 데이터 트리로 변환합니다:

  • ⚡ 비전 토큰 오버헤드 제로: 무거운 스크린샷 대신 순수 JSON 구조화 데이터를 사용합니다.

  • 📐 픽셀 단위 정확도: 정확한 레이어 경계(x, y, width, height), 색상(HEX/RGBA), 타이포그래피(fontSize, fontWeight, fontFamily, lineHeight), 테두리 반경, 채우기, 테두리, 그림자.

  • 🎨 스마트 에셋 추출: 슬라이스 에셋을 자동으로 발견하고, 직접적인 CDN 다운로드 링크를 제공하며, 최신 WebP 또는 SVG 형식으로 무손실 변환을 지원합니다.

  • 🔄 탄력적인 인증: Playwright를 통한 헤드리스 토큰 자동 갱신과 지속적인 세션 관리를 지원합니다.


Related MCP server: mcp-lanhu

✨ 주요 기능

  • 팀 및 프로젝트 탐색: 팀, 워크스페이스 디자인 파일, 프로젝트를 원활하게 조회하고 검색합니다.

  • 아트보드 검사: 아트보드(screens) 목록, 썸네일 미리보기, 이름으로 화면 검색 기능을 제공합니다.

  • 심층 레이어 주석: 완전한 레이어 트리와 포괄적인 CSS/UI 스타일 속성을 재귀적으로 가져옵니다.

  • 에셋 파이프라인: SVG 벡터와 비트맵 이미지를 로컬 워크스페이스로 직접 다운로드합니다.

  • 자동 세션 유지: 헤드리스 Playwright 스크립트가 백그라운드에서 Lanhu 세션을 활성 상태로 유지하므로 반복적인 수동 로그인이 필요하지 않습니다.


📋 요구 사항

  • Python: >= 3.10

  • 패키지 매니저: uv (강력 권장)

  • MCP 클라이언트: Cursor, Claude Desktop, Claude Code, Antigravity, Windsurf, Cline, Codex, VS Code 또는 기타 MCP 호환 도구.


🚀 빠른 시작

1. uvx로 실행하기 (설치 불필요)

저장소를 복제하지 않고 lanhu-mcp를 직접 실행할 수 있습니다:

uvx --from git+https://github.com/xinayida/lanhu-mcp.git lanhu-mcp

2. 소스에서 실행

# Clone the repository
git clone https://github.com/xinayida/lanhu-mcp.git
cd lanhu-mcp

# Sync environment and dependencies
uv sync

# Run the server (stdio mode)
uv run lanhu-mcp

🔐 인증

Lanhu MCP는 브라우저 세션 쿠키를 사용해 lanhuapp.com에 연결합니다. ~/.lanhu/cookie 파일(파일 권한 0600)을 읽습니다.

방법 1: 자동 로그인 및 갱신 (권장)

포함된 Playwright 자동화 스크립트를 실행하세요:

uv run scripts/refresh_cookie.py
  • 이미 로그인된 경우: 헤드리스로 세션을 확인하고, 토큰을 갱신하여 ~/.lanhu/cookie에 저장합니다.

  • 세션 만료된 경우: 한 번의 로그인을 위해 Chrome 창을 자동으로 열어줍니다(SMS 코드 또는 비밀번호). 인증이 완료되면 세션을 저장하고 브라우저를 닫습니다.

예약 작업 팁: cron 작업에서 --headless-only를 사용하여 창을 띄우지 않고 주기적으로 쿠키를 갱신하세요:

uv run scripts/refresh_cookie.py --headless-only

방법 2: 채팅 도구로 동적 설정

AI 채팅에서 MCP 도구를 직접 호출하세요:

lanhu_set_cookie(cookie="session=...; user_token=...")

쿠키를 수동으로 얻으려면:

  1. Chrome에서 lanhuapp.com을 열고 DevTools를 엽니다(F12).

  2. Network 탭으로 이동하여 lanhuapp.com에 대한 요청을 클릭하세요.

  3. Request Headers에서 session과 user_token을 포함한 전체 Cookie 문자열을 복사하세요.

방법 3: 환경 변수

프로젝트 루트에 .env 파일을 만들거나 LANHU_COOKIE를 설정하세요:

cp .env.example .env
# Edit .env and set LANHU_COOKIE=session=...; user_token=...

🛠️ MCP 클라이언트 설정

선호하는 MCP 클라이언트에 lanhu-mcp 추가:

Cursor Settings -> MCP -> Add new MCP Server로 이동:

  • Name: lanhu

  • Type: command

  • Command:

    uvx --from git+https://github.com/xinayida/lanhu-mcp.git lanhu-mcp

또는 ~/.cursor/mcp.json을 설정:

{
  "mcpServers": {
    "lanhu": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/xinayida/lanhu-mcp.git", "lanhu-mcp"]
    }
  }
}

claude_desktop_config.json에 추가하세요(macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "lanhu": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/xinayida/lanhu-mcp.git", "lanhu-mcp"]
    }
  }
}

Claude Code CLI를 사용하세요:

claude mcp add lanhu uvx --from git+https://github.com/xinayida/lanhu-mcp.git lanhu-mcp

Antigravity 구성 또는 settings.json에 추가하세요:

{
  "mcpServers": {
    "lanhu": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/xinayida/lanhu-mcp.git", "lanhu-mcp"]
    }
  }
}

~/.codeium/windsurf/mcp_config.json에 추가하세요:

{
  "mcpServers": {
    "lanhu": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/xinayida/lanhu-mcp.git", "lanhu-mcp"]
    }
  }
}

cline_mcp_settings.json에 추가하세요:

{
  "mcpServers": {
    "lanhu": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/xinayida/lanhu-mcp.git", "lanhu-mcp"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

Codex CLI를 사용하여 추가하세요:

codex mcp add lanhu uvx "--from" "git+https://github.com/xinayida/lanhu-mcp.git" "lanhu-mcp"

또는 ~/.codex/config.toml을 편집하세요:

[mcp_servers.lanhu]
command = "uvx"
args = ["--from", "git+https://github.com/xinayida/lanhu-mcp.git", "lanhu-mcp"]

VS Code MCP 확장 또는 설정을 통해 추가하세요:

{
  "mcpServers": {
    "lanhu": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/xinayida/lanhu-mcp.git", "lanhu-mcp"]
    }
  }
}

🧰 사용 가능한 도구

도구 이름

설명

주요 매개변수

lanhu_set_cookie

인증 쿠키를 업데이트하고 ~/.lanhu/cookie에 저장

cookie: session 및 user_token을 포함하는 문자열

lanhu_get_teams

사용자 팀 목록 가져오기(인증 건강 확인 역할도 함)

(없음)

lanhu_get_projects

특정 팀의 디자인 프로젝트 가져오기

team_id: string

lanhu_search_projects

팀에서 키워드로 프로젝트 검색

team_id: string, keyword: string

lanhu_get_screens

프로젝트의 모든 아트보드/스크린 목록을 크기및 썸네일과 함께 나열

project_id: string, team_id: string

lanhu_search_images

키워드로 아트보드 검색

project_id: string, team_id: string, keyword: string

lanhu_get_annotations

⭐ 핵심 도구: 전체 레이어 트리, CSS 스타일, 타이포그래피 및 에셋 검색

project_id: string, image_id: string, team_id: string

lanhu_get_assets

다운로드 URL이 포함된 내보낼 수 있는 이미지/아이콘 에셋 가져오기

project_id: string, image_id: string, team_id: string

lanhu_download_asset

에셋을 로컬 디스크에 다운로드(WebP 무손실 / SVG / PNG 지원)

asset_id, asset_name, download_url, format, save_dir


🧭 일반적인 AI 페어 프로그래밍 워크플로우

Lanhu에서 AI 에이전트에게 UI 구현을 요청할 때:

User: "Please implement the checkout screen from our Lanhu project and download necessary icons."

에이전트는 다음 체인을 자율적으로 실행합니다:

graph LR
    A[1. lanhu_get_teams] --> B[2. lanhu_get_projects]
    B --> C[3. lanhu_get_screens]
    C --> D[4. lanhu_get_annotations]
    D --> E[5. Generate Code CSS/HTML/React/Flutter]
    D --> F[6. lanhu_download_asset]

도구 호출 예시

# 1. Fetch team list
teams = lanhu_get_teams()
team_id = teams[0]["id"]

# 2. Get project list
projects = lanhu_get_projects(team_id=team_id)
project_id = projects[0]["id"]

# 3. Get artboards list
screens = lanhu_get_screens(project_id=project_id, team_id=team_id)
image_id = screens[0]["id"]

# 4. Extract full annotations
annotations = lanhu_get_annotations(
    project_id=project_id,
    image_id=image_id,
    team_id=team_id
)

# 5. Download icons/slices
assets = lanhu_get_assets(project_id=project_id, image_id=image_id, team_id=team_id)
lanhu_download_asset(
    asset_id=assets[0]["id"],
    asset_name=assets[0]["name"],
    download_url=assets[0]["download_url"],
    format="webp" # or "svg"
)

📦 주석 데이터 구조

lanhu_get_annotations를 호출하면 구조화된 JSON이 반환됩니다:

{
  "id": "651234567890abcdef",
  "name": "Checkout Page",
  "width": 375.0,
  "height": 812.0,
  "thumbnail_url": "https://...",
  "layers": [
    {
      "id": "layer_01",
      "name": "Submit Button",
      "type": "rect",
      "bounds": { "x": 16.0, "y": 740.0, "width": 343.0, "height": 48.0 },
      "border_radius": 8.0,
      "opacity": 1.0,
      "visible": true,
      "fills": [
        { "type": "color", "color": "#0066FF", "opacity": 1.0 }
      ],
      "shadows": [
        { "x": 0.0, "y": 4.0, "blur": 12.0, "spread": 0.0, "color": "#0066FF33" }
      ],
      "children": [
        {
          "id": "layer_02",
          "name": "Button Label",
          "type": "text",
          "text": "Confirm & Pay",
          "bounds": { "x": 140.0, "y": 754.0, "width": 95.0, "height": 20.0 },
          "font": {
            "size": 16.0,
            "weight": "600",
            "family": "PingFang SC",
            "line_height": 20.0,
            "letter_spacing": 0.0,
            "color": "#FFFFFF",
            "text_align": "center"
          }
        }
      ]
    }
  ],
  "assets": [
    {
      "id": "asset_01:svg",
      "name": "icon_cart",
      "format": "svg",
      "download_url": "https://..."
    }
  ]
}

⚙️ 환경 변수

변수

선언된 기본값

설명

LANHU_COOKIE

(빈 값)

원시 쿠키 문자열 대체(session=...; user_token=...)

LANHU_DOWNLOAD_DIR

~/Downloads/lanhu_assets

다운로드한 에셋이 저장되는 디렉토리

LANHU_TIMEOUT

30

API HTTP 요청 제한 시간(초)

LANHU_LOG_LEVEL

INFO

로깅 수준(DEBUG, INFO, WARNING, ERROR)


⚠️ 고지

이 프로젝트는 교육, 테스트 및 AI 생산성 연구 목적으로 개발된 독립 오픈소스 도구입니다. 역공학된 갭인 웹 인터페이스를 통해 Lanhu와 상호 작용합니다. 이 도구를 사용할 때는 Lanhu의 서비스 약관을 준수하세요. 작성자는 오용에 대해 책임을 지지 않습니다.


📄 라이선스

이 프로젝트는 MIT License에 따라 라이선스가 부여됩니다.

Available Tools

9 tools
lanhu_download_assetA

下载指定的切图/图标到本地文件(位图默认自动转为 WebP 格式),返回保存路径。

需要先调用 lanhu_get_assets 获取资源的 download_url 等信息。

NameRequiredDescriptionDefault
formatNo文件格式:webp/svg/png(位图切图默认推荐 webp)webp
asset_idYes资源 ID(从 lanhu_get_assets 获取)
save_dirNo保存目录(可选,默认 ~/Downloads/lanhu_assets)
asset_nameYes资源名称,用作文件名
download_urlYes下载链接(从 lanhu_get_assets 获取)

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description bears the burden of behavioral disclosure. It does so by stating that the tool writes to a local file, converts bitmap assets to WebP by default, returns a saved path, and depends on a prior lanhu_get_assets call. It does not mention overwrite behavior or cookie/authentication requirements, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is two short sentences with no filler: the first packs action, conversion, and return value; the second gives the prerequisite. Both sentences earn their place and the key behavior is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple download tool with no output schema, the description covers the core return value and the mandatory upstream call, and the schema covers parameter semantics. Minor gaps remain around whether the save directory is auto-created and whether authenticated cookies are required, so it is complete but not exhaustive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter already has semantic documentation; the baseline is 3. The description only reinforces that download_url comes from lanhu_get_assets and restates the WebP default, adding no schema-independent parameter detail such as directory-creation or naming behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a concrete verb and resource ('download specified cutout/icon to local file') and names the outcome (returns the saved path). It also notes the WebP conversion, making the tool's purpose unmistakable and distinguishing it from sibling listing tools like lanhu_get_assets.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says to call lanhu_get_assets first to obtain download_url and other required asset information, which gives clear invocation sequencing. It does not explicitly state when not to use the tool or name alternative download paths, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lanhu_get_annotationsA

获取单张设计图的完整标注数据(最核心的工具)。

返回内容包含:

  • 所有图层的树形结构(位置、尺寸、颜色、字体、行高、圆角、阴影、边框等)

  • 文本图层的文字内容与字体样式

  • 可下载的切图/图标列表(含 download_url)

  • 画板尺寸与缩略图

NameRequiredDescriptionDefault
team_idYes团队 ID
image_idYes设计图 ID(从 lanhu_get_screens 获取)
project_idYes项目 ID

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

无注解,描述承担全部责任。它列出了返回内容(树形结构、切图列表、画板尺寸等),提供了行为信息,但未明确是否只读、是否需要认证、失败时返回什么、是否有速率限制。'获取'暗示读取操作,但未明确确认。返回内容细节是积极因素,但覆盖面有限。

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

描述使用一个短句和列表高效传递关键信息,避免冗余。返回内容分类清晰,结构良好。未超长,语言精炼。

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

考虑到工具复杂性(无输出schema),描述详细列出了返回的内容类别,涵盖主要使用所需信息。虽然未提及认证或错误处理,但兄弟工具中有lanhu_set_cookie,且参数描述已提示image_id来源,整体信息足以支持正确调用。欠缺的是使用场景和前提,但描述已相当完整。

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

输入schema中所有参数都有中文描述,覆盖率达100%,描述未额外解释参数含义,符合基线(schema已承担解释重任)。没有需要补偿的缺口,因此3分合适。

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

描述明确说明工具用途:获取单张设计图的完整标注数据,并详细列出了返回内容(图层树、文本、切图、画板尺寸),清晰区分于兄弟工具(如获取屏幕列表或资产)。动词'获取'配合'设计图标注数据',资源具体。

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

描述声称是'最核心的工具',但未明确指明何时使用它而非兄弟工具,也未提及前置步骤(如先获取团队/项目/屏幕ID)。没有排除用途或替代方案。参数描述中提供了一些来源信息,但描述本身未强化使用场景。

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lanhu_get_assetsB

获取设计图中所有可下载的切图/图标资源列表(含 svg/png 直链)。

NameRequiredDescriptionDefault
team_idYes团队 ID
image_idYes设计图 ID
project_idYes项目 ID

Output Schema

NameRequiredDescription
resultYes

TDQS

B3.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

没有提供任何注解,描述承担全部行为披露责任。它说明了返回的是可下载资源列表并包含直链,但对返回的格式、是否涉及认证、是否分页或限流等行为细节未作说明。虽然不矛盾,但信息有限,且没有注解补充,因此只能给予中等分数。

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

描述仅一句话,简洁明了,没有冗余。'所有可下载'和'svg/png 直链'这两个关键信息放在前半部分,符合前置要求。虽然缺少使用指南,但从简洁性角度看,句子组织高效。

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

工具较为简单,参数均有 schema 描述,且存在输出 schema,因此描述无需解释返回字段。但描述未提供任何使用上下文,如调用时机或与下载工具的关系,使得代理难以判断何时使用。整体而言,描述刚好覆盖核心功能,但缺少重要的使用指引,因此给出中等分数。

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

输入 schema 对所有三个必填参数提供了中文描述(团队 ID、设计图 ID、项目 ID),覆盖率 100%。描述文本未增加任何额外参数含义,因此依据标准,当 schema 已充分覆盖时,基础分为 3 是合适的。

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

描述明确说明工具的功能是获取设计图中所有可下载的切图/图标资源列表,并指出包含 svg/png 直链。动词'获取'和资源'资源列表'清晰,与兄弟工具中的下载工具(lanhu_download_asset)形成区分,但没有直接说明区别,因此未达到满分。

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

描述没有提供任何使用指南,比如何时使用此工具而非下载工具、是否需要先设置 cookie 或获得授权等。没有提及前置条件或替代方案,代理只能凭名称和描述猜测。

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lanhu_get_projectsB

获取团队下的设计项目列表。

NameRequiredDescriptionDefault
team_idYes团队 ID(从 lanhu_get_teams 获取)

Output Schema

NameRequiredDescription
resultYes

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It only states the action (get a list) without disclosing any behavioral traits such as pagination, ordering, or potential empty results. It does not go beyond the basic action, leaving the agent uninformed about call behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence that immediately conveys the purpose and scope. There is no wasted verbiage, and the essential dependency hint is embedded efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool is simple (one parameter, has output schema), the description is minimally sufficient. However, it omits mention of potential pagination, result limits, or error cases, and the dependency on a prior call is only hinted at in the schema, not in the main description. This leaves minor gaps for an agent to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the schema already explains team_id with the same '从 lanhu_get_teams 获取' note. The description adds no additional meaning beyond what the schema provides, so it meets the baseline for a well-covered parameter but does not exceed it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb '获取' (get) and the resource '设计项目列表' (design project list) scoped to a team. It distinguishes from lanhu_get_teams (which returns teams) but does not explicitly contrast with lanhu_search_projects, so it meets the clarity bar without full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a prerequisite hint by stating '从 lanhu_get_teams 获取' (obtained from lanhu_get_teams) for the team_id parameter, implying a dependency on that sibling tool. However, it does not offer explicit when-to-use versus lanhu_search_projects or any exclusions, leaving usage context partially implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lanhu_get_screensA

获取指定项目下的所有设计图(画板)列表,返回缩略图与尺寸信息。

NameRequiredDescriptionDefault
team_idYes团队 ID
project_idYes项目 ID(从 lanhu_get_projects 获取)

Output Schema

NameRequiredDescription
resultYes

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses the tool returns thumbnails and size information, which indicates a read operation. However, it does not explicitly state that it is read-only, any authentication requirements, pagination behavior, or error conditions. As a simple get-list operation, the basic transparency is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, front-loaded sentence that states the action, scope, and return value without any filler. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple list operation with two documented parameters and an output schema, the description is nearly complete. It states what is returned, and the schema covers parameter origins. Minor omissions like pagination or result limits are not critical for this low-complexity tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with both parameters documented. The description itself adds no additional parameter details beyond what the schema provides, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb '获取' (get) the list of all design images/artboards under a specified project, and specifies the returned data (thumbnail and size). It distinguishes itself from sibling tools by focusing on screens/artboards, not teams, projects, annotations, or assets.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to use this tool versus alternatives, nor exclusions. The schema hints that project_id comes from lanhu_get_projects, implying a prerequisite flow, but the description itself does not mention this. Usage is therefore only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lanhu_get_teamsA

获取当前登录用户所在的团队列表。也可用于验证认证是否有效。

NameRequiredDescriptionDefault

No parameters

Output Schema

NameRequiredDescription
resultYes

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the behavioral disclosure burden. It mentions a secondary behavior (auth validation), which hints at failure on invalid authentication. However, it does not specify prerequisites (e.g., setting a cookie via a sibling tool) or the exact behavior when authentication fails, and it does not explicitly state read-only semantics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two short sentences that front-load the primary purpose and append a useful secondary use. Every word earns its place, with no redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a parameterless getter, the description covers the core function and an extra use case. An output schema is present, so return values need not be described. The only minor gap is not stating that authentication must be configured first, but the auth-validation hint partially addresses this.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so the description has nothing to explain about parameter meaning. The baseline for 0-parameter tools is 4, and the description adds no unnecessary parameter information.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('获取' / get) and resource ('团队列表' / team list) for the current logged-in user, and adds a secondary purpose (verifying authentication validity). This clearly distinguishes it from sibling tools that operate on projects, screens, or assets.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly indicates when to use it (list teams and check auth validity), which is clear context. It does not explicitly name alternatives, but sibling tools target different resources, so the usage scenario is unambiguous without exclusion statements.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lanhu_search_imagesC

在指定项目中按名称关键词搜索设计图。

NameRequiredDescriptionDefault
keywordYes搜索关键词
team_idYes团队 ID
project_idYes项目 ID

Output Schema

NameRequiredDescription
resultYes

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must disclose behavioral characteristics. However, it only states the search intent and gives no indication of whether the operation is read-only, whether it requires prior cookie setup (e.g., lanhu_set_cookie), or any limits such as pagination or response size. The existing output schema is present but not referenced, so the description carries an insufficient burden.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that conveys the core purpose without redundancy. It is front-loaded with the action and resource. While it is minimal, it is appropriately concise for a straightforward search operation, though it could have been slightly more informative without losing conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple with three required parameters and a known output schema, so the description does not need to detail return values. However, because there are no annotations and no usage guidance, the description lacks the context an agent needs to decide when to invoke it and what to expect in terms of behavior (e.g., read-only nature, prior authentication via lanhu_set_cookie). The existing schema covers parameter definitions but not operational context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides descriptions for all three parameters (keyword, team_id, project_id) at 100% coverage, so the baseline is 3. The description does not add any specific semantic detail beyond what the schema already provides, but that is acceptable given the coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (search) and the resource (design images) with a scoping condition ('in the specified project') and the search criterion (by name keyword). It is specific enough to distinguish from sibling tools like lanhu_search_projects, though it does not explicitly name alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given for when to use this tool versus alternatives. The description does not state conditions, prerequisites, or mention other search tools like lanhu_search_projects. The agent is left to infer context from the sibling list, which is not dependable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lanhu_search_projectsB

在团队下按名称关键词搜索项目。

NameRequiredDescriptionDefault
keywordYes搜索关键词
team_idYes团队 ID(从 lanhu_get_teams 获取)

Output Schema

NameRequiredDescription
resultYes

TDQS

B3.1/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

没有提供注释,因此描述承担全部行为披露责任。描述仅说‘按名称关键词搜索’,但未透露搜索是否匹配子串、是否分页、返回数量限制、是否可能无结果或失败模式等。对于一个搜索工具,缺少这些行为细节可能让代理产生错误预期。

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

一行简洁的描述,直接陈述核心功能,无冗余信息。信息前置且易于理解。

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

工具简单且有输出模式,但缺少关于搜索行为(如大小写、模糊性、结果排序)的说明。对于基本使用可能足够,但未覆盖所有代理可能需要的执行细节,尤其没有注释的情况下。

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

输入模式覆盖率为100%,两个参数均有说明。描述中‘按名称关键词’重复了 keyword 参数的含义,但未增添新语义。由于模式已完整,基线为3,描述未提供额外价值。

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

描述明确说明了工具的作用:在团队下(team_id)按名称关键词(keyword)搜索项目。动词具体(搜索),对象清楚(项目),且与兄弟工具(如 lanhu_get_projects)区分明确。

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

描述未提供任何使用场景或与其他工具的对比。未说明何时用搜索而非获取项目列表,也未提及排除条件或前置要求。虽然参数架构中提及 team_id 来自 lanhu_get_teams,但这不算是使用指南,仅是参数说明。

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 9 tool updatesv0.1.0
    • First observedlanhu_download_asset
    • First observedlanhu_get_annotations
    • First observedlanhu_get_assets
    • First observedlanhu_get_projects
    • First observedlanhu_get_screens
    • First observedlanhu_get_teams
    • First observedlanhu_search_images
    • First observedlanhu_search_projects
    • First observedlanhu_set_cookie

TDQS

A3.6/5.0

Scored across 9 tools

Disambiguation3/5

Several tools have overlapping retrieval surfaces: get_projects vs search_projects and get_screens vs search_images are list-vs-search pairs, and get_annotations already includes downloadable assets that get_assets re-exposes. Descriptions clarify the intended use, but an agent could still select a broader tool when a narrower one is needed.

Naming Consistency5/5

All tools share the lanhu_ prefix and follow a consistent verb_noun snake_case pattern (set_, get_, search_, download_), with no mixed conventions or vague generic names.

Tool Count5/5

9 tools is well-scoped for a design-handoff/annotation server: auth, team/project navigation, screen listing, annotation retrieval, and asset download each have a focused tool.

Completeness4/5

The read-only workflow is well covered: authenticate, navigate teams/projects/screens, fetch annotations, and download assets. Minor gaps such as no direct get-by-id for a single project/screen (relying on list/search) and the redundant asset list inside get_annotations keep it from a perfect score.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables AI coding tools to read Lanhu design data and automate Design to Code, including project browsing, layer tree extraction, DDS semantic components, and code generation.
    14
    55 npm
    4
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI coding assistants to directly access Lanhu design drafts, generate frontend code, parse PRDs, and download design assets.
    3
    254 npm
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI assistants to read Lanhu design collaboration content: extracting and analyzing Axure prototype pages, downloading UI designs and slices, and converting design specs into HTML+CSS for implementation. It also provides a shared team message board so multiple AI tools can reuse requirement analyses and knowledge across projects.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to read Lanhu design specs — layer trees with per-layer CSS, screenshots, downloadable slices, and review comments — so they can restore UI and generate React/Vue/mini-program code without manual measuring or asset hunting.
    MIT