ScreenTimerAI

Guide

How to Create a Daily Productivity Report with Cline

Connect ScreenTimerAI to Cline via MCP and generate a daily screen time report directly in VS Code.

Published: April 10, 2026
Updated: April 10, 2026
Reading time: 3 min
Cline plus ScreenTimerAI equals a productivity report

What You Are Making

A Cline prompt that reads yesterday's screen time data from ScreenTimerAI and generates a short daily productivity report inside VS Code.

No extra tools. No browser. Just Cline and your data.

Why Cline

Cline (formerly known as Claude Dev) is an autonomous AI coding agent that runs as a VS Code extension. It can read, write, and execute code on your behalf — making it popular with developers who want an AI agent that handles complex multi-step workflows without leaving the editor. Connecting screen time tracking to Cline makes sense because the agent already orchestrates multi-tool tasks autonomously. Adding ScreenTimerAI gives Cline context about your actual work patterns so it can reason about productivity, not just code. The integration is seamless: Cline has first-class MCP support built directly into its settings panel, so adding a new MCP server takes seconds.

Step 1: Connect ScreenTimerAI To Cline

There are two ways to set this up:

Open the Cline sidebar panel in VS Code.

Click the MCP Servers icon (server icon in the top-right toolbar), then click "Configure MCP Servers".

This opens the config file. Add ScreenTimerAI:

"screentimerai-activities": {
  "command": "/Applications/ScreenTimerAI.app/Contents/MacOS/activity-mcp-server",
  "args": [],
  "disabled": false,
  "autoApprove": []
}

Save the file. Cline connects automatically.

Verify the server is connected by checking for a green dot next to the server name in the MCP Servers panel.

If you want to test that Step 1 worked, try one of these prompts in the Cline chat:

MCP functionTest prompt
get_current_activityWhat am I doing right now?
get_activity_logsGet my raw activity logs for yesterday.
show_activity_timelineShow me an activity timeline for yesterday.
summarize_activity_rangeSummarize my activity for yesterday.
analyze_focus_segmentsAnalyze my focus segments for yesterday afternoon.
show_focus_score_timelineShow me a focus score timeline for today.
show_focus_score_trendsShow me my focus score last week.

Step 2: Generate Your Daily Report

Open the Cline chat panel and paste this prompt:

Generate a daily productivity text report based on yesterday's Screen Time AI data.

Follow these steps:

1. Fetch yesterday's activity data from Screen Time AI.
2. Write a short productivity report (~150 words) from the perspective of a dark, witty productivity coach reacting to the data.

Rules:
- Focus more on failures than successes
- Use short, punchy sentences
- Be dark and witty, commanding not polished
- Swearing is allowed sparingly for impact
- Return only the final report text, nothing else

Return the report as plain text directly in the chat.

Cline will show each tool call and ask for approval. Approve the calls and the report appears in the chat.

Other Prompts To Try

The daily report is just a starting point. Here are more prompts you can paste into Cline to explore your screen time data in different ways:

  • Top apps breakdown: "Show me my top 5 apps by time spent yesterday." Useful for spotting which tools dominate your day and whether that matches your priorities.
  • Context-switch count: "How many context switches did I have yesterday afternoon?" High context-switch counts usually correlate with lower deep-work output. Track this over time to see if you are improving.
  • Week-over-week comparison: "Compare my screen time this week vs last week." A quick way to see trends without opening a dashboard. Cline will pull both ranges and summarize the difference.
  • Productive-hours analysis: "Analyze my focus segments for yesterday and identify my most productive hours." Great for finding your personal peak performance window so you can schedule deep work accordingly.

Troubleshooting

If something is not working after setup, check these common Cline-specific issues:

  • Server shows a red dot? The binary path is likely wrong or not executable. Double-check that /Applications/ScreenTimerAI.app/Contents/MacOS/activity-mcp-server exists. Click "Retry Connection" in the MCP Servers panel after fixing the path.
  • Tools not discovered? Make sure "disabled": false is set in the server config block. If the server was just added, restart VS Code so Cline re-reads the MCP settings file.
  • Too many approval popups? Add the tool names you trust (for example "get_activity_logs", "summarize_activity_range") to the autoApprove array in your MCP config. Cline will then execute those tools without asking each time.

What Happens Next

Every time you run the prompt, Cline pulls your latest screen time data through the MCP connection and generates a fresh report.

Use it as a quick daily check-in right inside your editor.