Read coding-time stats, summaries, durations, projects, goals and leaderboards from WakaTime, and send heartbeats and external durations.
WakaTime ships in the w6w first-party pack. It declares 25 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.wakatimeWakaTime tracks the time developers spend coding, automatically, through editor and IDE plugins. This app brings that data into a workflow: read a user’s stats for a period, daily summaries, durations and raw heartbeats, per-project time and commits, goals, and private leaderboards.
It also writes: send heartbeats (singly or in bulk of up to 25) and external durations for activity no editor plugin sees, such as meetings, and request a data export. Insights and the all-time total give a workflow a cheap way to post a weekly coding report or react to a goal.
Authentication is the account’s secret API key, sent over HTTP Basic. Health checks watch the API host; WakaTime publishes no machine-readable status feed or rate-limit headers, so those are declared unavailable.
Three routes to the same 25 actions. The Workflow tab is generated from WakaTime's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
all-time-get Total time logged since the account was created, optionally for one project. Available on the free plan.
commit-list Commits of a project with the coding time spent on each. Paged: pass the returned next_page as Page.
data-dump-create Start generating a data export in the background; poll List Data Exports for completion.
data-dump-list The user's data exports and their status; a finished export carries a download_url.
durations-list A day's coding activity as durations: contiguous blocks of heartbeats joined within the keystroke timeout, sliced by project or another key.
external-duration-create Log a span of activity with a start and end time when heartbeats are not available, e.g. a meeting. WakaTime documents this as for OAuth apps; an API key may be refused.
external-durations-bulk-delete Permanently delete external durations by id for one day. Cannot be undone.
external-durations-list A day's external durations: time logged by apps other than editor plugins, such as calendar meetings.
goal-get One goal with its chart data. Cached: an empty goal comes back while the cache fills.
heartbeat-create Send one heartbeat: a ping saying the user is working on an entity at a time. Editor and OS are detected by WakaTime from the User-Agent.
heartbeats-bulk-create Send up to 25 heartbeats in one request, as a JSON array of heartbeat objects (entity, type, time and the same optional fields as Create Heartbeat).
heartbeats-bulk-delete Permanently delete heartbeats by id for one day, removing them from every dashboard. Cannot be undone.
insight-get One insight about coding activity over a range: stats, weekdays, days, best_day, daily_average, projects, languages, editors, categories, machines or operating_systems.
leaderboard-get The members of a private leaderboard ranked by coding activity.
stats-get Coding activity totals and per-language, editor, project, OS and category breakdowns for a range. A 202 with is_up_to_date false means the range is still being computed.
status-bar-get Today's coding activity as the editor status bar shows it. Cached: an empty summary comes back while the cache fills.
summaries-get Daily coding summaries for a date range, segmented by day, with per-project, language and editor breakdowns. Give start and end, or a named range.
user-get Read the authenticated user's profile: id, username, display name, email, timezone, plan and privacy settings.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying WakaTime's real ids.
{
"manifestVersion": "2",
"name": "wakatime-example",
"steps": [
{
"id": "commit-get",
"uses": {
"app": "io.w6w.wakatime",
"action": "commit-get",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"project": "<project>",
"hash": "<hash>"
}
}
]
}commit-get all-time-get commit-list dashboard-list data-dump-create +20 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for WakaTime, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to WakaTime. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "commit-get",
payload: {
project: "<value>",
hash: "<value>",
// branch: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action commit-get --payload '{"project":"<value>","hash":"<value>"}' Give an AI agent WakaTime — without giving it WakaTime's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.wakatime#commit-get",
"input": {
"project": "<project>",
"hash": "<hash>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's WakaTime connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
WakaTime's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. WakaTime itself is MIT, and the runtime that executes it is source-available (FSL).
WakaTime declares its own checks, so its health is a property of the app rather than something the host guesses at.
Unauthenticated GET /users/current. WakaTime's JSON `errors` envelope (Unauthorized) passes: it proves the application is answering.