> ## Documentation Index
> Fetch the complete documentation index at: https://dashtray.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Examples

> Real-world examples using Dashtray MCP

# MCP Examples

Real-world examples of using Dashtray with Claude Desktop and Cline.

## Example 1: Claude Build Notifications

**Scenario:** You want Claude to notify you when code analysis is complete.

**Setup:**

1. Configure Dashtray MCP in Claude Desktop
2. Have your API key ready

**Usage:**

User prompt to Claude:

```
Analyze this React component for performance issues and let me know 
when you're done with a notification.
```

Claude will:

1. Analyze the component
2. Identify issues
3. Send a notification: "Code Analysis Complete - Found 3 optimization opportunities"
4. Continue the conversation

**Result:**
You get a notification on your phone while Claude continues working.

***

## Example 2: Cline Automation Status

**Scenario:** Cline is automating a deployment and you want status updates.

**Setup:**

1. Configure Dashtray MCP in Cline settings
2. Run your automation task

**Automation Script:**

```bash theme={null}
# Start deployment
cline deploy --env=production
# Cline sends notifications at key points:
# - "Deployment Started"
# - "Building Docker image..."
# - "Deployment Complete ✓"
```

**Notifications Received:**

* ✅ "Docker Build Complete" - 2m 15s
* ✅ "Tests Passed" - 1m 30s
* ✅ "Deployment Successful" - Version 2.1.0 live

***

## Example 3: Code Review Alerts

**Scenario:** Claude reviews your code and alerts you to critical issues.

**Setup:**
Configure Dashtray MCP, then ask Claude:

```
Review the authentication module for security issues.
Send me a high-priority notification if you find anything critical.
```

**Claude's Response:**

```
Reviewing the authentication code...

⚠️ Found a critical security issue:
- SQL injection vulnerability in user lookup query
- Plaintext password logging

[Sends notification]
title: "🔒 Critical Security Issue Found"
body: "SQL injection in auth module - see logs for details"
```

***

## Example 4: Meeting Preparation

**Scenario:** Claude helps prepare for a meeting and reminds you to start.

**Setup:**
Ask Claude to help prepare, then:

```
In 30 minutes, send me a notification reminding me 
the meeting starts at 3 PM.
```

**Claude's Response:**

```
I'll send you a reminder notification at the right time.

[Time passes...]

[Notification arrives]
title: "Meeting Starting Soon"
body: "Your 3 PM meeting with the team starts in 15 minutes"
```

***

## Example 5: Data Pipeline Status

**Scenario:** Monitoring a long-running data pipeline via Cline.

**Cline Task:**

```
Run the daily data pipeline and notify me at each stage
```

**Notifications Sent:**

1. "🚀 Pipeline Started" - Beginning data extraction
2. "📊 Extraction Complete" - 2.4M records processed
3. "🔄 Transformation Starting" - Cleaning and validating data
4. "✅ Pipeline Complete" - All data updated, ready for analysis

***

## Example 6: Research Task Status

**Scenario:** Claude researches a topic and provides periodic updates.

**Setup:**

```
Research the latest AI safety frameworks and send me 
notifications as you find important papers.
```

**Notifications Received:**

```
1. "Research Started" - Beginning systematic search
2. "Found: Constitutional AI Paper" - Added to research collection
3. "Found: Scaling Laws Research" - 12 related papers discovered
4. "Research Complete" - 47 papers analyzed, summary ready
```

***

## Example 7: Error Alerts

**Scenario:** Claude monitors your code and alerts you to critical errors.

**Setup:**

```
Watch the logs and send me a critical alert if there are 
any authentication failures or database connection issues.
```

**Notifications Sent (if errors occur):**

```
title: "🚨 Critical Error"
body: "Database connection failed - 15 requests queued"
```

***

## Example 8: Task Completion Workflow

**Scenario:** Complex multi-step task with progress notifications.

**Initial Request:**

```
1. Review the PR
2. Run tests
3. Deploy to staging
4. Run smoke tests
5. Notify me when everything is done
```

**Notifications Timeline:**

```
T+0m:   "🔍 Code Review Started"
T+2m:   "✅ Code Review Complete - 3 comments"
T+3m:   "🧪 Running Tests"
T+5m:   "✅ All Tests Passed - 156 tests"
T+6m:   "🚀 Deploying to Staging"
T+8m:   "✅ Deployment Complete"
T+9m:   "🧪 Running Smoke Tests"
T+11m:  "✅ All Smoke Tests Passed"
T+11m:  "🎉 Ready for Production"
```

***

## Example 9: Documentation Generation

**Scenario:** Claude generates API documentation and sends completion notification.

**Request:**

```
Generate API documentation from our OpenAPI spec. 
Send me a notification when it's ready for review.
```

**Response:**

```
Generating documentation...
- Processing 23 endpoints
- Creating examples for each
- Formatting for readability

[Notification arrives]
title: "📚 API Docs Ready"
body: "Generated 45-page API reference. Ready for review."
```

***

## Example 10: Custom Alerts

**Scenario:** Set up custom alerts for different scenarios.

**Claude Setup:**

```
From now on:
- For successes: start the title with ✅
- For warnings: start the title with ⚠️
- For errors: start the title with ❌
```

**Then use naturally:**

```
"Great! The module is optimized. Let me notify you."
→ ✅ The module is optimized

"⚠️ Found a deprecated API. Sending warning..."
→ ⚠️ Deprecated API found

"❌ Build failed. Critical alert..."
→ ❌ Build failed
```

***

## Tips & Tricks

✅ **Batch Notifications** - Group related updates into one notification
✅ **Emoji in Titles** - Use emoji in titles for scannability from the lock screen
✅ **Clear Titles** - Make titles scannable from lock screen
✅ **Action Items** - Include specific next steps in the body

***

## Next Steps

* 🧠 [Claude Desktop Setup](/integration/claude-desktop)
* 🤖 [Cline Setup](/integration/cline)
* 📖 [Tool Reference](/mcp/tools)
* 🔧 [API Reference](/api-reference/overview)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.