프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. 리뷰와 계정 기능은 다음 단계에서 열려요.
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Design Pattern MCP

제작자: olk버전 1.0.1i★ –i내 컴퓨터에서 실행
레지스트리 이름io.github.olk/design-pattern-mcp

설치

개요

제작자가 쓴 설명(영어 원문)

MCP server that provides design-pattern selection expertise to AI coding agents

PopNx MCP의 세 기둥

이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.

할 수 있는 일

이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.

  • 연결 방식: 내 컴퓨터에서 실행
  • 전송 방식: stdio
  • 카테고리: 디자인, 이미지 및 오디오
  • 입력해야 할 값: DESIGN_PATTERN_GENERATOR_API_KEY, DESIGN_PATTERN_EMBEDDER_BASE_URL, DESIGN_PATTERN_EMBEDDER_API_KEY, DESIGN_PATTERN_RERANKER_BASE_URL

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

설치하기 전에

  • 기본 점검: 1개 중 1개 통과
  • 내 컴퓨터에서 내 사용자 계정의 권한(파일, 네트워크, 앱)으로 실행돼요.
  • 직접 입력할 값: DESIGN_PATTERN_GENERATOR_API_KEY, DESIGN_PATTERN_GENERATOR_PROVIDER, DESIGN_PATTERN_GENERATOR_MODEL, DESIGN_PATTERN_GENERATOR_BASE_URL, DESIGN_PATTERN_PATTERN_DIRECTORY, DESIGN_PATTERN_EMBEDDER_BASE_URL, DESIGN_PATTERN_EMBEDDER_API_KEY, DESIGN_PATTERN_RERANKER_BASE_URL

비밀로 표시된 값은 내 계정의 열쇠예요. 절대 다른 사람과 공유하거나 채팅에 붙여 넣지 마세요.

필요한 것

어떤 앱을 쓰세요?

위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.

Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요

{
  "mcpServers": {
    "design-pattern": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DESIGN_PATTERN_GENERATOR_API_KEY",
        "-e",
        "DESIGN_PATTERN_GENERATOR_PROVIDER",
        "-e",
        "DESIGN_PATTERN_GENERATOR_MODEL",
        "-e",
        "DESIGN_PATTERN_GENERATOR_BASE_URL",
        "-e",
        "DESIGN_PATTERN_PATTERN_DIRECTORY",
        "-e",
        "DESIGN_PATTERN_EMBEDDER_BASE_URL",
        "-e",
        "DESIGN_PATTERN_EMBEDDER_API_KEY",
        "-e",
        "DESIGN_PATTERN_RERANKER_BASE_URL",
        "docker.io/olkowa/design-pattern-mcp:1.0.1",
        "--transport",
        "stdio"
      ],
      "env": {
        "DESIGN_PATTERN_GENERATOR_API_KEY": "your-value",
        "DESIGN_PATTERN_GENERATOR_PROVIDER": "your-value",
        "DESIGN_PATTERN_GENERATOR_MODEL": "your-value",
        "DESIGN_PATTERN_GENERATOR_BASE_URL": "your-value",
        "DESIGN_PATTERN_PATTERN_DIRECTORY": "your-value",
        "DESIGN_PATTERN_EMBEDDER_BASE_URL": "your-value",
        "DESIGN_PATTERN_EMBEDDER_API_KEY": "your-value",
        "DESIGN_PATTERN_RERANKER_BASE_URL": "your-value"
      }
    }
  }
}

터미널에서 이 명령어를 실행하세요

claude mcp add design-pattern --env DESIGN_PATTERN_GENERATOR_API_KEY=your-value --env DESIGN_PATTERN_GENERATOR_PROVIDER=your-value --env DESIGN_PATTERN_GENERATOR_MODEL=your-value --env DESIGN_PATTERN_GENERATOR_BASE_URL=your-value --env DESIGN_PATTERN_PATTERN_DIRECTORY=your-value --env DESIGN_PATTERN_EMBEDDER_BASE_URL=your-value --env DESIGN_PATTERN_EMBEDDER_API_KEY=your-value --env DESIGN_PATTERN_RERANKER_BASE_URL=your-value -- docker run -i --rm -e DESIGN_PATTERN_GENERATOR_API_KEY -e DESIGN_PATTERN_GENERATOR_PROVIDER -e DESIGN_PATTERN_GENERATOR_MODEL -e DESIGN_PATTERN_GENERATOR_BASE_URL -e DESIGN_PATTERN_PATTERN_DIRECTORY -e DESIGN_PATTERN_EMBEDDER_BASE_URL -e DESIGN_PATTERN_EMBEDDER_API_KEY -e DESIGN_PATTERN_RERANKER_BASE_URL docker.io/olkowa/design-pattern-mcp:1.0.1 --transport stdio

