durations

Pack: wakatime · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/durations for the schema, then POST the same URL with its arguments for the data.

Fetch WakaTime coding durations (start/end timestamps with project and file) for a single day (date required, YYYY-MM-DD); optionally slice_by entity/language/branch for granular session data.

Parameters

NameTypeRequiredDescription
user_idstringyes
datestringyes
projectstringno
branchesstringno
timeoutnumberno
writes_onlybooleanno
timezonestringno
slice_bystringno

Example call

Arguments

{
  "user_id": "wakatime_user_123",
  "date": "2024-01-15"
}

curl

curl -X POST https://gateway.pipeworx.io/wakatime/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"durations","arguments":{"user_id":"wakatime_user_123","date":"2024-01-15"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('durations', {
  "user_id": "wakatime_user_123",
  "date": "2024-01-15"
});

Response shape

Full JSON Schema
{
  "type": "object",
  "description": "Activity durations for a specific date from WakaTime API"
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the wakatime pack
{
  "mcpServers": {
    "wakatime": {
      "url": "https://gateway.pipeworx.io/wakatime/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 7, 2026