Set up WakaTime in Metorial for Claude, ChatGPT and Cursor
Share WakaTime with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 20 tools (16 read-only).
To give your team WakaTime in Claude, ChatGPT, Cursor and other AI clients, an admin shares the WakaTime integration in a Metorial portal, and each person signs in to WakaTime with their own account. Agents can read WakaTime coding summaries, statistics, durations, heartbeats, projects, and commit details. The integration has 20 tools, 16 read-only, 3 write and 1 destructive, plus 3 triggers.
What you'll learn
- How an admin shares WakaTime in a portal and how each person connects
- The 10 OAuth scopes WakaTime can request, and what each one allows
- How to keep the 16 read-only tools and reject the other 4
Before you start
- A portal with at least one access group
- An account with WakaTime for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| API Key (Heartbeats Only) | API token | token |
| OAuth (default) | OAuth | Signs in to WakaTime |
The portal and metorial setup use OAuth unless someone picks another method.
API Key (Heartbeats Only)
To connect, a person enters:
token: Your WakaTime API Key (found at https://wakatime.com/api-key)
OAuth
People sign in to WakaTime and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
read_summaries | Read Summaries | Access coding activity summaries (categories, dependencies, editors, languages, machines, operating systems, projects) |
read_stats | Read Stats | Access aggregated coding statistics |
read_goals | Read Goals | Access coding goals |
read_orgs | Read Organizations | Read organization and dashboard member data |
write_orgs | Write Organizations | Modify organizations and dashboard members |
read_private_leaderboards | Read Private Leaderboards | Access private leaderboards |
write_private_leaderboards | Write Private Leaderboards | Create and modify private leaderboards |
read_heartbeats | Read Heartbeats | Access coding activity, projects, files, durations, and heartbeats |
write_heartbeats | Write Heartbeats | Create, edit, and delete heartbeats and external durations |
email | Access user's private email address |
Use your own WakaTime OAuth app
With your own OAuth app, people see your company's name on the WakaTime consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose WakaTime and copy the Redirect URI.
Register the app with WakaTime
Create an OAuth app or client in WakaTime and add the redirect URI from Metorial as its redirect or callback URL.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the WakaTime integration.
Admin: share WakaTime in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose WakaTime. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to WakaTime as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from WakaTime.
Choose who gets it
Add the access groups that should see WakaTime. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user WakaTime integration. Once it exists, check which groups have it:
Employee: connect WakaTime
In the portal
Open WakaTime in the catalog
Sign in to your portal and open WakaTime. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A WakaTime sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with API Key (Heartbeats Only) instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your WakaTime connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 16 read-only tools, such as get_goals and get_all_time, and lose the 3 write tools, such as create_heartbeat or manage_data_exports, and the destructive tool delete_heartbeat.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 20 tools, minus any you rejected. get_user_profile takes no input. It retrieves the current user's profile information including display name, email, timezone, last active plugin, social profiles, plan details, and machines.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (16)
list_projects: List all coding projects that have recorded activity.get_project_commits: Retrieve commit history for a specific project with time-spent-coding data per commit. NeedsprojectId.get_user_profile: Retrieve the current user's profile information including display name, email, timezone, last active plugin, social profiles, plan details, and machines.get_heartbeats: Retrieve raw coding activity events (heartbeats) for a specific day. Needsdate.get_private_leaderboards: List all private leaderboards the user has access to.get_durations: Retrieve coding activity for a given day as time duration blocks. Needsdate.get_coding_stats: Retrieve aggregated coding statistics for a configurable time range.get_leaderboard: Access public or private leaderboards of users ranked by coding activity.get_machines: List all machines (computers) that have sent coding activity, including hostname, IP, and last seen time.get_coding_summaries: Retrieve coding activity summaries for a given date range, segmented by day. NeedsstartDateandendDate.get_insights: Access deeper analytics about coding activity for a given time range. NeedsinsightType.get_goals: Retrieve all coding goals.get_all_time: Retrieve the total coding time since the user's account was created.get_organizations: List organizations the user belongs to, along with their dashboards and members.get_project_commit: Read coding time and repository details for a single project commit.get_external_durations: Read meetings, calendar events, and other external activity recorded for a day.
Write tools (3)
create_external_duration: Record activity durations from sources other than IDE plugins, such as calendar events, meetings, or code reviews. Needsdurations.manage_data_exports: List existing data exports or request a new full data export of all coding activity. Needsaction.create_heartbeat: Record one or more coding activity events (heartbeats). Needsheartbeats.
Destructive tools (1)
delete_heartbeat: Delete a specific heartbeat by its ID. NeedsheartbeatId.
Triggers
WakaTime has 3 triggers, which fire on events in WakaTime:
inbound_webhookgoal_progress: Polls for changes in coding goal status.coding_activity: Polls for daily coding activity summaries.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use WakaTime there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- WakaTime on metorial.com: the integration overview