CH

chatmcp/heybeauty-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

19 stars 6 forks 品質 63 トレンド 22MIT

HeyBeauty MCP Server 仮想試用版

概要

これは、HayBeauty API を使用して仮想トリトンを実装する TypeScript ベースの MCP サーバーです。 コアMCPのコンセプトを提示します。 - URIとメタデータで服を表現するリソース - トリプンタスクとクエリタスク情報を送信するためのツール。 - トリトンの布のためのプロンプト。 2. MCP Client config ファイルにサーバー config を追加 - 布で服をリストしてアクセスする:// URI - 各布には、ID、名前、説明、画像のurl、メタデータがあります - 単純なコンテンツアクセスのためのテキストのmimeタイプをプレーン - submit tryon task - トリコンタスクを投稿 - ユーザイメージurl、布画像url、布ID、布の記述を必須パラメータとして取得 - サーバの状態のトリコンタスクを格納 - query tryon task - トリコンタスクをクエリ - 必須パラメータとしてタスクIDを取る - トライオンタスク情報を返す - tryon cloth - トリトンの布 - ユーザーイメージのURL、布のイメージのurl、布のidおよび布の記述を要求された変数として取る - LLMのトリトンのための構造化されたプロンプトを返す - 服のための布:// - URI - 各布はID、名前、説明を持っています...

概要(AI 翻訳)

HeyBeauty バーチャル トライオン

これは、HayBeauty API を使用して仮想トリトンを実装する TypeScript ベースの MCP サーバーです。 コアMCPのコンセプトを提示します。

  • URIとメタデータで服を表すリソース
  • トリトンタスクとクエリタスク情報を送信するためのツール。
  • トリトンの布のためのプロンプト。

クイックスタート

  1. HeyBeauty APIキーの適用

  2. MCP Client config ファイルにサーバー config を追加

リソース

  • [cloth://を介して服をリストしてアクセス] ログイン
  • 各布にid、名前、説明、画像url、メタデータがあります
  • シンプルなコンテンツアクセスのためのプレーンテキストミータイプ

ツール

  • [submit_tryon_task - トリトンタスクの送信
  • 必要な変数としてユーザーのイメージのurl、布のイメージのurl、布のidおよび布の記述を取って下さい
  • サーバの状態でトライオンタスクを保存
  • [query_tryon_task - トリコンタスクのクエリ
  • 必須パラメータとしてタスク ID を取る
  • トライオンのタスク情報を返す

プロンプト

  • [tryon_cloth - トリトンクロス
  • 必要な変数としてユーザーのイメージのurl、布のイメージのurl、布のidおよび布の記述を取って下さい
  • LLM のトリトンのための構造されたプロンプトを戻して下さい

リソース

  • [cloth:// - 服の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

  1. apply for HeyBeauty API Key

  2. 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.

GitHub で README 全文を見る

インストール

npx -y heybeauty-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "heybeauty-mcp": { "command": "npx", "args": ["-y", "heybeauty-mcp"], "env": { "HEYBEAUTY_API_KEY": "your_heybeauty_api_key" } } } }