Skip to main content
Glama
xinayida
by xinayida

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

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": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
lanhu_set_cookieA

设置蓝湖认证 Cookie(并持久化到 ~/.lanhu/cookie)。

一般无需手动调用:Cookie 文件由 scripts/refresh_cookie.py 自动维护, MCP 启动时自动读取。仅在自动刷新不可用时,才需要从浏览器手动复制: DevTools → Network → 任一 lanhuapp.com 请求 → Request Headers → 复制完整 Cookie 头(须含 session 和 user_token)→ 传给本工具。 设置后可调用 lanhu_get_teams 验证是否生效。

lanhu_get_teamsA

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

lanhu_get_projectsB

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

lanhu_search_projectsB

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

lanhu_get_screensA

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

lanhu_get_annotationsA

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

返回内容包含:

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

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

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

  • 画板尺寸与缩略图

lanhu_search_imagesC

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

lanhu_get_assetsB

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

lanhu_download_assetA

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

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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xinayida/lanhu-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server