Logo di Timewarp

Timewarp

Community
vinistoisr

Windows focus tracker with MCP server for AI-powered timecard generation. Tracks active windows, stitches sessions, extracts project numbers, and exposes data to Claude. Also exports Prometheus metrics.

Pubblicato davinistoisr
Repositorytimewarp
LinguaGo
Fork
2
Stelle
7
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Timewarp mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 0

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 7; fork: 2 (repository collegato).

Timewarp

TL;DR

Timewarp helps you fill out your timesheets without having to keep track yourself.

It runs quietly on your Windows PC and watches which window is in front — that's it. It notes the app name and window title (like 25-125_SLD-E101.dwg - AutoCAD) and saves it to a local SQLite database on your computer. Nothing is uploaded or shared — you control the data, and it never leaves your machine unless you choose to sync it (e.g. via OneDrive). This is not a corporate monitoring tool. It's a personal utility that works for you.

When it's time to fill out your timecard, you open your AI assistant and ask in plain English:

"What did I work on this week?"

It reads your local data and tells you: "You spent 4 hours in AutoCAD on project 25-125, 1 hour in a design review meeting, 30 minutes on emails..." — and you copy that into your timesheet. Done.

How it works under the hood: Every second, Timewarp checks which window is active using the Windows API. It groups those seconds into sessions (ignoring brief alt-tabs), extracts project numbers from file names when possible, and stores everything in a local SQLite database. Your AI assistant accesses this database through a local MCP connection — the same way it accesses files on your computer — and can answer questions about your work history.

Compatible with any MCP-enabled AI app, including Claude Desktop, ChatGPT Desktop, and others that support the Model Context Protocol.


Architecture

Timewarp Architecture

Everything stays on your machine. The MCP server is a local process that communicates with your AI app over stdin/stdout — it does not open any network ports or send data anywhere.


Installation

Step 1: Download and run

Download timewarp.exe from the latest release, put it somewhere permanent (e.g. C:\Tools\Timewarp\timewarp.exe), and double-click it.

Step 2: First-run setup

On the first launch, Timewarp walks you through setup automatically:

  1. Choose a data folder — A dialog explains your options and opens a folder picker. Pick a folder inside OneDrive if you use multiple computers (each PC saves its own file, no sync conflicts), or any local folder if you only use one machine.
  2. Start at login — Timewarp asks if you want it to run automatically when you log in. If you click Yes, a UAC prompt will appear (it needs admin rights to create the scheduled task). You can remove this later with timewarp.exe -uninstall.

Don't have admin rights? Skip the UAC prompt and instead create a shortcut to timewarp.exe in your Startup folder. Press Win+R, type shell:startup, and drag the shortcut there. It works the same way — Timewarp will start every time you log in.

After setup, a small purple clock icon appears in your system tray — Timewarp is now tracking.

Step 3: Connect to your AI app

Right-click the tray icon and click Connect to Claude Desktop. Timewarp automatically finds your Claude Desktop config file and adds itself. Restart Claude Desktop and you're done.

Using ChatGPT Desktop or another MCP-compatible app? Click Copy MCP Config instead — this copies the JSON to your clipboard so you can paste it into your app's config file manually. The MCP server config looks like this:

json
{
  "mcpServers": {
    "timewarp": {
      "command": "C:\\Tools\\Timewarp\\timewarp.exe",
      "args": ["-mcp", "-dbpath", "C:\\Users\\You\\OneDrive\\TimewarpData"]
    }
  }
}

Once connected, you can ask things like:

  • "What did I work on this week?"
  • "How much time did I spend in AutoCAD?"
  • "Break down my week by day for my timecard"
  • "List my top apps this week"

What to Ask

Once Timewarp is running and connected, just ask in plain English. Here are some examples:

What you wantWhat to type
Fill out your weekly timecard"Summarize my work this week for my timecard"
Daily breakdown for QuickBooks Time"Break down my work by day this week, with hours per project"
Check time on a specific project"How much time did I spend on project 25-125 this week?"
See what you did on a specific day"What did I work on last Tuesday?"
Find out where your time went"What were my top apps this week and how long did I use each?"
Generate a timesheet narrative"Write a timesheet entry for this week, grouped by project number"
Check meeting time"How many hours of meetings did I have this week?"
Compare weeks"Compare my project time this week vs last week"
Catch untracked time"I was on site Monday with no laptop — can you show me Tuesday through Friday only?"

Your AI app will call the appropriate Timewarp tools automatically. You don't need to know the tool names or syntax — just describe what you need.


System Tray Menu

Right-click the tray icon to access these options:

