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 分