# ๐ง `mcp-viz configure` Interactive Demo
## What happens when you run `mcp-viz configure`
Here's the complete interactive experience users get:
```bash
$ mcp-viz configure
```
## ๐จ Interactive Setup Flow
### Step 1: Welcome & Status Check
```
๐ฏ MCP Data Visualization Server
Transform natural language into beautiful charts with Claude Desktop
๐ง Setting up Claude Desktop integration...
๐ Current Configuration Status:
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Setting โ Value โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Platform โ Windows โ
โ Config Path โ C:\Users\YourName\AppData\Roaming\... โ
โ Config Exists โ โ
Yes โ
โ Config Valid โ โ
Yes โ
โ Existing Servers โ None โ
โโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
### Step 2: Database Location Selection
```
๐ Configuration Options:
๐พ Database Location Options:
1. C:\Users\YourName\.mcp-visualization\data.duckdb โ
(recommended)
2. C:\Users\YourName\Documents\mcp-viz.duckdb
3. C:\Users\YourName\Desktop\data.duckdb
4. C:\Github\mcp-visualization-duckdb\data.duckdb
5. Custom path
Choose database location [1]: 1
```
### Step 3: Python Path Detection
```
Python executable [C:\Github\mcp-visualization-duckdb\.venv\Scripts\python.exe]:
(Press Enter to use detected path, or type custom path)
```
### Step 4: Configuration Preview
```
๐ Configuration Preview:
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Setting โ Value โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Server Name โ data-viz-server โ
โ Database โ C:\Users\YourName\.mcp-visualization\data.duckdb โ
โ Python Path โ C:\Github\mcp-visualization-duckdb\.venv\Scripts\... โ
โ Config File โ C:\Users\YourName\AppData\Roaming\Claude\... โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Proceed with configuration? [Y/n]: Y
```
### Step 5: Automatic Setup
```
๐ Applying configuration...
โ
Created directory: C:\Users\YourName\.mcp-visualization
โ
Created backup: claude_desktop_config.json.backup
โ
Successfully configured 'data-viz-server' for Claude Desktop
โ
Created sample database with 3 tables
๐ Next steps:
1. Restart Claude Desktop completely
2. Open a new conversation
3. Try: "What MCP servers are available?"
4. Try: "List available tables"
โน๏ธ Your MCP Data Visualization Server is ready! ๐
```
## ๐ฏ What This Replaces
### Before (Manual Setup)
Users had to manually:
1. Find Claude Desktop config file location
2. Edit JSON configuration by hand
3. Figure out correct paths for their system
4. Set environment variables
5. Create database manually
### After (Interactive Setup)
The CLI automatically:
1. **Detects platform** (Windows/Mac/Linux)
2. **Finds Claude config** file location
3. **Suggests smart paths** based on platform
4. **Creates directories** as needed
5. **Backs up existing** configuration
6. **Validates setup** before finishing
7. **Creates sample data** for immediate use
## ๐ง CLI Options
### Quick Setup (No Prompts)
```bash
mcp-viz configure --auto
# Uses all defaults, perfect for scripts
```
### Force Reconfiguration
```bash
mcp-viz configure --force
# Updates existing configuration
```
### Custom Parameters
```bash
mcp-viz configure --database-path ./my-data.duckdb --python-path /usr/bin/python3
# Pre-specify options
```
## ๐ ๏ธ Other CLI Commands
### Check Status
```bash
$ mcp-viz status
๐ MCP Data Visualization Server Status
๐ฅ๏ธ Platform Information:
โโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Setting โ Value โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Operating System โ Windows โ
โ Config Path โ C:\Users\YourName\AppData\Roaming\... โ
โ Config Directory โ โ
Exists โ
โ Config File โ โ
Exists โ
โโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Configuration Validation:
โ
Configuration valid with 1 server(s)
๐ง Configured MCP Servers:
1. data-viz-server
๐งช Server Import Test:
โ
Server code can be imported successfully
```
### Test Functionality
```bash
$ mcp-viz test
๐งช Testing MCP Data Visualization Server
Running: Import server module... โ
PASS
Running: Claude Desktop config detection... โ
PASS
Running: Database path creation... โ
PASS
โ
All 3 tests passed! ๐
```
### Create Sample Database
```bash
$ mcp-viz create-db
๐๏ธ Creating new database with sample data...
โ
Database created: C:\Users\YourName\.mcp-visualization\data.duckdb
โน๏ธ Database includes sample tables: sales, customers, products
```
### Remove Configuration
```bash
$ mcp-viz remove
๐๏ธ Removing MCP server configuration...
Remove server 'data-viz-server' from Claude Desktop configuration? (y/N): y
โ
Successfully removed 'data-viz-server' from Claude Desktop
โน๏ธ Please restart Claude Desktop to apply changes
```
## ๐จ Rich Terminal UI
The CLI uses the **Rich** library for beautiful terminal output:
- **Colored text** and emojis for better UX
- **Tables** for organized information display
- **Progress indicators** during setup
- **Interactive prompts** with smart defaults
- **Error handling** with helpful suggestions
## ๐ Complete User Flow
```bash
# 1. Install package
pip install mcp-visualization-duckdb
# 2. Run interactive setup
mcp-viz configure
# (Beautiful interactive prompts guide user through setup)
# 3. Restart Claude Desktop
# 4. Start chatting with Claude:
# "What tables are available?"
# "Create a bar chart of sales by region"
# "Show me customer demographics"
```
**That's it!** No manual configuration, no environment variables, no complex setup. The CLI handles everything automatically with a beautiful, user-friendly interface. ๐