wakapi-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP port. | 3000 |
| WAKAPI_URL | Yes | Required. Origin of the self-hosted Wakapi server, using http or https. Must not include userinfo, query, or hash. Example: http://127.0.0.1:8097. | |
| MCP_TRANSPORT | No | Transport mode: stdio or http. The --http flag overrides this. | |
| WAKAPI_API_KEY | Yes | Required. Sent as Authorization: Basic plus base64 of the raw key. Not user:password, and never sent as api_key in the URL. | |
| WAKAPI_CONTACT | No | Contact token included in the User-Agent. Must not contain the API key. | |
| WAKAPI_TOOLSETS | No | Comma-separated list of toolsets, or all. Default is the read-only set. | summaries,projects,leaderboard,heartbeats,meta |
| WAKAPI_PER_MINUTE | No | Local request budget per minute. Cache hits do not spend it. | 30 |
| WAKAPI_TIMEOUT_MS | No | Upstream request timeout in milliseconds. | 20000 |
| WAKAPI_ALLOW_WRITES | No | Must be the literal true before a confirmed write is sent. | |
| WAKAPI_CACHE_TTL_SEC | No | Read cache TTL in seconds. Writes clear the cache. | 60 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| wakapi_heartbeatsC | wakapi_heartbeats covers the heartbeats toolset (1 operations). Calls go to WAKAPI_URL with the /api prefix. Authenticated routes send Authorization Basic base64 of the API key. The key is never placed in the URL. Health and shields badges send no key. action help with target returns one action's parameters. Actions: list. |
| wakapi_leaderboardC | wakapi_leaderboard covers the leaderboard toolset (1 operations). Calls go to WAKAPI_URL with the /api prefix. Authenticated routes send Authorization Basic base64 of the API key. The key is never placed in the URL. Health and shields badges send no key. action help with target returns one action's parameters. Actions: list. |
| wakapi_metaB | wakapi_meta covers the meta toolset (4 operations). Calls go to WAKAPI_URL with the /api prefix. Authenticated routes send Authorization Basic base64 of the API key. The key is never placed in the URL. Health and shields badges send no key. action help with target returns one action's parameters. Actions: badge, user, user_agents, health. |
| wakapi_projectsC | wakapi_projects covers the projects toolset (2 operations). Calls go to WAKAPI_URL with the /api prefix. Authenticated routes send Authorization Basic base64 of the API key. The key is never placed in the URL. Health and shields badges send no key. action help with target returns one action's parameters. Actions: list, get. |
| wakapi_summariesA | wakapi_summaries covers the summaries toolset (5 operations). Calls go to WAKAPI_URL with the /api prefix. Authenticated routes send Authorization Basic base64 of the API key. The key is never placed in the URL. Health and shields badges send no key. action help with target returns one action's parameters. Pass query format csv for a CSV table of dimension, key, total_seconds, and text. That format value is not sent to Wakapi. Actions: all_time, stats, wakatime_summaries, summary, statusbar. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool maps cleanly to a distinct Wakapi resource (heartbeats, leaderboard, projects, summaries, meta), so an agent can pick a tool by resource alone. The risk is inside tools: wakapi_summaries bundles five actions (summary, wakatime_summaries, all_time, stats, statusbar) whose boundaries are not explained, and the near-identical boilerplate descriptions give no domain context beyond the action list.
All five tools follow the same predictable pattern: a wakapi_ namespace prefix plus the resource noun in snake_case, with the verb expressed as an action parameter. The only weakness is that names encode no operation, so 'list' vs 'get' behavior has to be discovered from the action enumeration rather than the tool name.
Five tools covering thirteen underlying operations is a well-scoped, resource-oriented grouping that keeps the surface small. A few groupings are lopsided (wakapi_heartbeats and wakapi_leaderboard each expose only 'list'), so some tools are thin while wakapi_summaries carries five actions.
The surface is read-only: it covers analytics retrieval (summaries, projects, leaderboards, heartbeats listing) plus meta utilities like user, badge, and health. Notable gaps remain for writing or removing heartbeats, per-user/alias and duration endpoints, and filtering options that the Wakapi API exposes, which will limit agents needing to submit or mutate data.