3.8 KiB
DSS - Design System Server
FIRST: Enable DSS MCP Tools
Before starting work, check if DSS tools are available. If you don't see dss_* tools in your available MCP tools, run:
./scripts/setup-mcp.sh
Then tell the user: "I've configured the DSS MCP server. Please restart Claude Code to load the DSS tools, then continue this conversation."
The DSS MCP server provides 40+ design system tools for Figma sync, token management, component generation, and project analysis.
Manual verification
Check if .claude/mcp.json exists and has valid paths:
commandshould point to.venv/bin/python3(must exist)argsshould point todss-claude-plugin/servers/dss-mcp-server.py(must exist)
Project Structure
dss/
├── dss/ # Core Python library
│ ├── mcp_server/ # MCP server implementation
│ ├── analyze/ # Code analysis tools
│ ├── ingest/ # Token ingestion
│ ├── figma/ # Figma integration
│ ├── storybook/ # Storybook generation
│ └── storage/ # JSON-based storage
├── apps/
│ ├── api/ # FastAPI server (port 6220)
│ └── cli/ # TypeScript CLI
├── admin-ui/ # Admin dashboard (port 6221)
├── dss-claude-plugin/ # Claude Code MCP plugin
│ └── servers/ # MCP server scripts
└── scripts/ # Setup & utility scripts
Standard Ports
| Service | Port |
|---|---|
| API Server | 6220 |
| Admin UI | 6221 |
| MCP Server | 6222 |
| Storybook | 6226 |
Development Setup
# Python environment
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Admin UI
cd admin-ui && npm install
# Generate MCP config
./scripts/setup-mcp.sh
Starting Services
# API Server
source .venv/bin/activate
PYTHONPATH="/path/to/dss:/path/to/dss/apps/api" uvicorn apps.api.server:app --host 0.0.0.0 --port 6220
# Admin UI
cd admin-ui && npm run dev
Key Files
dss/mcp_server/handler.py- MCP tool execution handlerdss/storage/json_store.py- JSON-based data storageapps/api/server.py- FastAPI server.claude/mcp.json- Local MCP configuration (generated)
Troubleshooting MCP Connection Issues
DSS MCP server fails to connect
If /mcp shows "Failed to reconnect to dss", check:
-
Virtual environment exists: The
.venvdirectory must exist with Python installed# If missing, create it: python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt -
MCP config paths are valid: Check
.claude/mcp.jsonpoints to existing files:.venv/bin/python3must existdss-claude-plugin/servers/dss-mcp-server.pymust exist
-
Restart Claude Code after fixing any configuration issues
Disabling unwanted MCP servers
MCP servers can be configured in multiple locations. Check all of these:
| Location | Used By |
|---|---|
~/.claude/mcp.json |
Claude Code (global) |
~/.config/claude/claude_desktop_config.json |
Claude Desktop app |
.claude/mcp.json (project) |
Claude Code (project-specific) |
../.mcp.json |
Parent directory inheritance |
To disable a server, remove its entry from the relevant config file and restart Claude Code.
Common issue: Figma MCP errors
If you see repeated MCP server "figma": No token data found errors, the figma server is likely configured in ~/.config/claude/claude_desktop_config.json. Remove the "figma" entry from that file.
Notes
- DSS uses JSON-based storage, not SQL database
- The
dss/mcp_server/directory was renamed fromdss/mcp/to avoid shadowing the pipmcppackage - Integration configs (Figma, Jira, etc.) are stored encrypted when database is configured