First-party app
WakaTime WakaTime

WakaTime

Read coding-time stats, summaries, durations, projects, goals and leaderboards from WakaTime, and send heartbeats and external durations.

stable Developer ToolsAnalytics & BI

About

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.

App id
io.w6w.wakatime
Version
0.1.1
Author
w6w
Licence
MIT
Categories
Developer Tools · Analytics & BI

Overview

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

Build with WakaTime

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.

Get All-Time Total

all-time-get

Total time logged since the account was created, optionally for one project. Available on the free plan.

Get Commit

commit-get

One commit of a project with the coding time spent on it.

List Commits

commit-list

Commits of a project with the coding time spent on each. Paged: pass the returned next_page as Page.

List Org Dashboards

dashboard-list

The dashboards of one organization.

Create Data Export

data-dump-create

Start generating a data export in the background; poll List Data Exports for completion.

List Data Exports

data-dump-list

The user's data exports and their status; a finished export carries a download_url.

List Durations

durations-list

A day's coding activity as durations: contiguous blocks of heartbeats joined within the keystroke timeout, sliced by project or another key.

Create External Duration

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.

Delete External Durations (Bulk)

external-durations-bulk-delete

Permanently delete external durations by id for one day. Cannot be undone.

List External Durations

external-durations-list

A day's external durations: time logged by apps other than editor plugins, such as calendar meetings.

Get Goal

goal-get

One goal with its chart data. Cached: an empty goal comes back while the cache fills.

List Goals

goal-list

The user's coding goals with their current progress.

Create Heartbeat

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.

Create Heartbeats (Bulk)

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

Delete Heartbeats (Bulk)

heartbeats-bulk-delete

Permanently delete heartbeats by id for one day, removing them from every dashboard. Cannot be undone.

List Heartbeats

heartbeats-list

The raw heartbeats the user's editor plugins sent for one day.

Get Insight

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.

Get Private Leaderboard

leaderboard-get

The members of a private leaderboard ranked by coding activity.

List Private Leaderboards

leaderboard-list

The user's private leaderboards.

List Organizations

org-list

The organizations the user belongs to.

List Projects

project-list

The user's WakaTime projects, optionally filtered by a search term.

Get Stats

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.

Get Today's Status Bar

status-bar-get

Today's coding activity as the editor status bar shows it. Cached: an empty summary comes back while the cache fills.

Get Summaries

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.

Get Current User

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>"
      }
    }
  ]
}

Here are some of the things you can do

  • Get Commit

    read
    commit-get
  • Get All-Time Total

    read
    all-time-get
  • List Commits

    read
    commit-list
  • List Org Dashboards

    read
    dashboard-list
  • Create Data Export

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

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { 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);
Install the CLI
npm install -g @w6w/cli
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.

What the agent gets

Credentials it can't read

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.

A tool surface scoped to the caller

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.

A durable workflow in one call

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.

Health-aware discovery

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

Request MCP access

Health checks

WakaTime declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

WakaTime platform status

dependency

API reachable

Unauthenticated GET /users/current. WakaTime's JSON `errors` envelope (Unauthorized) passes: it proves the application is answering.

quota

Quota headroom