|
| 1 | +# Claude Desktop Integration |
| 2 | + |
| 3 | +This guide shows how to integrate the WindRiver Studio MCP Server with Claude Desktop. |
| 4 | + |
| 5 | +## Prerequisites |
| 6 | + |
| 7 | +1. **Claude Desktop**: Download from [claude.ai](https://claude.ai/desktop) |
| 8 | +2. **Studio MCP Server**: Install via npm or build from source |
| 9 | +3. **Studio Access**: Valid WindRiver Studio credentials |
| 10 | + |
| 11 | +## Configuration Steps |
| 12 | + |
| 13 | +### 1. Create Configuration File |
| 14 | + |
| 15 | +Create a configuration file (e.g., `studio-config.json`): |
| 16 | + |
| 17 | +```json |
| 18 | +{ |
| 19 | + "connections": { |
| 20 | + "default": { |
| 21 | + "name": "My Studio", |
| 22 | + "url": "https://your-studio-instance.com", |
| 23 | + "username": "your-username" |
| 24 | + } |
| 25 | + }, |
| 26 | + "cli": { |
| 27 | + "download_base_url": "https://distro.windriver.com/dist/wrstudio/wrstudio-cli-distro-cd", |
| 28 | + "version": "auto", |
| 29 | + "auto_update": true |
| 30 | + }, |
| 31 | + "cache": { |
| 32 | + "enabled": true, |
| 33 | + "max_memory_mb": 50 |
| 34 | + } |
| 35 | +} |
| 36 | +``` |
| 37 | + |
| 38 | +### 2. Configure Claude Desktop |
| 39 | + |
| 40 | +#### Option A: Using npm package (Recommended) |
| 41 | + |
| 42 | +Add to your Claude Desktop MCP configuration file: |
| 43 | + |
| 44 | +**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` |
| 45 | +**Windows**: `%APPDATA%\Claude\claude_desktop_config.json` |
| 46 | + |
| 47 | +```json |
| 48 | +{ |
| 49 | + "mcpServers": { |
| 50 | + "windrive-studio": { |
| 51 | + "command": "npx", |
| 52 | + "args": [ |
| 53 | + "@pulseengine/studio-mcp-server@latest", |
| 54 | + "/path/to/your/studio-config.json" |
| 55 | + ] |
| 56 | + } |
| 57 | + } |
| 58 | +} |
| 59 | +``` |
| 60 | + |
| 61 | +#### Option B: Using compiled binary |
| 62 | + |
| 63 | +```json |
| 64 | +{ |
| 65 | + "mcpServers": { |
| 66 | + "windrive-studio": { |
| 67 | + "command": "/path/to/studio-mcp-server", |
| 68 | + "args": ["/path/to/your/studio-config.json"] |
| 69 | + } |
| 70 | + } |
| 71 | +} |
| 72 | +``` |
| 73 | + |
| 74 | +### 3. Set Credentials |
| 75 | + |
| 76 | +#### Environment Variables (Recommended) |
| 77 | + |
| 78 | +Set your Studio password as an environment variable: |
| 79 | + |
| 80 | +**macOS/Linux**: |
| 81 | +```bash |
| 82 | +export STUDIO_PASSWORD="your-password" |
| 83 | +``` |
| 84 | + |
| 85 | +**Windows**: |
| 86 | +```cmd |
| 87 | +set STUDIO_PASSWORD=your-password |
| 88 | +``` |
| 89 | + |
| 90 | +#### Keyring Storage |
| 91 | + |
| 92 | +For persistent credential storage, use keyring authentication: |
| 93 | + |
| 94 | +```json |
| 95 | +{ |
| 96 | + "connections": { |
| 97 | + "default": { |
| 98 | + "name": "My Studio", |
| 99 | + "url": "https://your-studio-instance.com", |
| 100 | + "username": "your-username", |
| 101 | + "auth_method": "keyring" |
| 102 | + } |
| 103 | + } |
| 104 | +} |
| 105 | +``` |
| 106 | + |
| 107 | +Then set credentials: |
| 108 | +```bash |
| 109 | +npx @pulseengine/studio-mcp-server@latest --set-password studio-config.json |
| 110 | +``` |
| 111 | + |
| 112 | +### 4. Restart Claude Desktop |
| 113 | + |
| 114 | +Restart Claude Desktop to load the new MCP server configuration. |
| 115 | + |
| 116 | +## Testing the Integration |
| 117 | + |
| 118 | +### Basic Connection Test |
| 119 | + |
| 120 | +Ask Claude: |
| 121 | +``` |
| 122 | +"Can you check if the Studio MCP server is working?" |
| 123 | +``` |
| 124 | + |
| 125 | +Claude should respond with server status information. |
| 126 | + |
| 127 | +### Pipeline Queries |
| 128 | + |
| 129 | +Try these example queries: |
| 130 | + |
| 131 | +``` |
| 132 | +"Show me all my Studio pipelines" |
| 133 | +``` |
| 134 | + |
| 135 | +``` |
| 136 | +"What's the status of my recent pipeline runs?" |
| 137 | +``` |
| 138 | + |
| 139 | +``` |
| 140 | +"List all active pipelines in my default project" |
| 141 | +``` |
| 142 | + |
| 143 | +### Resource Exploration |
| 144 | + |
| 145 | +``` |
| 146 | +"What Studio resources are available through MCP?" |
| 147 | +``` |
| 148 | + |
| 149 | +``` |
| 150 | +"Show me the structure of my Studio workspace" |
| 151 | +``` |
| 152 | + |
| 153 | +## Advanced Configuration |
| 154 | + |
| 155 | +### Multiple Studio Instances |
| 156 | + |
| 157 | +Configure multiple Studio environments: |
| 158 | + |
| 159 | +```json |
| 160 | +{ |
| 161 | + "connections": { |
| 162 | + "production": { |
| 163 | + "name": "Production Studio", |
| 164 | + "url": "https://prod-studio.company.com", |
| 165 | + "username": "prod-user" |
| 166 | + }, |
| 167 | + "staging": { |
| 168 | + "name": "Staging Studio", |
| 169 | + "url": "https://staging-studio.company.com", |
| 170 | + "username": "staging-user" |
| 171 | + } |
| 172 | + } |
| 173 | +} |
| 174 | +``` |
| 175 | + |
| 176 | +### Performance Tuning |
| 177 | + |
| 178 | +For better performance with frequent queries: |
| 179 | + |
| 180 | +```json |
| 181 | +{ |
| 182 | + "cache": { |
| 183 | + "enabled": true, |
| 184 | + "max_memory_mb": 100, |
| 185 | + "ttl": { |
| 186 | + "immutable": 7200, |
| 187 | + "completed": 172800, |
| 188 | + "semi_dynamic": 1200, |
| 189 | + "dynamic": 120 |
| 190 | + } |
| 191 | + }, |
| 192 | + "server": { |
| 193 | + "max_concurrent_requests": 5, |
| 194 | + "timeout_seconds": 45 |
| 195 | + } |
| 196 | +} |
| 197 | +``` |
| 198 | + |
| 199 | +## Troubleshooting |
| 200 | + |
| 201 | +### Server Not Connecting |
| 202 | + |
| 203 | +1. **Check configuration**: |
| 204 | + ```bash |
| 205 | + npx @pulseengine/studio-mcp-server@latest --check-config studio-config.json |
| 206 | + ``` |
| 207 | + |
| 208 | +2. **Test Studio connection**: |
| 209 | + ```bash |
| 210 | + npx @pulseengine/studio-mcp-server@latest --test-connection studio-config.json |
| 211 | + ``` |
| 212 | + |
| 213 | +3. **Check Claude Desktop logs**: |
| 214 | + - **macOS**: `~/Library/Logs/Claude/mcp.log` |
| 215 | + - **Windows**: `%LOCALAPPDATA%\Claude\logs\mcp.log` |
| 216 | + |
| 217 | +### Authentication Issues |
| 218 | + |
| 219 | +1. **Verify credentials**: |
| 220 | + ```bash |
| 221 | + echo $STUDIO_PASSWORD # Should show your password |
| 222 | + ``` |
| 223 | + |
| 224 | +2. **Test manual login**: |
| 225 | + ```bash |
| 226 | + studio-cli login --url https://your-studio-instance.com --username your-username |
| 227 | + ``` |
| 228 | + |
| 229 | +3. **Check keyring storage**: |
| 230 | + ```bash |
| 231 | + npx @pulseengine/studio-mcp-server@latest --check-auth studio-config.json |
| 232 | + ``` |
| 233 | + |
| 234 | +### Performance Issues |
| 235 | + |
| 236 | +1. **Enable caching**: |
| 237 | + ```json |
| 238 | + { |
| 239 | + "cache": { |
| 240 | + "enabled": true, |
| 241 | + "max_memory_mb": 100 |
| 242 | + } |
| 243 | + } |
| 244 | + ``` |
| 245 | + |
| 246 | +2. **Increase timeouts**: |
| 247 | + ```json |
| 248 | + { |
| 249 | + "server": { |
| 250 | + "timeout_seconds": 60 |
| 251 | + } |
| 252 | + } |
| 253 | + ``` |
| 254 | + |
| 255 | +3. **Monitor performance**: |
| 256 | + ```json |
| 257 | + { |
| 258 | + "server": { |
| 259 | + "enable_metrics": true |
| 260 | + } |
| 261 | + } |
| 262 | + ``` |
| 263 | + |
| 264 | +## Next Steps |
| 265 | + |
| 266 | +- Explore [workflow examples](pipeline-automation.md) |
| 267 | +- Set up [monitoring and alerts](monitoring-setup.md) |
| 268 | +- Review [best practices](../docs/best-practices.md) |
| 269 | +- Check out [advanced integrations](vscode-integration.md) |
0 commit comments