
HeyBeauty MCP 虚拟尝试服务器
概览
这是基于TypeScript的MCP服务器,使用HeyBeauty API执行虚拟尝试. 它通过提供: - 以URI和元数据代表服装的资源 - 提交尝试任务和查询任务信息的工具。 - 点心布 2. 将服务器配置添加到 MCP 客户端配置文件 - 通过布单列出和取用衣服 URIs - 每个布有ID,名称,描述,图像url和元数据 - 简单内容访问的普通文本 mime 类型 - 提交 tryon task - 提交尝试任务 - 按要求参数使用用户图像 url, bub 图像 url, bub id and bub 描述 - 服务器状态中的存储尝试任务 - 查询 tryon task - 查询尝试任务 - 按要求参数使用任务 id - 返回尝试任务信息 - trion load - Tryon book - 按需要参数使用用户图像 url,布图像 url,布 id和布描述 - 返回 LLM trion 的结构化快取 -布 – 衣服的URI - 每件布都有一个ID,名称,描述,......
概述(AI 翻译)
嘿 美丽虚拟尝试
这是基于TypeScript的MCP服务器,使用HeyBeauty API执行虚拟尝试. 它通过提供:
- 以URI和元数据代表服装的资源
- 提交尝试任务和查询任务信息的工具。
- 点心布
□ 快开始
-
申请 HeyBeauty API 密钥
-
将服务器配置添加到 MCP 客户端配置文件
资源
- 通过[[T0] 列出和取用衣服 URIs 语录
- 每块布都有一个ID,名称,描述,图像url和元数据
- 简单内容访问的纯文本 mime 类型
QQ 工具
- [[T1] - 提交尝试任务
- 使用用户图像url、布图像url、布被id和布描述作为必要的参数
- 在服务器状态下存储尝试任务
query_tryon_task- 查询一个尝试任务- 按要求的参数使用任务编号
- 返回尝试任务信息
QQ 提示
[T3] - 特伦布
- 使用用户图像url、布图像url、布被id和布描述作为必要的参数
- 系统化的LLM试验返回快速
资源
- [T4] - 衣服URI
- 每块布都有一个ID,名称,描述,图像url和元数据
□ 发展
本页由 AI 翻译,技术细节请以原文为准。
README
HeyBeauty MCP Server
HeyBeauty Virtual TryOn
This is a TypeScript-based MCP server that implements virtual tryon using HeyBeauty API. It demonstrates core MCP concepts by providing:
- Resources representing clothes with URIs and metadata
- Tools for submit tryon task and query task info.
- Prompts for tryon cloth.
Quick Start
-
apply for HeyBeauty API Key
-
add the server config to MCP Client config file
{
"mcpServers": {
"heybeauty-mcp": {
"command": "npx",
"args": ["-y", "heybeauty-mcp"],
"env": {
"HEYBEAUTY_API_KEY": "your_heybeauty_api_key"
}
}
}
}
Resources
- List and access clothes via
cloth://URIs - Each cloth has a id, name, description, image url and metadata
- Plain text mime type for simple content access
Tools
submit_tryon_task- Submit a tryon task- Takes user image url, cloth image url, cloth id and cloth description as required parameters
- Stores tryon task in server state
query_tryon_task- Query a tryon task- Takes task id as required parameter
- Returns tryon task info
Prompts
tryon_cloth- Tryon cloth- Takes user image url, cloth image url, cloth id and cloth description as required parameters
- Returns structured prompt for LLM tryon
Resources
cloth://- URI for clothes- Each cloth has a id, name, description, image url and metadata
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"heybeauty-mcp": {
"command": "node",
"args": ["/path/to/heybeauty-mcp/build/index.js"]
},
"env": {
"HEYBEAUTY_API_KEY": "your_heybeauty_api_key"
}
}
}
Follow this document to get HeyBeauty API Key.
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
安装
npx -y heybeauty-mcp配置
{
"mcpServers": {
"heybeauty-mcp": {
"command": "npx",
"args": ["-y", "heybeauty-mcp"],
"env": {
"HEYBEAUTY_API_KEY": "your_heybeauty_api_key"
}
}
}
}