WakaTime · Capability

WakaTime API — Commits

WakaTime API — Commits. 2 operations. Lead operation: List Project Commits. Self-contained Naftiko capability covering one WakaTime business surface.

Run with Naftiko WakaTimeDeveloper ProductivityCommits

What You Can Do

GET
Listprojectcommits — List Project Commits
/v1/users/current/projects/{project}/commits
GET
Getprojectcommit — Get Project Commit
/v1/users/current/projects/{project}/commits/{hash}

MCP Tools

list-project-commits

List Project Commits

read-only idempotent
get-project-commit

Get Project Commit

read-only idempotent

Capability Spec

wakatime-api-v1-commits.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WakaTime API — Commits
  description: 'WakaTime API — Commits. 2 operations. Lead operation: List Project Commits. Self-contained Naftiko capability covering one WakaTime business surface.'
  tags:
  - WakaTime
  - Developer Productivity
  - Commits
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
- namespace: env
  keys:
    WAKATIME_API_KEY: WAKATIME_API_KEY
capability:
  consumes:
  - type: http
    namespace: wakatime-api-v1-commits
    baseUri: https://wakatime.com/api/v1
    description: WakaTime API — Commits business capability. Self-contained, no shared references.
    authentication:
      type: basic
      username: '{{env.WAKATIME_API_KEY}}'
      password: ''
    resources:
    - name: users-current-projects-project-commits
      path: /users/current/projects/{project}/commits
      operations:
      - name: listProjectCommits
        method: GET
        description: List Project Commits
        inputParameters:
        - name: project
          in: path
          type: string
          required: true
          description: Project name.
        - name: page
          in: query
          type: integer
          required: false
        - name: author
          in: query
          type: string
          required: false
          description: Filter by commit author.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-current-projects-project-commits-hash
      path: /users/current/projects/{project}/commits/{hash}
      operations:
      - name: getProjectCommit
        method: GET
        description: Get Project Commit
        inputParameters:
        - name: project
          in: path
          type: string
          required: true
          description: Project name.
        - name: hash
          in: path
          type: string
          required: true
          description: Commit hash.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: wakatime-api-v1-commits-rest
    port: 8080
    description: REST adapter for WakaTime API — Commits. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/users/current/projects/{project}/commits
      name: users-current-projects-project-commits
      description: REST surface for /users/current/projects/{project}/commits.
      operations:
      - method: GET
        name: listProjectCommits
        description: List Project Commits
        call: wakatime-api-v1-commits.listProjectCommits
        with:
          project: rest.project
          page: rest.page
          author: rest.author
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/current/projects/{project}/commits/{hash}
      name: users-current-projects-project-commits-hash
      description: REST surface for /users/current/projects/{project}/commits/{hash}.
      operations:
      - method: GET
        name: getProjectCommit
        description: Get Project Commit
        call: wakatime-api-v1-commits.getProjectCommit
        with:
          project: rest.project
          hash: rest.hash
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: wakatime-api-v1-commits-mcp
    port: 9090
    transport: http
    description: MCP adapter for WakaTime API — Commits. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: list-project-commits
      description: List Project Commits
      hints:
        destructive: false
        idempotent: true
        readOnly: true
      call: wakatime-api-v1-commits.listProjectCommits
      with:
        project: tools.project
        page: tools.page
        author: tools.author
      outputParameters:
      - type: object
        mapping: $.
    - name: get-project-commit
      description: Get Project Commit
      hints:
        destructive: false
        idempotent: true
        readOnly: true
      call: wakatime-api-v1-commits.getProjectCommit
      with:
        project: tools.project
        hash: tools.hash
      outputParameters:
      - type: object
        mapping: $.