durations
Pack: wakatime · Endpoint: https://gateway.pipeworx.io/wakatime/mcp
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
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | |
date | string | yes | |
project | string | no | |
branches | string | no | |
timeout | number | no | |
writes_only | boolean | no | |
timezone | string | no | |
slice_by | string | no |
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, or use one-click install buttons:
{
"mcpServers": {
"wakatime": {
"url": "https://gateway.pipeworx.io/wakatime/mcp"
}
}
}
See Getting Started for client-specific install steps.