실행하기 전에 빈 값을 채워 주세요.

Cursor에서 열기

또는 설정을 직접 복사하기

프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요

{
  "mcpServers": {
    "design-pattern": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DESIGN_PATTERN_GENERATOR_API_KEY",
        "-e",
        "DESIGN_PATTERN_GENERATOR_PROVIDER",
        "-e",
        "DESIGN_PATTERN_GENERATOR_MODEL",
        "-e",
        "DESIGN_PATTERN_GENERATOR_BASE_URL",
        "-e",
        "DESIGN_PATTERN_PATTERN_DIRECTORY",
        "-e",
        "DESIGN_PATTERN_EMBEDDER_BASE_URL",
        "-e",
        "DESIGN_PATTERN_EMBEDDER_API_KEY",
        "-e",
        "DESIGN_PATTERN_RERANKER_BASE_URL",
        "docker.io/olkowa/design-pattern-mcp:1.0.1",
        "--transport",
        "stdio"
      ],
      "env": {
        "DESIGN_PATTERN_GENERATOR_API_KEY": "your-value",
        "DESIGN_PATTERN_GENERATOR_PROVIDER": "your-value",
        "DESIGN_PATTERN_GENERATOR_MODEL": "your-value",
        "DESIGN_PATTERN_GENERATOR_BASE_URL": "your-value",
        "DESIGN_PATTERN_PATTERN_DIRECTORY": "your-value",
        "DESIGN_PATTERN_EMBEDDER_BASE_URL": "your-value",
        "DESIGN_PATTERN_EMBEDDER_API_KEY": "your-value",
        "DESIGN_PATTERN_RERANKER_BASE_URL": "your-value"
      }
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

VS Code에서 열기

또는 설정을 직접 복사하기

프로젝트의 .vscode/mcp.json에 붙여 넣으세요

{
  "servers": {
    "design-pattern": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DESIGN_PATTERN_GENERATOR_API_KEY",
        "-e",
        "DESIGN_PATTERN_GENERATOR_PROVIDER",
        "-e",
        "DESIGN_PATTERN_GENERATOR_MODEL",
        "-e",
        "DESIGN_PATTERN_GENERATOR_BASE_URL",
        "-e",
        "DESIGN_PATTERN_PATTERN_DIRECTORY",
        "-e",
        "DESIGN_PATTERN_EMBEDDER_BASE_URL",
        "-e",
        "DESIGN_PATTERN_EMBEDDER_API_KEY",
        "-e",
        "DESIGN_PATTERN_RERANKER_BASE_URL",
        "docker.io/olkowa/design-pattern-mcp:1.0.1",
        "--transport",
        "stdio"
      ],
      "env": {
        "DESIGN_PATTERN_GENERATOR_API_KEY": "your-value",
        "DESIGN_PATTERN_GENERATOR_PROVIDER": "your-value",
        "DESIGN_PATTERN_GENERATOR_MODEL": "your-value",
        "DESIGN_PATTERN_GENERATOR_BASE_URL": "your-value",
        "DESIGN_PATTERN_PATTERN_DIRECTORY": "your-value",
        "DESIGN_PATTERN_EMBEDDER_BASE_URL": "your-value",
        "DESIGN_PATTERN_EMBEDDER_API_KEY": "your-value",
        "DESIGN_PATTERN_RERANKER_BASE_URL": "your-value"
      }
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.

선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.

직접 입력할 값

  • DESIGN_PATTERN_GENERATOR_API_KEY 비밀 필수 env
    API key for the generator LLM (LiteLLM provider).
  • DESIGN_PATTERN_GENERATOR_PROVIDER env
    LiteLLM provider prefix, e.g. openai, anthropic, openrouter.
  • DESIGN_PATTERN_GENERATOR_MODEL env
    Model name, combined as / via LiteLLM.
  • DESIGN_PATTERN_GENERATOR_BASE_URL env
    OpenAI-compatible base URL (LiteLLM api_base).
  • DESIGN_PATTERN_PATTERN_DIRECTORY env
    Directory with the catalog records (*.json main records plus per-language files). The image bakes the 438-record catalogue at /app/pattern.
  • DESIGN_PATTERN_EMBEDDER_BASE_URL 필수 env
    Required: the dense retrieval leg embeds the 438-record catalogue during startup warmup and the server refuses to start when the endpoint is unreachable. TEI embeddings endpoint: on the Docker host u…
  • DESIGN_PATTERN_EMBEDDER_API_KEY 비밀 env
    API key for the embedder. Keyless TEI accepts any non-empty value; use 'not-needed' there.
  • DESIGN_PATTERN_RERANKER_BASE_URL 필수 env
    Required: retrieval runs a mandatory TEI cross-encoder rerank whenever the fused pool has more than one candidate. On the Docker host use http://host.docker.internal:8080; on a shared Docker network…

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 6일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 olk 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • … 아직 점검 안 함

    계속 관리되고 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • … 아직 점검 안 함

    라이선스 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

디자인, 이미지 및 오디오 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 2169개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 2169개 중 51%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 2169개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Design Pattern MCP, 안전한가요?

해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

입력해야 할 값: DESIGN_PATTERN_GENERATOR_API_KEY, DESIGN_PATTERN_EMBEDDER_BASE_URL, DESIGN_PATTERN_EMBEDDER_API_KEY, DESIGN_PATTERN_RERANKER_BASE_URL

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.0.1)은 27일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Docker도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Figma Context MCP, Claude Real Video, Figma MCP Server

대안

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Figma Context MCP

제작자: GLips

Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.

내 컴퓨터에서 실행★ 16,165MIT5개월 전 업데이트
설치

Claude Real Video

제작자: HUANGCHIHHUNGLeo

Let any LLM watch a video locally — and search everything it has ever watched.

내 컴퓨터에서 실행★ 2,284MIT2개월 전 업데이트
설치

Figma MCP Server

제작자: figma

The Figma MCP server brings Figma design context directly into your AI workflow.

클라우드에서 실행★ 2,15213개월 전 업데이트
설치

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

design-pattern-mcp

An MCP (Model Context Protocol) server that provides design-pattern selection expertise to AI coding agents. Given a free-text description of a system, it analyses the problem, retrieves matching design patterns (from 486 built-in patterns, each realized in 13 concrete languages plus a generic binding), generates a concrete design with a primary pattern, supporting patterns, participants, interactions, implementation steps, and language-bound variants, and evaluates it against eight design-level quality axes (testability, extensibility, maintainability, simplicity, performance, reliability, security, scalability). The pipeline (analyze → weights ∥ retrieval → generate → evaluate → bounded refine) and its wire contract are specified in docs/implementation-guide.md.


Table of Contents

  • ⚡ Quickstart
  • Install via AI Agent
  • 🔌 Connect Your Agent
  • Claude Code
  • OpenCode
  • Codex CLI
  • 🧑🏫 SKILL for AI Agents
  • 🧪 Use the Tools
  • 🛠️ Tools at a Glance
  • 💬 Prompts
  • 📖 Pattern Catalog
  • Working Together with architecture-pattern-mcp
  • Install Alternatives
  • Docker (manual)
  • Local Development (uv)
  • Configuration
  • Structured Reasoning
  • Long-running tools & timeouts
  • Benchmarks & Verification
  • Troubleshooting
  • Building & Development
  • Publishing
  • systemd Service (Linux)
  • License

⚡ Quickstart

# 1. Clone

git clone https://git.odvlh.xyz/olli/design-pattern-mcp.git && cd design-pattern-mcp

2. Add your API key

export MINIMAXAI_API_KEY=your_key_here

3. Build + start (three images: MCP server + TEI embed + TEI rerank)

make docker-build-all make docker-up

4. Demo (analyze-only: fast. For the full design: make client-design)

make client-analyze make client-async # full design via the background job trio

Server starts on streamable-http at http://localhost:8822/mcp (dev compose maps host 8822 → container 8050). make client-analyze / make client-design target http://localhost:8822/mcp; override with CLIENT_URL.


Install via AI Agent

To have an AI coding agent install the Docker stack from prebuilt images (no local build), point it at [INSTALL.md](INSTALL.md) — the non-interactive agent runbook (copy-paste commands, expected outputs, verification probes).

Clone this repo, then follow INSTALL.md Path A (compose stack, port 8822).

My generator API key is: sk-...

Pick one path in INSTALL.md:

  • Path A — Compose stack (:8822): evaluating / developing, no sudo needed. Own TEI sidecar copies.
  • Path B — systemd stack (:8812): persistent host service, starts at boot, needs sudo. Uses the shared pattern-tei-infra TEI stack.

The agent needs a repo clone, Docker ≥ v2.20 with group membership, ~8 GB free, a MINIMAXAI_API_KEY (or another provider per INSTALL.md#switching-the-generator-llm), and linux/amd64 (on arm64 it builds locally via make docker-build-all). Dev and systemd stacks run concurrently on their default host ports (8822 vs 8812). After install, continue with Connect Your Agent below.


🔌 Connect Your Agent

Claude Code
# Install (one-time)

uv pip install -e .

Run as stdio subprocess — pass the API key via env

claude mcp add design-patterns \ -e GENERATOR_PROVIDER=minimax \ -e GENERATOR_MODEL=minimax/MiniMax-M2.7 \ -e GENERATOR_BASE_URL=https://api.minimax.io/v1 \ -e GENERATOR_API_KEY=your_key \ -- design-pattern-mcp --transport stdio

Stdio mode needs the TEI endpoints reachable (default http://design-pattern-tei-embed:8080 and the reranker URL from config/config.json) — either run the compose stack's sidecars or set EMBEDDER_BASE_URL / RERANKER_BASE_URL to your own. For a no-network smoke run, start with --offline (deterministic lexical-only retrieval instead of TEI).

OpenCode

OpenCode uses HTTP transport. Start the server first, then configure opencode:

# Terminal 1: start the server

make docker-up

or locally:

uv run design-pattern-mcp --transport streamable-http --port 8050

Terminal 2: add to ~/.config/opencode/opencode.json

{

"$schema": "https://opencode.ai/config.json", "mcp": { "design-patterns": { "type": "remote", "url": "http://localhost:8822/mcp" } } }

Note: the generator API key is read by the server from its config file (config/config.json, {env:...} placeholders), not from opencode's environment.

Codex CLI
# Install (one-time)

uv pip install -e .

Add to ~/.codex/config.toml:

[mcp_servers.design-patterns]

command = "design-pattern-mcp" args = ["--transport", "stdio"]

[mcp_servers.design-patterns.env] GENERATOR_PROVIDER = "minimax" GENERATOR_MODEL = "minimax/MiniMax-M2.7" GENERATOR_BASE_URL = "https://api.minimax.io/v1" GENERATOR_API_KEY = "your_key"

Or via CLI:

codex mcp add design-patterns \

-e GENERATOR_API_KEY=your_key \ -- design-pattern-mcp --transport stdio


🧑🏫 SKILL for AI Agents

The SKILL in skills/design-pattern-mcp/ is written for Oh My Pi (OMP), where this server's tools are reached as xd://mcp__design_pattern_local_* devices and every MCP request is bounded by a deadline (OMP_MCP_TIMEOUT_MS → per-server timeout → 30 s). It teaches the agent which entry point fits that deadline, how to read the results, and the full workflow recipes.

skills/design-pattern-mcp/

├── SKILL.md # OMP constraints, entry-point decision guide, device quick reference └── references/ ├── tools.md # 9 tool signatures, arg shapes, status codes └── workflows.md # workflow recipes, result interpretation, troubleshooting

Install for OMP — copy the skill directory into OMP's user skills root:

cp -r skills/design-pattern-mcp ~/.omp/agent/skills/

The skill then tells the agent:

  • Which entry point fits OMP's 30 s deadline: the async job trio by default; select_design_patterns (full pipeline) takes 2–10 min
  • Which path fits the job: analyze_design when the agent writes the code itself (decisions and rationale, no generated design), the full pipeline when the caller wants the design
  • That job_id is the only durable handle — persist it (SQLite job store, JOBS_DB)
  • How to phrase description (component names + responsibilities + constraints), and language, paradigm, focus as separate structured arguments
  • How to interpret overview.score (0–100), findings[], and per-part selections

The tool schemas in references/ are client-agnostic; only the deadline/device guidance is OMP-specific.


🧪 Use the Tools

All pipeline tools take a free-text description as the primary argument. The examples below show the exact tool call shape so you can use them in any MCP client or API consumer.

Design your first selection

In Claude Code (or any MCP client), paste the natural-language instruction:

We're building the ingestion path of an IoT platform: a Kafka consumer

service parses 10k events/sec, an enricher adds geolocation from Redis, and a writer persists to InfluxDB and S3. Components: consumer, parser, enricher, sink. Constraints: at-least-once delivery, backpressure, Python.

Your agent calls select_design_patterns internally. The server returns the DesignResult: overview (primary pattern, supporting patterns, principles, score, reasoning), applications[] (participants, interactions, implementation_steps, code_sketch, language_binding with the bound variant), interactions[], quality_attributes, test_strategy, and risks[].

Coding agents that write the code themselves should call `analyze_design` instead. It runs the same ANALYZE phase (§1–§8: brief repair → decision parts → per-part retrieval → quality weights → selection) and stops there: you get the repaired brief, the decision parts and one selection per part (primary, supporting patterns, ranked alternatives, veto ledger, weights) with no generated applications and no evaluation. The selection names *what* to apply per part, not *how* — participants, implementation steps, code sketches and language bindings are materialized by generate_design from that payload (or read via get_design_pattern per pattern); implement from the applications, never from the bare pattern names. select_design_patterns remains the design path — it continues through GENERATE → EVALUATE, where the bulk of a full run's wall clock goes. Either way, the decisions come from the same ANALYZE stage — a fresh LLM analysis per call, so neither path is idempotent; pass the analyze_design payload to generate_design if you later want the materialized applications.

Or call tools directly from your agent:

Call select_design_patterns with:

description: "IoT ingestion path: Kafka consumer (10k events/sec) → JSON parse → Redis geo-enrich → InfluxDB + S3 sink. At-least-once, backpressure." language: "python"

Call list_design_patterns() # all 486 patterns Call list_design_patterns(category="workflow-messaging") Call get_design_pattern(name="process-manager")

Async job pattern: submit_design_job + get_design_status

For clients with short request timeouts. submit_design_job returns a job_id immediately; poll get_design_status until done:

# Step 1: start the job

Call submit_design_job with: description: "IoT ingestion path: Kafka consumer → parse → Redis enrich → InfluxDB + S3"

Step 2: poll every 10-30 seconds

Call get_design_status with: job_id: " "

→ status is "pending" | "running" | "completed" | "failed" | "cancelled"

When status is "completed", the full DesignResult is in result

When status is "failed", the error is in error

In Python (via the MCP client API — see examples/design_pattern_client_async.py):

import asyncio

from fastmcp import Client

SERVER = "http://localhost:8822/mcp" POLL_EVERY = 15 # seconds

async def main(): client = Client(SERVER) async with client:

Step 1: start the job

result = await client.call_tool( "submit_design_job", {"description": "IoT ingestion: Kafka → parse → enrich → sink"}, ) job_id = result.data["job_id"] print(f"Job started: {job_id}")

Step 2: poll until terminal state

while True: await asyncio.sleep(POLL_EVERY) status = await client.call_tool("get_design_status", {"job_id": job_id}) data = status.data print(f" status={data['status']}") if data["status"] in ("completed", "failed", "cancelled"): break

print(data.get("result", data)) # full DesignResult when completed

asyncio.run(main())

See examples/design_pattern_client_async.py for the complete runnable example. Run it with:

make docker-up          # Termina

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요

PopNx에게 묻기