stats
Pack: wakatime · Endpoint: https://gateway.pipeworx.io/wakatime/mcp
Fetch aggregated WakaTime coding stats for a user over a range (“last_7_days”, “last_30_days”, “last_6_months”, “last_year”, “all_time”); returns totals and rankings by language, project, editor, and OS.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | |
range | string | yes | |
project | string | no | |
timeout | number | no | |
writes_only | boolean | no |
Example call
Arguments
{
"user_id": "wakatime_user_123",
"range": "last_30_days"
}
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":"stats","arguments":{"user_id":"wakatime_user_123","range":"last_30_days"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('stats', {
"user_id": "wakatime_user_123",
"range": "last_30_days"
});
Response shape
Full JSON Schema
{
"type": "object",
"description": "Aggregate statistics 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.