Unify MCP across clients; remove legacy plugin server
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
This commit is contained in:
@@ -20,11 +20,11 @@ Single entry point for all DSS initialization. Handles MCP config, dependencies,
|
||||
## Full Workflow (15 steps)
|
||||
|
||||
1. **Reset** (with --reset) - Clear all DSS data
|
||||
2. **MCP Config** - Generate `.mcp.json`
|
||||
2. **MCP Config** - Generate `.claude/mcp.json` (local MCP server)
|
||||
3. **Dependencies** - Python venv, Node modules, admin-ui build
|
||||
4. **Environment** - Validate Python, Node, Figma token
|
||||
5. **Directory Structure** - Create `.dss/` folders
|
||||
6. **Database** - Initialize SQLite
|
||||
6. **Storage** - Initialize JSON data directories
|
||||
7. **Analyze Targets** - admin-ui, storybook stats
|
||||
8. **Token Structure** - Create base token files
|
||||
9. **3-Layer Validation** - Core, skins, themes
|
||||
|
||||
@@ -22,13 +22,12 @@ Without `--confirm`, runs in dry-run mode showing what would be deleted.
|
||||
## What This Clears
|
||||
|
||||
1. `.dss/data/` - Projects, teams, cache, activity
|
||||
2. `.dss/dss.db` - SQLite database
|
||||
3. `admin-ui/css/dss-*.css` - Generated CSS files
|
||||
4. `admin-ui/src/components/*.stories.js` - Generated stories
|
||||
5. `admin-ui/src/components/ds-*.js` - Generated components
|
||||
6. `dss/core_tokens/tokens.json` - Reset to empty
|
||||
7. `dss-claude-plugin/core/skins/*.json` - Reset to awaiting sync
|
||||
8. `.dss/logs/` - Clear log files
|
||||
2. `admin-ui/css/dss-*.css` - Generated CSS files
|
||||
3. `admin-ui/src/components/*.stories.js` - Generated stories
|
||||
4. `admin-ui/src/components/ds-*.js` - Generated components
|
||||
5. `dss/core_tokens/tokens.json` - Reset to empty
|
||||
6. `dss-claude-plugin/core/skins/*.json` - Reset to awaiting sync
|
||||
7. `.dss/logs/` - Clear log files
|
||||
|
||||
## Instructions for Claude
|
||||
|
||||
@@ -59,8 +58,6 @@ DRY RUN MODE - No changes will be made
|
||||
|
||||
1. Clearing .dss/data/ structure...
|
||||
Would run: rm -rf .dss/data/projects/* ...
|
||||
2. Resetting database...
|
||||
Would run: rm -f .dss/dss.db
|
||||
...
|
||||
|
||||
DRY RUN COMPLETE
|
||||
|
||||
@@ -34,9 +34,9 @@ Manage all DSS development services from a single command.
|
||||
|
||||
| Service | Port | Description |
|
||||
|---------|------|-------------|
|
||||
| api | 8000 | FastAPI REST server |
|
||||
| admin-ui | 3456 | Vite dev server |
|
||||
| storybook | 6006 | Storybook design docs |
|
||||
| api | 6220 | FastAPI REST server |
|
||||
| admin-ui | 6221 | Vite dev server |
|
||||
| storybook | 6226 | Storybook design docs |
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -71,25 +71,25 @@ When the user runs this command:
|
||||
3. For `status` action, show a table with service states
|
||||
|
||||
4. After `start`, provide clickable URLs:
|
||||
- API: http://localhost:8000
|
||||
- admin-ui: http://localhost:3456
|
||||
- Storybook: http://localhost:6006
|
||||
- API: http://localhost:6220
|
||||
- admin-ui: http://localhost:6221
|
||||
- Storybook: http://localhost:6226
|
||||
|
||||
## Service Details
|
||||
|
||||
### API Server (port 8000)
|
||||
### API Server (port 6220)
|
||||
- FastAPI REST API
|
||||
- Endpoints: projects, figma, health, config
|
||||
- Command: `uvicorn apps.api.server:app --reload`
|
||||
- Command: `uvicorn apps.api.server:app --host 0.0.0.0 --port 6220 --reload`
|
||||
- Log: `/tmp/dss-api.log`
|
||||
|
||||
### Admin UI (port 3456)
|
||||
### Admin UI (port 6221)
|
||||
- Preact/Vite development server
|
||||
- Design system management interface
|
||||
- Command: `npm run dev`
|
||||
- Log: `/tmp/dss-admin-ui.log`
|
||||
|
||||
### Storybook (port 6006)
|
||||
### Storybook (port 6226)
|
||||
- Component documentation
|
||||
- Token visualization
|
||||
- Command: `npm run storybook`
|
||||
@@ -104,6 +104,5 @@ If a service fails to start:
|
||||
|
||||
## Related Commands
|
||||
|
||||
- `/dss-setup` - Full environment setup
|
||||
- `/dss-init` - Initialize DSS structure
|
||||
- `/dss-init` - Full environment setup + initialization
|
||||
- `/dss-reset` - Reset to clean state
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
---
|
||||
name: dss-setup
|
||||
description: DEPRECATED - Use /dss-init instead
|
||||
arguments:
|
||||
- name: flags
|
||||
description: Optional flags (--reset, --skip-servers)
|
||||
required: false
|
||||
---
|
||||
|
||||
# DSS Setup Command (DEPRECATED)
|
||||
|
||||
**This command is deprecated. Use `/dss-init` instead.**
|
||||
|
||||
The `/dss-init` command now handles everything that `/dss-setup` did:
|
||||
- MCP configuration
|
||||
- Dependencies (Python venv, Node modules)
|
||||
- DSS initialization
|
||||
- Development servers
|
||||
|
||||
## Migration
|
||||
|
||||
| Old Command | New Command |
|
||||
|-------------|-------------|
|
||||
| `/dss-setup` | `/dss-init` |
|
||||
| `/dss-setup --reset` | `/dss-init --reset` |
|
||||
| `/dss-setup --skip-servers` | `/dss-init --skip-servers` |
|
||||
|
||||
## Instructions for Claude
|
||||
|
||||
When the user runs this command:
|
||||
|
||||
1. Inform them that `/dss-setup` is deprecated
|
||||
2. Run `/dss-init` with the same flags instead
|
||||
|
||||
```bash
|
||||
# Just run dss-init.sh directly
|
||||
scripts/dss-init.sh [flags]
|
||||
```
|
||||
@@ -143,5 +143,6 @@ CONFIGURATION CREATED
|
||||
- Controls configured
|
||||
|
||||
Run: npm run storybook
|
||||
Access: http://localhost:6006
|
||||
Access: http://localhost:6226
|
||||
```
|
||||
Note: DSS uses `6226` as its default Storybook port, but many target projects still run Storybook on `6006`/`6007`.
|
||||
|
||||
Reference in New Issue
Block a user