MCP 服务器

time-tracker-timesheet-billable-hours

io.github.theluckystrike/time-tracker-timesheet-billable-hours
商业与运营 生产力 公开且可连接 MCP 2026-07-28

此 MCP 可以做什么

Tracks timers and billable work entries, calculates project charges, produces reports, and exports timesheets.

entry_add
Add time entry
Log time already worked as one entry and return its id, duration and amount. Give start plus end or minutes. rate is hourly in MAJOR units and is frozen on the entry, so a later rate change never moves it.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['project', 'start'], 'properties': {'end': {'type': 'string', 'description': 'ISO 8601 end time (or use minutes)'}, 'note': {'type': 'string', 'description': 'Optional note'}, 'rate': {'anyOf': [{'type': 'number', 'minimum': 0}, {'type': 'string'}], 'description': "Hourly rate for this entry; a number (90) or the words the user said ('90 euros an hour')"}, 'tags': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Optional tags'}, 'task': {'type': 'string', 'description': 'What the work was'}, 'start': {'type': 'string', 'description': 'ISO 8601 start time, e.g. 2026-09-02T09:00:00'}, 'minutes': {'type': 'number', 'description': 'Duration in minutes (alternative to end)', 'exclusiveMinimum': 0}, 'project': {'type': 'string', 'minLength': 1, 'description': 'Project or client name. A partial name that matches exactly one existing project is used as that project.'}, 'billable': {'type': 'boolean', 'description': 'Default true; set false for non-billable work'}, 'currency': {'type': 'string', 'description': "Currency of the rate: EUR, USD, GBP, PLN, or words like 'euros'. Defaults to the project currency, else USD."}}, 'additionalProperties': False}
entry_delete
Delete time entry
Delete one logged entry by id and report the project and hours removed. It never touches a running timer. A billed entry goes too, losing the invoice record, so correct one with entry_edit instead.
可能执行破坏性操作
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['id'], 'properties': {'id': {'type': 'string', 'description': 'Entry id from entry_list'}}, 'additionalProperties': False}
entry_edit
Edit time entry
Change one logged entry by id; only the fields you pass move. minutes keeps start and moves end, an end at or before start is refused, tags REPLACES the list, and rate is hourly in MAJOR units.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['id'], 'properties': {'id': {'type': 'string', 'description': 'Entry id from entry_list'}, 'end': {'type': 'string', 'description': 'ISO 8601'}, 'note': {'type': 'string'}, 'rate': {'anyOf': [{'type': 'number', 'minimum': 0}, {'type': 'string'}], 'description': "Hourly rate override for this entry, a number or words like '90 euros'"}, 'tags': {'type': 'array', 'items': {'type': 'string'}}, 'task': {'type': 'string'}, 'start': {'type': 'string', 'description': 'ISO 8601'}, 'minutes': {'type': 'number', 'description': 'New duration in minutes, keeps start', 'exclusiveMinimum': 0}, 'project': {'type': 'string'}, 'billable': {'type': 'boolean'}, 'currency': {'type': 'string', 'description': 'Currency of the rate, e.g. EUR'}}, 'additionalProperties': False}
entry_list
List time entries
List logged entries as a table of id, day, start, project, task, hours, billable, tags and note, newest first, with total hours. Free reads the last 7 days and says so; Pro reads the whole history.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'to': {'type': 'string', 'description': 'ISO date/time upper bound'}, 'from': {'type': 'string', 'description': 'ISO date/time lower bound'}, 'limit': {'type': 'integer', 'description': 'Maximum rows, newest first (default 50)', 'exclusiveMinimum': 0}, 'project': {'type': 'string', 'description': 'Filter by project name'}}, 'additionalProperties': False}
entry_mark_billed
Mark time entries as billed
Close the loop after an invoice is issued: stamp the tracked hours that went on it with the invoice number, so report and invoice_summary stop offering them and the same hours are never billed twice.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['invoice_number'], 'properties': {'to': {'type': 'string', 'description': 'ISO date/time end of the billed period, used with project'}, 'ids': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Exact entry ids, normally the entry_ids invoice_summary returned. Pass either ids or project plus from and to. Entries already billed are left alone and listed back to you.'}, 'from': {'type': 'string', 'description': 'ISO date/time start of the billed period, used with project'}, 'project': {'type': 'string', 'description': 'Project or client, used with from and to instead of ids; every billable entry in that range is stamped.'}, 'billed_at': {'type': 'string', 'description': 'ISO timestamp of the stamp, defaults to now'}, 'invoice_number': {'type': 'string', 'minLength': 1, 'description': 'The invoice these hours were put on, e.g. INV-2026-0001'}}, 'additionalProperties': False}
export_csv
Export entries to CSV
Call this tool to export the timesheet to a CSV file (excel-friendly) you can hand to a bookkeeper: one row per entry with hours, billable, rate, currency and amount. Returns the file path written.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'to': {'type': 'string', 'description': 'ISO date/time upper bound. On the free tier the export is clamped to the last 7 days; Pro exports the full history.'}, 'from': {'type': 'string', 'description': 'ISO date/time lower bound. On the free tier the export is clamped to the last 7 days; Pro exports the full history.'}, 'path': {'type': 'string', 'description': 'Target file path; a relative path resolves against the working directory. Defaults to a timestamped file in the local data directory, and the full path is returned.'}, 'project': {'type': 'string', 'description': 'Optional project filter'}}, 'additionalProperties': False}
invoice_summary
Invoice summary
Turn tracked billable time into invoice lines for one project: hours, hourly rate, amount per task and the total, one line per rate so two rates never average. Hours already marked billed are left out. Free: last 7 days.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['project', 'from', 'to'], 'properties': {'to': {'type': 'string', 'description': 'ISO date/time end of the billing period. Free covers the last 7 days; Pro invoices any period from the full history.'}, 'from': {'type': 'string', 'description': 'ISO date/time start of the billing period. Free covers the last 7 days; Pro invoices any period from the full history.'}, 'project': {'type': 'string', 'minLength': 1, 'description': 'Project or client to invoice'}, 'unbilled_only': {'type': 'boolean', 'description': 'Default true: hours already put on an invoice (entry_mark_billed) are left out, so the same hours are never billed twice. Pass false to see the whole period including invoiced work.'}}, 'additionalProperties': False}
license_activate
Activate license
Turn Pro on for this connection with key, an MCPL1.<payload>.<signature> issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['key'], 'properties': {'key': {'type': 'string', 'description': 'License key from checkout, MCPL1.<payload>.<signature>'}}, 'additionalProperties': False}
license_status
License status
Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
project_set_rate
Set project rate
Set the hourly rate and currency used to turn tracked hours into money for a project or client. Returns the new rate and, when re-rating is asked for, how many already logged entries changed.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['project', 'hourly_rate'], 'properties': {'project': {'type': 'string', 'minLength': 1, 'description': 'Project or client name. A partial name that matches exactly one existing project is used as that project.'}, 'currency': {'type': 'string', 'description': "Currency: a code (EUR, USD, GBP, PLN) or a word ('euros', 'pounds', 'zl'). Defaults to the shared business profile's default_currency, else USD."}, 'hourly_rate': {'anyOf': [{'type': 'number', 'minimum': 0}, {'type': 'string'}], 'description': "Hourly rate: a number (85) or the words the user said ('90 euros an hour'). '1,200 USD' is 1200; '12,50 EUR' is 12.50; anything ambiguous is refused."}, 'only_missing': {'type': 'boolean', 'description': 'Only meaningful with apply_to_existing. True restores the old fill-the-gaps behaviour: only entries that carry no rate of their own are touched. Default false, which re-stamps every entry of the project.'}, 'apply_to_existing': {'type': 'boolean', 'description': 'Re-rate time already logged for this project: every entry is re-stamped with the new rate, including entries that already carry one. Default false: the new rate applies to future entries only, because each entry captures the rate in force when it was logged.'}}, 'additionalProperties': False}
report
Time report
Timesheet report: total tracked hours and billable money for a period, optionally grouped by (group by) project, day, task or tag - hours per project, how much to bill. Omit group_by for the plain total per currency.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['from', 'to'], 'properties': {'to': {'type': 'string', 'description': 'ISO date/time end of the period. On the free tier the window is clamped to the last 7 days; Pro reports over the full history.'}, 'from': {'type': 'string', 'description': 'ISO date/time start of the period. On the free tier the window is clamped to the last 7 days; Pro reports over the full history.'}, 'format': {'enum': ['table', 'json', 'csv'], 'type': 'string', 'description': 'table (default), json or csv. Every format carries one amount per currency, never a mixed-currency sum.'}, 'project': {'type': 'string', 'description': 'Optional project filter'}, 'group_by': {'enum': ['project', 'day', 'task', 'tag'], 'type': 'string', 'description': 'project | day | task | tag. Optional: omit it for the plain total per currency, with no breakdown. Money is grouped by currency and EUR is never added to USD.'}, 'unbilled_only': {'type': 'boolean', 'description': "Default true: hours already put on an invoice (entry_mark_billed) are excluded, so the report answers 'what is still to bill'. Pass false for the full timesheet including invoiced work."}}, 'additionalProperties': False}
timer_start
Start timer
Start a stopwatch for work on a project and return the start time. Only one runs at a time: a new one stops and logs the previous, naming it. rate is an hourly rate in MAJOR units for this timer only.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['project'], 'properties': {'rate': {'anyOf': [{'type': 'number', 'minimum': 0}, {'type': 'string'}], 'description': "Hourly rate for this timer only; a number (90) or the words the user said, e.g. rate '90 euros an hour'. Defaults to the project rate set by project_set_rate."}, 'tags': {'type': 'array', 'items': {'type': 'string'}, 'description': "Free-form tags, e.g. ['dev','meeting']"}, 'task': {'type': 'string', 'description': 'What you are working on right now'}, 'project': {'type': 'string', 'minLength': 1, 'description': "Project or client name, e.g. 'acme-website'. A partial name that matches exactly one existing project is used as that project."}, 'currency': {'type': 'string', 'description': "Currency of the rate: EUR, USD, GBP, PLN, or words like 'euros'. Defaults to the project currency, else USD."}}, 'additionalProperties': False}
timer_status
Timer status
Report the running timer and today's total hours. Today is the local calendar day, so a timer started at 23:30 yesterday contributes only the minutes since midnight. No arguments, and it writes nothing.
只读 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
timer_stop
Stop timer
Stop the running timer and log it as one entry. Returns the duration, the money at the rate in force and the new entry id. With no timer running it says so and writes nothing.
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'note': {'type': 'string', 'description': 'Optional note stored with the entry'}}, 'additionalProperties': False}
已更改
invoice_summary
2026年9月21日 02:56
已更改
entry_mark_billed
2026年9月21日 02:56
已更改
export_csv
2026年9月21日 02:56
已更改
report
2026年9月21日 02:56
已更改
project_set_rate
2026年9月21日 02:56
已更改
entry_edit
2026年9月21日 02:56
已更改
entry_delete
2026年9月21日 02:56
已更改
entry_list
2026年9月21日 02:56
已更改
entry_add
2026年9月21日 02:56
已更改
timer_status
2026年9月21日 02:56
已更改
timer_stop
2026年9月21日 02:56
已更改
timer_start
2026年9月21日 02:56
已更改
license_activate
2026年9月21日 02:56
已更改
license_status
2026年9月21日 02:56
已添加
invoice_summary
2026年9月17日 12:52
已添加
entry_mark_billed
2026年9月17日 12:52
已添加
export_csv
2026年9月17日 12:52
已添加
report
2026年9月17日 12:52
已添加
project_set_rate
2026年9月17日 12:52
已添加
entry_edit
2026年9月17日 12:52
已添加
entry_delete
2026年9月17日 12:52
已添加
entry_list
2026年9月17日 12:52
已添加
entry_add
2026年9月17日 12:52
已添加
timer_status
2026年9月17日 12:52
已添加
timer_stop
2026年9月17日 12:52
已添加
timer_start
2026年9月17日 12:52
已添加
license_activate
2026年9月17日 12:52
已添加
license_status
2026年9月17日 12:52