Architecture Pattern MCP
概览
作者提供的说明(英文原文)
MCP server that provides architecture design expertise to AI coding agents
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 开发者工具
- 你需要填写:GENERATOR_API_KEY, EMBEDDER_BASE_URL, EMBEDDER_API_KEY, RERANKER_BASE_URL
安装
选择你使用的 AI 应用,然后复制设置。
通过 2/2 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Architecture Pattern MCP 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "architecture-pattern": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GENERATOR_API_KEY", "-e", "GENERATOR_PROVIDER", "-e", "GENERATOR_MODEL", "-e", "GENERATOR_BASE_URL", "-e", "PATTERN_DIRECTORY", "-e", "EMBEDDER_PROVIDER", "-e", "EMBEDDER_BASE_URL", "-e", "EMBEDDER_API_KEY", "-e", "RERANKER_BASE_URL", "docker.io/olkowa/architecture-pattern-mcp:1.1.3", "--transport", "stdio" ], "env": { "GENERATOR_API_KEY": "your-value", "GENERATOR_PROVIDER": "your-value", "GENERATOR_MODEL": "your-value", "GENERATOR_BASE_URL": "your-value", "PATTERN_DIRECTORY": "your-value", "EMBEDDER_PROVIDER": "your-value", "EMBEDDER_BASE_URL": "your-value", "EMBEDDER_API_KEY": "your-value", "RERANKER_BASE_URL": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 Architecture Pattern MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Architecture Pattern MCP,或回答中出现 Architecture Pattern MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Architecture Pattern MCP
Architecture Pattern MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Architecture Pattern MCP 的应用
- 需要 Architecture Pattern MCP 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Architecture Pattern MCP 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
- 需要 Architecture Pattern MCP 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
- 需要 Architecture Pattern MCP 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Front-End Checklist✓ ChatGPT
- Compiler Explorer✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Architecture Pattern MCP 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
注册并创建 Architecture Pattern MCP 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。
获取密钥的方法见下方开发者的 README
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add architecture-pattern --env GENERATOR_API_KEY=your-value --env GENERATOR_PROVIDER=your-value --env GENERATOR_MODEL=your-value --env GENERATOR_BASE_URL=your-value --env PATTERN_DIRECTORY=your-value --env EMBEDDER_PROVIDER=your-value --env EMBEDDER_BASE_URL=your-value --env EMBEDDER_API_KEY=your-value --env RERANKER_BASE_URL=your-value -- docker run -i --rm -e GENERATOR_API_KEY -e GENERATOR_PROVIDER -e GENERATOR_MODEL -e GENERATOR_BASE_URL -e PATTERN_DIRECTORY -e EMBEDDER_PROVIDER -e EMBEDDER_BASE_URL -e EMBEDDER_API_KEY -e RERANKER_BASE_URL docker.io/olkowa/architecture-pattern-mcp:1.1.3 --transport stdio按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Architecture Pattern MCP 在列表中并显示已连接
试一试
用 Architecture Pattern MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Architecture Pattern MCP,或回答中出现 Architecture Pattern MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Architecture Pattern MCP 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
注册并创建 Architecture Pattern MCP 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。
获取密钥的方法见下方开发者的 README
填写你的密钥
在 Architecture Pattern MCP 的设置中,GENERATOR_API_KEY, GENERATOR_PROVIDER, GENERATOR_MODEL, GENERATOR_BASE_URL, PATTERN_DIRECTORY, EMBEDDER_PROVIDER, EMBEDDER_BASE_URL, EMBEDDER_API_KEY, RERANKER_BASE_URL 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Architecture Pattern MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Architecture Pattern MCP,或回答中出现 Architecture Pattern MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Architecture Pattern MCP 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
注册并创建 Architecture Pattern MCP 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。
获取密钥的方法见下方开发者的 README
填写你的密钥
在 Architecture Pattern MCP 的设置中,GENERATOR_API_KEY, GENERATOR_PROVIDER, GENERATOR_MODEL, GENERATOR_BASE_URL, PATTERN_DIRECTORY, EMBEDDER_PROVIDER, EMBEDDER_BASE_URL, EMBEDDER_API_KEY, RERANKER_BASE_URL 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Architecture Pattern MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Architecture Pattern MCP,或回答中出现 Architecture Pattern MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add architecture-pattern --env GENERATOR_API_KEY=your-value --env GENERATOR_PROVIDER=your-value --env GENERATOR_MODEL=your-value --env GENERATOR_BASE_URL=your-value --env PATTERN_DIRECTORY=your-value --env EMBEDDER_PROVIDER=your-value --env EMBEDDER_BASE_URL=your-value --env EMBEDDER_API_KEY=your-value --env RERANKER_BASE_URL=your-value -- docker run -i --rm -e GENERATOR_API_KEY -e GENERATOR_PROVIDER -e GENERATOR_MODEL -e GENERATOR_BASE_URL -e PATTERN_DIRECTORY -e EMBEDDER_PROVIDER -e EMBEDDER_BASE_URL -e EMBEDDER_API_KEY -e RERANKER_BASE_URL docker.io/olkowa/architecture-pattern-mcp:1.1.3 --transport stdioClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"architecture-pattern": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GENERATOR_API_KEY",
"-e",
"GENERATOR_PROVIDER",
"-e",
"GENERATOR_MODEL",
"-e",
"GENERATOR_BASE_URL",
"-e",
"PATTERN_DIRECTORY",
"-e",
"EMBEDDER_PROVIDER",
"-e",
"EMBEDDER_BASE_URL",
"-e",
"EMBEDDER_API_KEY",
"-e",
"RERANKER_BASE_URL",
"docker.io/olkowa/architecture-pattern-mcp:1.1.3",
"--transport",
"stdio"
],
"env": {
"GENERATOR_API_KEY": "your-value",
"GENERATOR_PROVIDER": "your-value",
"GENERATOR_MODEL": "your-value",
"GENERATOR_BASE_URL": "your-value",
"PATTERN_DIRECTORY": "your-value",
"EMBEDDER_PROVIDER": "your-value",
"EMBEDDER_BASE_URL": "your-value",
"EMBEDDER_API_KEY": "your-value",
"RERANKER_BASE_URL": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"architecture-pattern": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GENERATOR_API_KEY",
"-e",
"GENERATOR_PROVIDER",
"-e",
"GENERATOR_MODEL",
"-e",
"GENERATOR_BASE_URL",
"-e",
"PATTERN_DIRECTORY",
"-e",
"EMBEDDER_PROVIDER",
"-e",
"EMBEDDER_BASE_URL",
"-e",
"EMBEDDER_API_KEY",
"-e",
"RERANKER_BASE_URL",
"docker.io/olkowa/architecture-pattern-mcp:1.1.3",
"--transport",
"stdio"
],
"env": {
"GENERATOR_API_KEY": "your-value",
"GENERATOR_PROVIDER": "your-value",
"GENERATOR_MODEL": "your-value",
"GENERATOR_BASE_URL": "your-value",
"PATTERN_DIRECTORY": "your-value",
"EMBEDDER_PROVIDER": "your-value",
"EMBEDDER_BASE_URL": "your-value",
"EMBEDDER_API_KEY": "your-value",
"RERANKER_BASE_URL": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"architecture-pattern": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GENERATOR_API_KEY",
"-e",
"GENERATOR_PROVIDER",
"-e",
"GENERATOR_MODEL",
"-e",
"GENERATOR_BASE_URL",
"-e",
"PATTERN_DIRECTORY",
"-e",
"EMBEDDER_PROVIDER",
"-e",
"EMBEDDER_BASE_URL",
"-e",
"EMBEDDER_API_KEY",
"-e",
"RERANKER_BASE_URL",
"docker.io/olkowa/architecture-pattern-mcp:1.1.3",
"--transport",
"stdio"
],
"env": {
"GENERATOR_API_KEY": "your-value",
"GENERATOR_PROVIDER": "your-value",
"GENERATOR_MODEL": "your-value",
"GENERATOR_BASE_URL": "your-value",
"PATTERN_DIRECTORY": "your-value",
"EMBEDDER_PROVIDER": "your-value",
"EMBEDDER_BASE_URL": "your-value",
"EMBEDDER_API_KEY": "your-value",
"RERANKER_BASE_URL": "your-value"
}
}
}
}需要你填写的值
GENERATOR_API_KEY机密 必填 envAPI key for the generator LLM (LiteLLM provider).GENERATOR_PROVIDERenvLiteLLM provider prefix, e.g. openai, anthropic, openrouter, minimax.GENERATOR_MODELenvModel name, combined as / via LiteLLM.GENERATOR_BASE_URLenvOpenAI-compatible base URL (LiteLLM api_base).PATTERN_DIRECTORYenvDirectory with *-pattern.json files. The image bakes the 40-pattern catalogue at /app/pattern.EMBEDDER_PROVIDERenvEmbedding backend for pattern retrieval: tei, openai, ollama, vllm or hosted_vllm.EMBEDDER_BASE_URL必填 envRequired: the dense retrieval leg embeds the 40-pattern catalogue during startup warmup and the server refuses to start when the endpoint is unreachable. OpenAI-compatible embeddings endpoint ending…EMBEDDER_API_KEY机密 envAPI key for the embedder. Keyless TEI accepts any non-empty value; use 'not-needed' there.RERANKER_BASE_URL必填 envRequired: pattern retrieval runs a mandatory TEI cross-encoder rerank. On the Docker host use http://host.docker.internal:8080; on a shared Docker network use http://pattern-tei-rerank:8080.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 olk 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于16天前
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5756 个服务器的 69%
- 发布到注册中心的时间比此分类中其他 5756 个服务器的 49% 更新
- 基础检查结果等于或优于此分类中其他 5756 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Architecture Pattern MCP 安全吗?
它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:GENERATOR_API_KEY, EMBEDDER_BASE_URL, EMBEDDER_API_KEY, RERANKER_BASE_URL
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于16天前,最新版本(1.1.5)于32天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
architecture-pattern-mcp
An MCP (Model Context Protocol) server that provides architecture design expertise to AI coding agents. Given a requirements string and a domain, it analyses the problem, selects matching architecture patterns (from 128 built-in patterns), generates a concrete architecture design with components, relationships, API contracts, data models, and event contracts, and evaluates it against quality attributes (maintainability, scalability, reliability, security, performance).
Table of Contents
- ⚡ Quickstart
- Install via AI Agent
- 🔌 Connect Your Agent
- Claude Code
- OpenCode
- Codex CLI
- 🧑🏫 SKILL for AI Agents
- 🧪 Use the Tools
- Design your first architecture
- Explore the pattern catalog
- 🛠️ Tools at a Glance
- 📖 Pattern Catalog
- Working Together with design-pattern-mcp-local
- Install Alternatives
- Docker (manual)
- Local Development (uv)
- Configuration
- Structured Reasoning (shannonthinking / code-reasoning)
- Extending with Custom Patterns
- Long-running tools & timeouts
- Troubleshooting
- Building & Development
- Publishing
- systemd Service (Linux)
- License
⚡ Quickstart
# 1. Clone
git clone https://github.com/olk/architecture-pattern-mcp.git && cd architecture-pattern-mcp
2. Add your API key
export GENERATOR_API_KEY=your_key_here
3. Start (Docker builds + starts everything)
docker compose -f docker/docker-compose.yml up --build
4. Demo (analyze-only: fast. For the full design: make client-design)
make client-analyze
Server starts on streamable-http at http://localhost:8820/mcp (dev compose host port; systemd uses 8810). Then connect your agent below.
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 8820).
My generator API key is: sk-...
Pick one path in INSTALL.md:
- Path A — Compose stack (
:8820): evaluating / developing, no sudo needed. Own TEI sidecar copies. - Path B — systemd stack (
:8810): persistent host service, starts at boot, needssudo. Uses the sharedpattern-tei-infraTEI stack.
The agent needs a repo clone, Docker ≥ v2.20 with group membership, ~5 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). 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 API key via env
claude mcp add architecture-pattern \ -e GENERATOR_API_KEY=your_key \ -e GENERATOR_PROVIDER=openai \ -- architecture-pattern-mcp --transport stdio
Or add to your project for the whole team:
claude mcp add --scope project architecture-pattern \
-e GENERATOR_API_KEY=your_key \ -- architecture-pattern-mcp --transport stdio
OpenCode
OpenCode uses HTTP transport. Start the server first, then configure opencode:
# Terminal 1: start the server
docker compose -f docker/docker-compose.yml up --build
or locally:
uv run python -m src.main --port 8050
Terminal 2: add to ~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json", "mcp": { "architecture-pattern": { "type": "remote", "url": "http://localhost:8820/mcp" } } }
Note:
GENERATOR_API_KEYis read from the server's config file (~/.config/architecture-pattern-mcp/config.json), not from opencode's environment.
Codex CLI
# Install (one-time)
uv pip install -e .
Add to ~/.codex/config.toml:
[mcp_servers.architecture-pattern]
command = "architecture-pattern-mcp" args = ["--transport", "stdio"]
[mcp_servers.architecture-pattern.env] GENERATOR_API_KEY = "your_key" GENERATOR_PROVIDER = "openai"
Or via CLI:
codex mcp add architecture-pattern \
-e GENERATOR_API_KEY=your_key \ -- architecture-pattern-mcp --transport stdio
🧑🏫 SKILL for AI Agents
The SKILL in skills/architecture-pattern-mcp/ is written for Oh My Pi (OMP), where this server's tools are reached as xd://mcp__architecture_pattern_* 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/architecture-pattern-mcp/
├── SKILL.md # OMP constraints, entry-point decision guide, device quick reference └── references/ ├── tools.md # 11 tool signatures, output schemas, error codes, design-dict shape └── workflows.md # 5 recipes, result interpretation, OMP troubleshooting
Install for OMP — copy the skill directory into the user skills root, or point skills.customDirectories at this repository's skills/ directory in OMP's config:
cp -r skills/architecture-pattern-mcp ~/.omp/agent/skills/
The skill then tells the agent:
- Which entry point fits OMP's deadline: the async job trio by default, one-shot
design_architectureonly after raising the server'stimeout(analyze_architecturealone measured 66 s,evaluate_architecture197 s) - How to phrase
requirements,domain, andstyleas separate structured arguments - How to interpret
final_quality_score,attempts > 1, andevaluation.recommendations - That
read mcp://pattern://…is ambiguous while the siblingagent-patternserver is connected, so the tool route (get_architecture_pattern) is authoritative
The tool schemas, error codes and design-dict shape in references/ are client-agnostic; only the deadline/device guidance is OMP-specific.
Use the Tools
All tools accept requirements (free text) and domain (e.g. data-processing, microservices, e-commerce) as arguments. The examples below show the exact tool call shape so you can use them in any MCP client or API consumer.
Try each tool
In Claude Code (or any MCP client), paste the natural-language instruction:
Build a scalable ETL pipeline for IoT sensor data: ingest 10k events/sec
from Kafka, parse JSON, enrich with geolocation from Redis, write to InfluxDB and S3.
Your agent calls design_architecture internally. The server returns a full architecture design: components (Kafka source, JSON parser filter, geolocation enricher, InfluxDB sink, S3 sink), quality attribute scores (scalability: 9.1, maintainability: 8.2, …), and specific recommendations.
That is the design path: the server's LLM generates the design artifact for you, which is why a call takes minutes. If your agent writes the code itself and only needs the pattern expertise, call analyze_architecture instead — it returns the recommended style, selected patterns with scores, requirement weights, quality metrics and matched domains without generating a design. Two measured facts from the committed benchmark corpus: generate + evaluate are ~92 % of a design call's wall clock (benchmarks/base-noreasoning/), and the two paths agree on the style in all 31 completed records (15 base + 16 no-reasoning; the one remaining base record is a design call that failed with a malformed-JSON validation error and produced no design) — a design call buys the artifact, not a better pattern choice.
Or call tools directly from your agent:
Call analyze_architecture with:
requirements: "Real-time data processing pipeline for 10k events/sec IoT sensor data" domain: "data-processing"
Call generate_architecture with: requirements: "ETL pipeline: Kafka → JSON parse → Redis geo-enrich → InfluxDB + S3" domain: "data-processing" selected_patterns: ["pipe-and-filter"]
Call evaluate_architecture with: architecture: { ... paste a design dict here ... } criteria: "scalability, reliability"
Call list_architecture_patterns() # all 128 patterns Call list_architecture_patterns(category="messaging") # filter by category Call get_architecture_pattern(name="event-driven") # full pattern JSON
Async job pattern: submit_architecture_design_job + get_architecture_design_status
ONLY for clients with short request timeouts (Cursor, Claude Desktop, TS-SDK). The default is design_architecture with heartbeat defence. submit_architecture_design_job returns a job_id immediately; poll get_architecture_design_status until done:
# Step 1: start the job
Call submit_architecture_design_job with: requirements: "ETL pipeline for IoT: Kafka → JSON → Redis geo-enrich → InfluxDB + S3" domain: "data-processing"
Step 2: poll every 10-30 seconds
Call get_architecture_design_status with: job_id: " "
→ status is "pending" | "running" | "completed" | "failed" | "cancelled"
When status is "completed", the full design is in result.design
When status is "failed", the error is in result.error
In Python (via the MCP HTTP API directly — see examples/architecture_client_async.py):
import asyncio, aiohttp
SERVER = "http://localhost:8820/mcp" POLL_EVERY = 15 # seconds
async def main(): async with aiohttp.ClientSession() as sess:
Start
async with sess.post(SERVER, json={ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "submit_architecture_design_job", "arguments": { "requirements": "ETL pipeline for IoT: Kafka → JSON → Redis → InfluxDB + S3", "domain": "data-processing", } }, "id": 1 }) as resp: job_id = (await resp.json())"result"0["job_id"]
print(f"Job started: {job_id}")
Poll
while True: await asyncio.sleep(POLL_EVERY) async with sess.post(SERVER, json={ "jsonrpc": "2.0", "method": "tools/call", "params": {"name": "get_architecture_design_status", "arguments": {"job_id": job_id}}, "id": 2 }) as resp: result = (await resp.json())"result"0 print(f" status={result['status']}") if result["status"] in ("completed", "failed", "cancelled"): break
print(result.get("result", result)) # full design when completed
See examples/architecture_client_async.py for the complete runnable example. Run it with:
docker compose -f docker/docker-compose.yml up --build # Terminal