web-stylebook-mcp 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.ko.md CHANGED
@@ -3,7 +3,7 @@
3
3
  # web-stylebook-mcp
4
4
 
5
5
  **AI 코딩 에이전트를 위한 디자인 인텔리전스.** 매번 똑같은 히어로 + 카드 3개는 그만.
6
- 에이전트가 점수화된 디자인 *계약*(방향·시각 디자인 계획·UX 원칙 계획·UI 상태 계획·토큰·근거 기반 감사 계획)을 받아, 근거를 바탕으로 코드를 쓰고 검증합니다.
6
+ 에이전트가 점수화된 디자인 *계약*(방향·인터페이스 디자인 계획·UX 원칙 계획·UI 상태 계획·토큰·근거 기반 감사 계획)을 받아, 근거를 바탕으로 코드를 쓰고 검증합니다.
7
7
 
8
8
  [![npm version](https://img.shields.io/npm/v/web-stylebook-mcp?logo=npm&color=cb3837)](https://www.npmjs.com/package/web-stylebook-mcp)
9
9
  [![downloads](https://img.shields.io/npm/dm/web-stylebook-mcp?color=cb3837)](https://www.npmjs.com/package/web-stylebook-mcp)
@@ -17,7 +17,7 @@
17
17
 
18
18
  ---
19
19
 
20
- 코딩 에이전트는 *무엇이 어떻게 생겨야 하는지*를 정하지 못해서 매번 똑같은 UI로 도망칩니다 — 히어로 + 카드 3개 + 그라데이션. `web-stylebook-mcp`는 에이전트에게 **디자인 계약**(점수화된 시각 방향, 배치 중심 시각 디자인 계획, 근거 수준이 표시된 UX 원칙 계획, UI 상태 계획, 디자인 토큰)을 건네는 Model Context Protocol 서버이고, [webstylebook.com](https://webstylebook.com)과 동일한 큐레이션 카탈로그에서 가져옵니다. **코드가 아니라 근거**를 돌려줍니다. 코드는 여전히 에이전트가 쓰지만, 이제 무엇을 만들고 무엇을 검증할지 알고 씁니다.
20
+ 코딩 에이전트는 *무엇이 어떻게 생겨야 하는지*를 정하지 못해서 매번 똑같은 UI로 도망칩니다 — 히어로 + 카드 3개 + 그라데이션. `web-stylebook-mcp`는 에이전트에게 **디자인 계약**(점수화된 시각 방향, 배치 중심 인터페이스 디자인 계획, 근거 수준이 표시된 UX 원칙 계획, UI 상태 계획, 디자인 토큰)을 건네는 Model Context Protocol 서버이고, [webstylebook.com](https://webstylebook.com)과 동일한 큐레이션 카탈로그에서 가져옵니다. **코드가 아니라 근거**를 돌려줍니다. 코드는 여전히 에이전트가 쓰지만, 이제 무엇을 만들고 무엇을 검증할지 알고 씁니다.
21
21
 
22
22
  API 키 없음. 모델 호출 없음. 네트워크 없음. 프로젝트 파일시스템 접근 없음. **결정적이고, 읽기 전용이며, 완전히 로컬.**
23
23
 
@@ -212,7 +212,7 @@ MCP 설정에 추가:
212
212
  | **`compose_design_tokens`** | 역할 기반 토큰(색·타이포·간격·radius·모션·밀도)을 `json` / `css-variables` / `tailwind` / `typescript`, light / dark / both | WCAG 대비 경고를 숨기지 않고 내보냅니다 |
213
213
  | **`get_design_audit_plan`** | 안정적인 검사 ID·심각도·적용 조건·필요 증거·수정 방향·선택 원칙 검사·UI 상태 범위를 담은 다국어 감사 계획 | 프로젝트를 실제로 봤다고 가장하지 않으며, 증거가 없으면 `PASS`가 아니라 `NOT_VERIFIED`입니다 |
214
214
 
215
- **카탈로그:** 스타일 48 · 시각 디자인 원칙 25 · UX 원칙 23 · 구조화 감사 검사 41 · 컴포넌트 20 · 표면 5 · UI 상태 레시피 57 · 모션 프로파일 29 · 제품 아키타입 14.
215
+ **카탈로그:** 스타일 48 · 인터페이스 디자인 원칙 25 · UX 원칙 23 · 구조화 감사 검사 41 · 컴포넌트 20 · 표면 5 · UI 상태 레시피 57 · 모션 프로파일 29 · 제품 아키타입 14.
216
216
 
217
217
  ## 다국어 출력
218
218
 
@@ -311,6 +311,6 @@ enum, 개수, 런타임 계약을 검증하고, 이 명령은 두 저장소 사
311
311
  > (CC BY-NC-ND 4.0)와 보조 근거를 출처로 표시하고 링크하지만, Laws of UX의 문구·삽화·페이지
312
312
  > 레이아웃은 번들하지 않습니다.
313
313
  >
314
- > 시각 디자인 원칙은 현대 인터페이스를 위한 과업 중심 검토 체계로 독자 작성했습니다.
314
+ > 인터페이스 디자인 원칙은 현대 인터페이스를 위한 과업 중심 검토 체계로 독자 작성했습니다.
315
315
  > 의미 구조·반응형 재배치·현지화·토큰과 테마·다중 입력 방식·전체 상태 모델·복구·동작 선호를
316
316
  > 함께 다룹니다.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  # web-stylebook-mcp
4
4
 
5
5
  **Design intelligence for AI coding agents.** Stop shipping the same hero-plus-three-cards.
6
- Your agent gets scored design *contracts* — directions, visual-design plans, UX-principle plans, UI-state plans, tokens, evidence-backed audit plans — then writes and verifies the code from evidence.
6
+ Your agent gets scored design *contracts* — directions, interface-design plans, UX-principle plans, UI-state plans, tokens, evidence-backed audit plans — then writes and verifies the code from evidence.
7
7
 
8
8
  [![npm version](https://img.shields.io/npm/v/web-stylebook-mcp?logo=npm&color=cb3837)](https://www.npmjs.com/package/web-stylebook-mcp)
9
9
  [![downloads](https://img.shields.io/npm/dm/web-stylebook-mcp?color=cb3837)](https://www.npmjs.com/package/web-stylebook-mcp)
@@ -17,7 +17,7 @@ Your agent gets scored design *contracts* — directions, visual-design plans, U
17
17
 
18
18
  ---
19
19
 
20
- Coding agents default to the same generic UI because they can't *decide* what it should look like — so they fall back to hero + 3 cards + a gradient. `web-stylebook-mcp` is a Model Context Protocol server that hands the agent **design contracts** — scored visual directions, placement-aware visual-design plans, evidence-labeled UX-principle plans, UI-state plans, and design tokens — drawn from the same curated catalog as [webstylebook.com](https://webstylebook.com). It returns **evidence, not code**. Your agent still writes the code — now it knows what to build and what to verify.
20
+ Coding agents default to the same generic UI because they can't *decide* what it should look like — so they fall back to hero + 3 cards + a gradient. `web-stylebook-mcp` is a Model Context Protocol server that hands the agent **design contracts** — scored visual directions, placement-aware interface-design plans, evidence-labeled UX-principle plans, UI-state plans, and design tokens — drawn from the same curated catalog as [webstylebook.com](https://webstylebook.com). It returns **evidence, not code**. Your agent still writes the code — now it knows what to build and what to verify.
21
21
 
22
22
  No API key. No model call. No network. No project filesystem access. **Deterministic, read-only, fully local.**
23
23
 
@@ -210,7 +210,7 @@ Add the same block to your `claude_desktop_config.json`, then restart:
210
210
  | **`compose_design_tokens`** | Role-based tokens (color, type, spacing, radius, motion, density) as `json` / `css-variables` / `tailwind` / `typescript`, light / dark / both | Emits WCAG contrast warnings instead of hiding them |
211
211
  | **`get_design_audit_plan`** | Localized, surface-aware checks with stable ids, severity, applicability, required evidence, remediation, selected principle checks, and UI-state coverage | The tool plans the audit but never pretends it inspected your project; missing evidence is `NOT_VERIFIED`, not `PASS` |
212
212
 
213
- **Catalog:** 48 styles · 25 visual design principles · 23 UX principles · 41 structured audit checks · 20 components · 5 surfaces · 57 UI-state recipes · 29 motion profiles · 14 product archetypes.
213
+ **Catalog:** 48 styles · 25 interface design principles · 23 UX principles · 41 structured audit checks · 20 components · 5 surfaces · 57 UI-state recipes · 29 motion profiles · 14 product archetypes.
214
214
 
215
215
  ## Localized output
216
216
 
@@ -310,6 +310,6 @@ source check.
310
310
  > attribute and link to [Laws of UX](https://lawsofux.com) (CC BY-NC-ND 4.0) and supporting
311
311
  > references; Laws of UX prose, illustrations, and page layouts are not bundled.
312
312
  >
313
- > Visual-design-principle entries form an independently authored, task-oriented review system for
313
+ > Interface-design-principle entries form an independently authored, task-oriented review system for
314
314
  > contemporary interfaces. They cover semantic structure, responsive reflow, localization, tokens
315
315
  > and themes, multiple input modes, complete state models, recovery, and motion preferences.
@@ -1,5 +1,5 @@
1
1
  export declare const SERVER_NAME = "web-stylebook";
2
- export declare const SERVER_VERSION = "0.5.0";
2
+ export declare const SERVER_VERSION = "0.5.1";
3
3
  export declare const SERVER_INSTRUCTIONS: string;
4
4
  export declare const TOOL_NAMES: readonly ["recommend_design_direction", "compare_design_directions", "get_design_principle_plan", "get_ux_principle_plan", "get_design_audit_plan", "get_ui_state_plan", "compose_design_tokens"];
5
5
  export declare const PROMPT_NAMES: readonly ["design-product", "design-screen", "complete-ui-states", "redesign-with-style", "audit-design-direction", "audit-design-principles", "audit-ux-principles"];
@@ -1,5 +1,5 @@
1
1
  export const SERVER_NAME = 'web-stylebook';
2
- export const SERVER_VERSION = '0.5.0';
2
+ export const SERVER_VERSION = '0.5.1';
3
3
  export const SERVER_INSTRUCTIONS = [
4
4
  'Use Web Stylebook before implementing or redesigning UI. Start with recommend_design_direction using product context, then read webstylebook://styles/{id}, call get_design_principle_plan for the layout concerns/surface/phase, call get_ux_principle_plan for the task outcomes/surface/phase, call get_ui_state_plan for each surface, and compose_design_tokens for tokens. After implementation call get_design_audit_plan and inspect the actual rendered/code/interaction evidence for every included check; missing evidence is NOT_VERIFIED, never PASS. Use design principles as practical placement and visual-review guidance rather than a fixed recipe. Treat UX principles as evidence-labeled decision prompts, not universal laws; accessibility, safety, informed consent, and truthful feedback take priority.',
5
5
  'Treat results as evidence, not code; do not blindly choose candidates[0]. The chosen style is a starting tone, not a layout mold: compose the components the brief needs and adapt the style to fit (override fonts/grid where it calls for it), not a generic page in that style. Compose the opening from the product’s single most important object/action/feeling, not the SaaS template. Two columns (copy beside a visual) are fine, but the visual must be a bespoke demonstration of THIS product’s core mechanic — NOT generic furniture (a stock photo, an abstract blob, generic app chrome, or a card you could paste onto another product); a decorative seam bridging the columns does not launder a generic visual. Avoid the all-text centered-stack and giant-word defaults too, and cap opening prose at a headline + one short line + one action. Don’t default to the AI headline cadence either — an evocative noun-phrase fragment with one word italicized in the accent color, repeated on every product; the headline must be specific to THIS product (paste-test: it couldn’t sit on a competitor by swapping a noun) and vary its form and emphasis each time. For open-ended UI work, first ask a short intake (available image/brand assets or whether to source license-free sample imagery, and anything to emphasize), then present 2-3 candidate directions that differ in opening STRUCTURE (not just color/tone) and wait for user approval before final component/system implementation; once a direction is approved, confirm scope and open details (deliverable, stack, real content/data, target devices) before building. This server is deterministic, read-only, offline, and does not access the project filesystem.',
@@ -1,6 +1,6 @@
1
1
  {
2
- "catalogVersion": "0.5.0",
3
- "contentHash": "sha256:5e8683ef698ef3e8cb1f49d56f9112feac4c790cdf925e276be543f2cad957da",
2
+ "catalogVersion": "0.5.1",
3
+ "contentHash": "sha256:da77be7ea9b3a6a3df9d8c9ff33736ba8f6ff44bae01a6c66c41f6c1ebf7fdcd",
4
4
  "data": {
5
5
  "componentCategories": [
6
6
  {
@@ -2821,16 +2821,16 @@
2821
2821
  ],
2822
2822
  "apply": [
2823
2823
  {
2824
- "en": "Use short interruptible transitions, respect system preference, replace spatial travel with fades or instant updates, and never make motion the only feedback.",
2825
- "ja": "短く中断可能な遷移を使い、system設定を尊重し、空間移動はfadeや即時更新に替え、動きだけでfeedbackしないでください。",
2826
- "ko": "짧고 중단 가능한 전환을 쓰고 시스템 선호를 존중하며 공간 이동은 페이드나 즉시 갱신으로 대체하고 동작만으로 피드백하지 마세요."
2824
+ "en": "Acknowledge the action immediately, reveal the changed object where it now belongs, keep transitions brief and interruptible, and show the same text or state cue when reduced motion is preferred.",
2825
+ "ja": "操作をすぐに受け付け、変わった対象を実際の位置に示します。遷移は短く中断可能にし、動きを減らす設定では同じ文字や状態表示とともに即時更新します。",
2826
+ "ko": "행동을 즉시 확인해 주고 바뀐 대상을 실제 위치에 보여주세요. 전환은 짧고 중단 가능하게 하며, 동작 축소 설정에서는 같은 텍스트나 상태 표시와 함께 즉시 갱신하세요."
2827
2827
  }
2828
2828
  ],
2829
2829
  "category": "states-feedback-recovery",
2830
2830
  "caution": {
2831
- "en": "Decorative motion must not delay action, compete with status, trigger discomfort, or make a broken transition feel polished.",
2832
- "ja": "装飾的動きで操作を遅らせ、状態と競合し、不快感を生み、壊れた遷移をごまかしてはいけません。",
2833
- "ko": "장식 동작이 행동을 늦추거나 상태와 경쟁하거나 불편을 유발하거나 깨진 전환을 그럴듯하게 가리게 하지 마세요."
2831
+ "en": "Do not use decorative motion to delay action, replace status text, pull attention away from the result, or disguise a broken transition.",
2832
+ "ja": "装飾的な動きで操作を遅らせ、状態文を置き換え、結果から注意をそらし、壊れた遷移をごまかしてはいけません。",
2833
+ "ko": "장식 움직임으로 행동을 늦추거나 상태 문구를 대신하거나 결과에서 주의를 빼앗거나 깨진 전환을 그럴듯하게 가리지 마세요."
2834
2834
  },
2835
2835
  "concernTags": [
2836
2836
  "focus",
@@ -2839,15 +2839,15 @@
2839
2839
  "restraint"
2840
2840
  ],
2841
2841
  "designQuestion": {
2842
- "en": "What relationship becomes clearer because this element moves, and how is the same change understood without motion?",
2843
- "ja": "この要素が動くことで何が明確になり、動きなしで同じ変化をどう理解できますか。",
2844
- "ko": "이 요소가 움직여 어떤 관계가 더 분명해지며 동작 없이 같은 변화를 어떻게 이해하나요?"
2842
+ "en": "After something is pressed, what changed, where did it change, and can that be understood without motion?",
2843
+ "ja": "何を押して何が変わったのか、動きがなくても理解できますか。",
2844
+ "ko": "무엇을 눌러 무엇이 바뀌었는지, 움직임이 없어도 알 수 있나요?"
2845
2845
  },
2846
2846
  "id": "motion-and-preference",
2847
2847
  "name": {
2848
- "en": "Use motion for cause and effect",
2849
- "ja": "原因と結果のために動きを使う",
2850
- "ko": "원인과 결과를 위해 동작 사용하기"
2848
+ "en": "Use motion to explain what changed",
2849
+ "ja": "動きで何が変わったかを説明する",
2850
+ "ko": "움직임으로 무엇이 바뀌었는지 설명하기"
2851
2851
  },
2852
2852
  "phaseTags": [
2853
2853
  "interaction",
@@ -2855,9 +2855,9 @@
2855
2855
  ],
2856
2856
  "placement": [
2857
2857
  {
2858
- "en": "Keep motion near the changing object, preserve its focus and spatial origin, and show persistent progress when duration is uncertain.",
2859
- "ja": "動きを変化対象の近くに置き、focusと空間的起点を保ち、時間が不確かなら持続する進行状態を示します。",
2860
- "ko": "동작을 변화하는 객체 가까이에 두고 포커스와 공간적 출발점을 유지하며 시간이 불확실하면 지속적인 진행 상태를 보여주세요."
2858
+ "en": "Keep the control and the affected result in the same visual context so the eye can follow action to outcome.",
2859
+ "ja": "押したコントロールと影響を受けた結果を同じ視覚文脈に置き、操作から結果まで視線が続くようにします。",
2860
+ "ko": "누른 컨트롤과 영향을 받은 결과를 같은 시각 맥락에 두어 행동에서 결과까지 시선이 이어지게 하세요."
2861
2861
  }
2862
2862
  ],
2863
2863
  "references": [],
@@ -2870,9 +2870,9 @@
2870
2870
  "mental-model"
2871
2871
  ],
2872
2872
  "summary": {
2873
- "en": "Use motion only to explain origin, destination, progress, hierarchy, or state change, with an equivalent reduced-motion path.",
2874
- "ja": "起点、到達、進行、階層、状態変化を説明するときだけ動きを使い、同等の動き削減経路を用意します。",
2875
- "ko": "출발·도착·진행·위계·상태 변화를 설명할 때만 동작을 쓰고 동등한 동작 축소 경로를 제공합니다."
2873
+ "en": "Connect the action a person took to the result that changed on screen.",
2874
+ "ja": "利用者が行った操作と、画面で変わった結果を自然につなぎます。",
2875
+ "ko": "사용자가 누른 행동과 화면에서 바뀐 결과를 자연스럽게 연결합니다."
2876
2876
  },
2877
2877
  "surfaceTags": [
2878
2878
  "global",
@@ -2880,9 +2880,9 @@
2880
2880
  ],
2881
2881
  "verify": [
2882
2882
  {
2883
- "en": "Default and reduced-motion modes preserve state comprehension, focus, reading position, cancellation, performance, and no unexpected autoplay.",
2884
- "ja": "既定・動き削減で状態理解、focus、読位置、取消、性能を保ち、予期しない自動再生がないか確認します。",
2885
- "ko": "기본·동작 축소 모드가 상태 이해·포커스·읽기 위치·취소·성능을 지키고 예기치 않은 자동 재생이 없는지 확인하세요."
2883
+ "en": "With animation disabled, the control label, changed object, status text, focus, and reading position still communicate the same cause and result.",
2884
+ "ja": "アニメーションを無効にしても、コントロールのラベル、変化した対象、状態文、フォーカス、読書位置だけで同じ原因と結果が伝わるか確認します。",
2885
+ "ko": "애니메이션을 꺼도 컨트롤 라벨·바뀐 대상·상태 문구·포커스·읽기 위치만으로 같은 원인과 결과를 이해할 수 있는지 확인하세요."
2886
2886
  }
2887
2887
  ]
2888
2888
  }
@@ -7320,9 +7320,9 @@
7320
7320
  "id": "principles",
7321
7321
  "items": [
7322
7322
  {
7323
- "en": "every design principle selected by get_design_principle_plan appears in design.md with the placement decision it produced and its observable verification check — not just its name",
7324
- "ja": "get_design_principle_planで選んだ視覚デザイン原則が、名前だけでなくその原則が生んだ配置の判断と観察可能な検証基準までdesign.mdに残っている",
7325
- "ko": "get_design_principle_plan으로 고른 시각 디자인 원칙이 이름만이 아니라 그 원칙이 만든 배치 결정과 관찰 가능한 검증 기준까지 design.md에 남아 있음"
7323
+ "en": "every interface design principle selected by get_design_principle_plan appears in design.md with the placement decision it produced and its observable verification check — not just its name",
7324
+ "ja": "get_design_principle_planで選んだインターフェースデザイン原則が、名前だけでなくその原則が生んだ配置の判断と観察可能な検証基準までdesign.mdに残っている",
7325
+ "ko": "get_design_principle_plan으로 고른 인터페이스 디자인 원칙이 이름만이 아니라 그 원칙이 만든 배치 결정과 관찰 가능한 검증 기준까지 design.md에 남아 있음"
7326
7326
  },
7327
7327
  {
7328
7328
  "en": "every UX principle selected by get_ux_principle_plan keeps its caution and its evidence confidence label (strong / contextual / contested); no contextual or contested principle is restated as a law",
@@ -1,6 +1,6 @@
1
1
  {
2
- "catalogVersion": "0.5.0",
3
- "contentHash": "sha256:5e8683ef698ef3e8cb1f49d56f9112feac4c790cdf925e276be543f2cad957da",
2
+ "catalogVersion": "0.5.1",
3
+ "contentHash": "sha256:da77be7ea9b3a6a3df9d8c9ff33736ba8f6ff44bae01a6c66c41f6c1ebf7fdcd",
4
4
  "counts": {
5
5
  "auditChecks": 41,
6
6
  "components": 20,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "web-stylebook-mcp",
3
- "version": "0.5.0",
4
- "description": "Design intelligence for coding agents — choose a direction, apply visual and UX principles, cover real UI states, and compose design tokens.",
3
+ "version": "0.5.1",
4
+ "description": "Design intelligence for coding agents — choose a direction, apply interface-design and UX principles, cover real UI states, and compose design tokens.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": { "name": "Web Stylebook", "url": "https://webstylebook.com" },