Track Your Time

io.github.trebeljahr由 GitHub 帳號 trebeljahr 發布v0.3.0更新於 Oct 30, 2026

Track time, manage entries and catalog, and summarize hours on hosted or self-hosted accounts.

概覽

AI 產生的概覽

Track Your Time 的本機 MCP 伺服器,讓助理啟動與停止計時器、補登工時、管理客戶、專案、任務與標籤,並產出彙總報表。

可以做什麼
  • 啟動、停止並查看目前計時器,依明確的起訖時間補登已完成的工時紀錄
  • 依日期範圍列出工時紀錄,可依專案、客戶、任務、標籤、是否計費或描述文字篩選
  • 列出並建立客戶、專案、任務與標籤,包含時薪、預算與封存篩選
  • 產出總工時、計費工時與金額的彙總報表,可依專案、客戶、任務、標籤或日/週/月分組
  • 檢查 API 權杖所屬工作區、權限範圍,以及是否能查看其他成員的時間與金額
適用情境
適合依小時向客戶計費的自由工作者或團隊,希望在 MCP 用戶端中以對話方式記錄與彙報工時,而不必開啟網頁應用程式。託管服務與自架執行個體皆可使用。
執行需求
透過 npx 在本機執行,需要 Node.js 24 或更新版本。需在設定中建立 Track Your Time API 權杖,並以環境變數 TRACKYOURTIME_API_TOKEN 傳入;權杖屬於單一工作區,伺服器只提供其權限範圍允許的工具。自架執行個體另需將 TRACKYOURTIME_API_URL 設為執行個體位址。需要能連線至該 API 的網路。
安裝前請注意
API 權杖等同密碼,而 MCP 用戶端設定檔通常以明文儲存;應只授予所需權限,不再使用時請撤銷。寫入類工具會建立工時紀錄、客戶、專案、任務與標籤,啟動計時器會先停止該工作區中已在執行的計時器。若權杖擁有者無權查看其他成員資料,報表會被拒絕。沒有發票相關工具,發票需在網頁應用程式中處理。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Track Your Time,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Track Your Time MCP server

Start a timer, record missed hours, or ask for a report from your MCP client. Use the hosted Track Your Time service or your own server.

Requires Node.js 24 or newer and a Track Your Time API token.

Connect

Create a token in Settings → Integrations → API tokens. Select only the scopes you need. The token belongs to one workspace.

Add this entry to your MCP client's configuration:

json
{  "mcpServers": {    "trackyourtime": {      "command": "npx",      "args": ["-y", "trackyourtime-mcp"],      "env": {        "TRACKYOURTIME_API_TOKEN": "tt_your_token"      }    }  }}

For self-hosting, also set TRACKYOURTIME_API_URL to your instance's origin, such as https://time.example.com.

Treat the API token like a password. MCP client configuration files usually store it in plain text. Revoke the token in Track Your Time when you stop using it.

Available tools

The server reads your token's scopes and offers the tools those scopes permit:

ScopeTools
Noneget_token_info
entries:readget_running_timer, list_entries
entries:writestart_timer, stop_timer, log_time_entry
catalog:readlist_clients, list_projects, list_tasks, list_tags
catalog:writecreate_client, create_project, create_task, create_tag
reports:readsummary_report

There are no invoice tools or hosted MCP endpoint. This package uses stdio and calls your server's REST API.

Full documentation · Source

Licensed under AGPL-3.0-or-later. The published bundle includes source maps with the bundled TypeScript source.

來源:packages/mcp/README.md,提交 dcd102e

工具

15

get_token_info

Check the connection

Confirm the MCP server can reach Track Your Time, and show the token's workspace, scopes and whether it may see other members' time and money. Call this first when another tool fails with an authentication error.

無需輸入參數。

get_running_timer

Get the running timer

Return the timer currently running in this token's workspace, with how long it has run, or say that none is running.

無需輸入參數。

start_timer

Start a timer

Start a timer now (or at `start`). A timer already running in this workspace is stopped first. Use list_projects, list_tasks and list_tags to find ids; pass none of them to track unfiled time. Answers 409 when a timer runs in another workspace this token cannot stop.

輸入參數starttagIdstaskIdbillableclientIdtimeZoneprojectIddescriptionoperationId

stop_timer

Stop the timer

Stop the timer running in this workspace, now or at `end`. Pass `id` to stop a specific entry; stopping an entry that is already stopped returns it unchanged.

輸入參數idendoperationId

log_time_entry

Log past time

Create a finished time entry with an explicit start and end, for work that was not timed. `start` and `end` are ISO-8601 timestamps with an offset or Z, and end must be after start.

輸入參數end必填start必填tagIdstaskIdbillableclientIdtimeZoneprojectIddescriptionoperationId

list_entries

List time entries

List time entries that overlap a date range, newest first, with project, client and task names. Filter by project, client, task, tag, billable flag, or a text `search` over descriptions. Returns up to `limit` entries (default 100, max 500); pass `nextCursor` back as `cursor` for the next page.

輸入參數to必填from必填limitcursorsearchtagIdstaskIdsbillabletimeZoneclientIdsprojectIds

list_clients

List clients

List the workspace's clients. Archived clients are left out unless includeArchived is true.

輸入參數includeArchived

list_projects

List projects

List projects with their client, hourly rate, total tracked time and budget progress. Narrow to one client with clientId. Archived projects are left out unless includeArchived is true.

輸入參數clientIdincludeArchived

list_tasks

List tasks

List tasks. A task is a workspace-wide kind of work (for example "Design review"), not part of a project: an entry carries a project and a task independently.

輸入參數includeArchived

list_tags

List tags

List tags with how many entries carry each one and their total time.

輸入參數includeArchived

create_client

Create a client

Create a client. A colour is assigned when none is given.

輸入參數name必填colorbillinginvoiceLocale

create_project

Create a project

Create a project, optionally under a client (clientId from list_clients), with an hourly rate, a billable default, estimated hours or a budget.

輸入參數name必填colorclientIdhourlyRatebudgetAmountidleBehaviorbudgetCurrencyestimatedHoursbillableDefault

create_task

Create a task

Create a workspace-wide task, a name for a kind of work that any project's entries can use. Task names are unique per workspace.

輸入參數name必填color

create_tag

Create a tag

Create a tag. Entries can carry several tags, and reports can group by them.

輸入參數name必填color

summary_report

Summarise time

Total, billable time and amount for a date range, broken down by project, client, task or tag (or by day, week or month), plus a daily series. Grouped by tag, each entry counts fully toward every tag it carries, so tag rows can add up to more than the total. Refused when the token's owner may not see other members' money.

輸入參數to必填from必填searchtagIdsgroupBy必填taskIdsbillabletimeZoneclientIdsmemberIdsprojectIds

版本歷史

1
  1. v0.3.0最新Oct 21, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分