Menu ItemWhat it does
Stop Tracking / Start TrackingPause and resume tracking. The icon turns grey when paused.
Inactivity ThresholdHow long you must be idle before time stops counting (30s, 1m, 2m, 5m, 10m). Default: 1 minute.
Enable Prometheus EndpointToggle the Prometheus metrics HTTP server on/off (off by default).
Open DB FolderOpens your database folder in Explorer.
Set DB Folder...Pick a new folder for the database. Takes effect immediately.
Connect to Claude DesktopAutomatically adds Timewarp to Claude Desktop's config. Shows a checkmark when connected.
Copy MCP ConfigCopies MCP server config JSON to your clipboard (for ChatGPT Desktop or other MCP apps).
QuitStops Timewarp.

MCP Tools

These are the tools your AI app can call to query your data:

ToolDescription
get_weekly_summaryAttributed project time, unattributed app time, meetings, and inactivity for a week.
get_daily_breakdownSame data broken down by day — ideal for filling out daily timecards or QuickBooks Time.
get_focus_timeTotal focused minutes for a specific process across a date range.
list_top_appsTop 10 processes by focused time for a week.

Example: Weekly Summary

Ask: "Summarize my work this week for my timecard"

Your AI app calls get_weekly_summary and receives:

json
{
  "week": "2026-03-02/2026-03-08",
  "machines": ["DESKTOP-VINC", "LAPTOP-VINC"],
  "attributed": [
    {
      "project_number": "25-125",
      "total_minutes": 252,
      "processes": ["acad.exe", "OUTLOOK.EXE", "Bluebeam Revu"],
      "sample_titles": ["25-125_SLD-E101.dwg - AutoCAD"]
    }
  ],
  "unattributed": [
    { "process": "chrome.exe", "total_minutes": 48, "sample_titles": ["..."] }
  ],
  "meetings": [
    { "subject": "25-019 Design Review", "total_minutes": 62, "sessions": 2 }
  ],
  "inactivity_minutes": 94
}

How Sessions Work

Timewarp doesn't just record every second individually. It stitches activity into sessions:

  • Gaps under 30 seconds in the same app are bridged (you alt-tabbed to copy something and came back)
  • Sessions under 10 seconds are discarded (you accidentally clicked the wrong window)
  • Project numbers are extracted from window titles using the pattern YY-NNN (e.g. 25-125 from 25-125_SLD-E101.dwg)
  • Meetings are detected from Teams/Zoom/Webex window titles
  • Suppressed processes like mstsc.exe (Remote Desktop), LockApp.exe, and ShellExperienceHost.exe are never recorded

Command-line Flags

FlagDescriptionDefault
-dbpathDirectory for database filesSame directory as executable
-mcpRun as MCP stdio server (used by AI desktop apps)false
-installCreate a Windows startup scheduled task
-uninstallRemove the startup scheduled task
-silentRun without system tray iconfalse
-inactivityThresholdInactivity threshold in seconds60
-interfaceNetwork interface for PrometheusAll interfaces
-portPrometheus metrics port9183
-privateReplace window titles with process names in metricsfalse
-debugPrint debug output to consolefalse

Prometheus Metrics (Optional)

Timewarp can expose a Prometheus endpoint for real-time dashboarding. It is off by default — enable it from the tray menu or by toggling it on.

Endpoint: http://localhost:9183/metrics

MetricTypeDescription
focused_window_pidGaugePID of the currently focused window
focused_window_duration_secondsCounterTotal seconds focused per process
focused_window_changes_totalCounterNumber of focus changes
focus_inactivity_seconds_totalCounterTotal seconds of inactivity
meeting_duration_secondsCounterSeconds spent in meetings

Building from Source

git clone https://github.com/vinistoisr/timewarp.git
cd timewarp
go build -ldflags "-H=windowsgui" -o timewarp.exe .

Requires Go 1.24+.

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "vinistoisr-timewarp": {
      "command": "",
      "args": []
    }
  }
}

Usa Timewarp MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Timewarp, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura connettore.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura connettore e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con l’opzione «Questo dispositivo» selezionata
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Timewarp come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Timewarp.
  4. Salva l'elenco dei server.
  5. Se vuoi verificare che il connettore sia ancora pronto, aggiorna la pagina.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "vinistoisr-timewarp": {
      "command": "npx",
      "args": [
        "-y",
        "timewarp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Timewarp, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Timewarp.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Timewarp per aiutarmi con questa attività?
Timewarp
Certo. L’ho letto.
Ecco cosa ho trovato con Timewarp.

Domande frequenti

A cosa serve il server MCP Timewarp?

Timewarp è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP Timewarp con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Timewarp con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Timewarp con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Timewarp, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP Timewarp a TypingMind?

Timewarp funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre il server MCP Timewarp in TypingMind?

Timewarp mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP Timewarp?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Timewarp richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