# dsh-plugin-prism-design [Health: Active]

**Category:** 📐 Architecture & Design  
**Repository:** https://github.com/lnksoul1/prism-ui-design  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/dsh-plugin-prism-design

## Description
Prism design tools in the DeepSeek Harness: connects the packaged Prism MCP server and adds a live preview panel (left rail, or a right-Sidebar tab).

## Tools
Capabilities this server exposes over MCP:

- **ui_generate_color_palette** — Harmonious palettes from a base colour (6 harmony schemes)
- **ui_suggest_typography** — Curated font pairings with Google Fonts links
- **ui_generate_type_scale** — Modular type scales (golden ratio, perfect fourth, …)
- **ui_generate_spacing_scale** — Spacing systems (linear, geometric, fibonacci)
- **ui_generate_shadow_system** — Elevation shadow sets (subtle, medium, sharp)
- **ui_generate_border_radius_scale** — Radius scales (sharp, subtle, rounded, pill)
- **ui_check_color_contrast** — WCAG 2.1 contrast ratios with AA/AAA grading
- **ui_generate_gradient** — CSS gradients with harmonious stops
- **ui_suggest_breakpoints** — Responsive breakpoint systems (Tailwind, Bootstrap, Material)
- **ui_generate_design_tokens** — A complete token system in one call
- **design_init** — Start a session (neutral default tokens + optional base colour)
- **design_add_component** — Add a component by type, with validated props
- **design_update_component** — Update props, layout, visibility, lock
- **design_rename_component** — Rename a layer
- **design_remove_component** — Remove a component
- **design_reorder_component** — Reorder siblings
- **design_align_components** — Align/distribute (single undo step)
- **design_z_order_component** — Stacking: front/back/forward/backward
- **design_set_token** — Set one token
- **design_set_theme** — Light/dark
- **design_apply_template** — One of 5 page templates
- **design_add_page** — Multi-page sessions
- **design_get_state** — Read the whole session (tokens, pages, components, activity)
- **design_get_conflicts** — Token contrast conflicts
- **design_undo** — History (50 snapshots)
- **design_save_project** — Persist and restore a session as `.prism.json
- **design_audit_accessibility** — WCAG-oriented audit with a 0–100 score
- **design_suggest_improvements** — Heuristic review: structure, density, motion, a11y, tokens
- **design_render_preview** — Standalone HTML preview (PNG when Playwright is installed)
- **design_preview_sync** — Write the live-preview file so a watching viewer shows the latest design
- **design_export** — html / react / vue / react-ts / svelte / css / presentation / flutter / swiftui
- **design_export_tokens** — DTCG / CSS / Style Dictionary / Figma Tokens / DESIGN.md / Tailwind v4
- **design_import_tokens** — Import DTCG tokens (replace / merge-overwrite / merge-keep)
- **design_import_webpage** — Import a URL or pasted HTML as components
- **design_import_design_md** — Import tokens from a Google DESIGN.md document
- **design_semantic_style** — Map adjectives ("warm", "温暖") onto measurable token deltas
- **design_list_capabilities** — The manifest

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/lnksoul1/prism-ui-design), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install
```

2. Run:

```sh
npm run build
```

3. Start the server:

```sh
npm start            # speak MCP over stdio
```

## Documentation

## What dsh-plugin-prism-design does

dsh-plugin-prism-design brings Prism design workflows into DeepSeek Harness. The bundled MCP server gives an agent access to 42 tools, four resources, and three prompts over stdio. It supports both isolated design-system generation and stateful page construction.

The generator tools cover color harmonies, font pairings, modular type scales, spacing systems, elevation shadows, border-radius scales, WCAG 2.1 contrast checks, gradients, responsive breakpoints, and complete token sets. Stateful tools initialize a session, add and modify components, manage pages, change themes and tokens, reorder or align layers, undo changes, and persist projects as `.prism.json` files.

## How it works

The agent communicates with the bundled Prism process through MCP over stdio. Prism keeps the active design in a state store and can restore an autosave checkpoint when configured to do so. A session contains tokens, pages, components, and activity, which the agent can read with `design_get_state`.

Pages can use 38 component types, including navigation, heroes, cards, forms, grids, tables, tabs, pricing sections, and imported HTML fragments. Component properties are validated with schemas. Five page templates are available through `design_apply_template`.

For visual inspection, `design_render_preview` creates a standalone HTML preview and can create a PNG when Playwright is installed. `design_preview_sync` writes the latest page to one stable file with a revision stamp. The DeepSeek Harness plugin watches this workflow through its Prism Preview panel.

## Setup and configuration

Install dependencies, build the project, and start the MCP process:

```bash
npm install
npm run build
npm start
```

A stdio client can launch the compiled server with a configuration like this:

```json
{
  "mcpServers": {
    "prism": {
      "command": "node",
      "args": ["/absolute/path/to/prism/dist/index.js"]
    }
  }
}
```

Node.js 18 or newer is supported. Optional configuration includes `PRISM_PROJECT_DIR` for saved projects, `PRISM_AUTOSAVE` and `PRISM_AUTOLOAD` for checkpoint behavior, `PRISM_PREVIEW_FILE` for the synchronized preview path, and `PRISM_PREVIEWS_DIR` for rendered PNGs. The default project directory is `~/.prism/projects`.

## Tools and capabilities

- Generate palettes, typography suggestions, type scales, spacing scales, shadows, radii, gradients, breakpoints, and token systems.
- Create, update, rename, remove, align, reorder, and restack components.
- Add pages, switch pages, set themes, modify tokens, and apply templates.
- Save, load, list, undo, and redo stateful design projects.
- Audit accessibility with a 0–100 score and inspect token contrast conflicts.
- Suggest improvements for structure, density, motion, accessibility, and tokens.
- Export HTML, React, React-TS, Vue, Svelte, CSS, presentations, Flutter, and SwiftUI.
- Export tokens as DTCG, CSS custom properties, Style Dictionary, Figma Tokens, Tailwind v4 `@theme`, or `DESIGN.md`.
- Import DTCG tokens, web pages, and Google `DESIGN.md` token documents.

## Limitations and notes

Communication uses stdio; the project does not provide an HTTP server or dashboard. Prism has no built-in LLM or API-key channel, so the connected MCP agent supplies the intelligence. Exported pages are self-contained and use pure CSS animation rather than a CDN runtime. PNG preview output depends on Playwright being installed.

_Full upstream README: https://allmcps.com/mcp/dsh-plugin-prism-design/readme_

