Timewarpのロゴ

Timewarp

コミュニティ
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.

公開者vinistoisr
リポジトリtimewarp
言語Go
フォーク
2
スター
7
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    Timewarpは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 利用可能なツール(0個)

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースプロジェクトの注目度

    リンク先のリポジトリには7件のスターと2件のフォークがあります。

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+.

インストール

TypingMind
前提条件:

Node.js 18+

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

TimewarpのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Timewarpに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」→「詳細設定」→「Model Context Protocol」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「Model Context Protocol」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Timewarpをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. TimewarpのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタのステータスが「準備完了」のままか確認するには、画面を更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "vinistoisr-timewarp": {
      "command": "npx",
      "args": [
        "-y",
        "timewarp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてTimewarpのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. TimewarpのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Timewarpを使ってこのタスクを手伝ってもらえますか?
Timewarp
はい、読みました。
Timewarpで調べた結果をお伝えします。

よくある質問

Timewarp MCPサーバーは何に使いますか?

Timewarpは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでは、複数のAIモデルでTimewarp MCPを利用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでTimewarpを利用できます。

TypingMindでTimewarp MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けのトップクラスのフロントエンドです。Timewarpを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Timewarp MCPをTypingMindに接続するにはどうすればよいですか?

TimewarpはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでTimewarp MCPのどのようなツールを利用できますか?

TimewarpはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Timewarp MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Timewarpで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