Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LANHU_AI_MODELNoModel name sent to the compatible AI service.
LANHU_FLOW_DIRNoDirectory for page-flow JSON files..lanhu/flows
LANHU_HEADLESSNoWhether Chromium runs headless for MCP calls.true
LANHU_AI_API_KEYNoOptional local environment variable for the AI API key. Takes precedence over the key file.
LANHU_TIMEOUT_MSNoTimeout for page and asset requests in milliseconds.30000
LANHU_AI_BASE_URLNoLocal OpenAI-compatible service base URL, for example `http://127.0.0.1:1234/v1`.
LANHU_AI_PROVIDERNoProvider identifier shown in the AI settings UI.custom
FIGMA_ACCESS_TOKENNoOptional Figma access token environment variable. Takes precedence over the token file.
LANHU_DOWNLOAD_DIRNoDirectory for downloaded assets.downloads
LANHU_PROJECT_ROOTNoBase path for resolving `.env`, `.auth`, and download directories. Defaults to the current directory.
FIGMA_STORAGE_STATENoFigma browser login state file. Defaults to using LANHU_STORAGE_STATE.
LANHU_AI_TIMEOUT_MSNoTimeout for AI optimization requests in milliseconds.30000
LANHU_STORAGE_STATENoPlaywright login state file for Lanhu..auth/storage-state.json
LANHU_AI_API_KEY_FILENoLocal AI API key file. May be omitted for local services without authentication..auth/ai-api-key
LANHU_AI_SETTINGS_FILENoAI settings file for the endpoint and model saved from the UI..auth/ai-settings.json
MOCKPLUS_STORAGE_STATENoMockplus browser login state file. Defaults to using LANHU_STORAGE_STATE.
FIGMA_ACCESS_TOKEN_FILENoFigma official API token file. When present, enables Figma API mode..auth/figma-api-token
LANHU_MAX_DOWNLOAD_BYTESNoMaximum size in bytes for a single downloaded asset (50 MiB by default).52428800
LANHU_DEFAULT_VIEWPORT_WIDTHNoDefault browser viewport width.1440
LANHU_BROWSER_EXECUTABLE_PATHNoOptional path to a Chrome/Chromium executable. Defaults to the Playwright bundled browser.
LANHU_DEFAULT_VIEWPORT_HEIGHTNoDefault browser viewport height.900

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
lanhu_open_flow_editorB

启动本机缩略图画布:选择真实蓝湖页面、拖拽画线、编辑模块/页面/跳转说明并保存为 AI 可读的本地流程。

lanhu_list_elementsB

从具体蓝湖设计标注页列出图层 ID、浏览器视口坐标和可见范围,供元素检查工具选择。

lanhu_inspect_elementA

点击指定图层 ID 或浏览器视口坐标,切换 Web/px 并读取右侧真实标注:位置、尺寸、字体、字重、字号、行高、字距、颜色和原文。可逐字段点击复制并核对,缺失字段不推测。禁止截图识别替代。

lanhu_inspect_elementsA

在同一个稳定蓝湖画布会话中按传入顺序读取多个图层的真实标注面板,返回字体 CSS、尺寸、原文、切片信息和相交图层堆叠关系;缺少任一图层时整批报错,不返回部分结果。

lanhu_read_pageC

读取蓝湖页面的标题、文本、链接、尺寸和资源摘要。

lanhu_capture_pageC

返回蓝湖页面的实际渲染 PNG,让视觉模型直接看到页面。

lanhu_list_assetsB

发现页面使用的图片、SVG、字体、背景和网络资源,便于选择图标下载。

lanhu_download_assetC

使用页面登录态把一个蓝湖图片、SVG 或字体资源保存到本地下载目录。

lanhu_open_pageC

一次返回蓝湖页面摘要、资源清单和 PNG 截图。

lanhu_list_projectsB

从已登录蓝湖首页提取可识别的项目链接;页面结构变化时返回 warnings。

lanhu_list_pagesA

从已登录蓝湖项目页面提取页面/画板链接。

lanhu_list_sidebarB

读取蓝湖设计页左侧分组、页面顺序、缩略图和可直接打开的页面链接。

lanhu_connect_pagesC

使用两个蓝湖页面各自的真实缩略图建立本地流程并保存说明;缺图或下载失败直接报错,禁止截图或其他图片替代。

lanhu_get_flowC

读取本地保存的页面连线,可选刷新蓝湖左侧页面元数据。

lanhu_get_flow_contextC

返回页面流程的 Mermaid 图和供 AI 使用的页面、跳转条件及自然语言说明。

design_list_pagesC

统一读取 Lanhu、Figma 或 Mockplus 的页面树和页面选择信息。

design_read_pageB

统一读取 Lanhu、Figma 或 Mockplus 页面摘要、链接和资源。

design_capture_pageC

统一返回 Lanhu、Figma 或 Mockplus 页面实际渲染截图。

design_list_assetsB

统一发现 Lanhu、Figma 或 Mockplus 页面使用的图片、SVG、字体和图标。

design_download_assetC

使用对应平台登录态把图片、SVG、字体或图标保存到本地。

design_connect_pagesC

使用 Lanhu、Figma 或 Mockplus 页面各自的真实缩略图建立本地流程;缺图或下载失败直接报错,禁止截图、文件封面或其他图片替代。

design_get_flowC

读取 Lanhu、Figma 或 Mockplus 的本地流程节点和连线。

design_get_flow_contextC

返回跨设计平台页面流程的 Mermaid 图和 AI 开发上下文。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.9/5.0

Scored across 23 tools

Disambiguation2/5

The surface is dominated by near-duplicate pairs where a platform-specific tool and a 'unified' tool do the same job: lanhu_list_pages/design_list_pages, lanhu_read_page/design_read_page, lanhu_capture_page/design_capture_page, lanhu_list_assets/design_list_assets, lanhu_download_asset/design_download_asset, lanhu_connect_pages/design_connect_pages, lanhu_get_flow/design_get_flow, lanhu_get_flow_context/design_get_flow_context. Nothing in the descriptions states a precedence rule (e.g. 'prefer design_* over lanhu_*'), so an agent cannot reliably choose between them. On top of that, lanhu_inspect_element vs lanhu_inspect_elements, and lanhu_open_page vs lanhu_read_page + lanhu_capture_page + lanhu_list_assets, create further overlap.

Naming Consistency4/5

Names follow a predictable snake_case prefix_verb_noun pattern with two clear namespace prefixes (lanhu_ and design_), which is easy to parse and machine-match. The main blemishes are the singular/plural sibling pair inspect_element/inspect_elements and the slightly off-pattern lanhu_open_flow_editor. Overall convention is stable rather than chaotic.

Tool Count2/5

At 23 tools the server is already at the heavy end, and roughly eight of those tools are duplicates of another tool in the same set, so the effective unique surface is closer to fifteen. The bulk is inflated by the parallel lanhu_*/design_* implementations rather than by distinct capabilities, which makes the set feel over-stuffed.

Completeness4/5

Coverage of the design-inspection domain is strong: project/page/sidebar listing, text and rendered capture, asset discovery and download, single and batch element inspection with real annotation panels, and flow creation/read/context plus a local flow editor. Remaining gaps are modest — there is no way to enumerate saved local flows, no delete/rename/disconnect operation for an existing flow edge, and no write-back of annotations to the design tool.