Windmill · Capability

Windmill API — Git Sync

Windmill API — Git Sync. 7 operations. Lead operation: Get Connected Repositories. Self-contained Naftiko capability covering one Windmill business surface.

Run with Naftiko WindmillGit Sync

What You Can Do

GET
Getglobalconnectedrepositories — Get Connected Repositories
/v1/github-app/connected-repositories
GET
Getghesconfig — Get GHES App Config
/v1/github-app/ghes-config
GET
Exportinstallation — Export GitHub Installation JWT Token
/v1/w/{workspace}/github-app/export/{installationid}
POST
Ghesinstallationcallback — GHES Installation Callback
/v1/w/{workspace}/github-app/ghes-installation-callback
POST
Importinstallation — Import GitHub Installation from JWT Token
/v1/w/{workspace}/github-app/import
POST
Installfromworkspace — Install a GitHub Installation from Another Workspace
/v1/w/{workspace}/github-app/install-from-workspace
DELETE
Deletefromworkspace — Delete a GitHub Installation from a Workspace
/v1/w/{workspace}/github-app/installation/{installation-id}

MCP Tools

get-connected-repositories

Get Connected Repositories

read-only idempotent
get-ghes-app-config

Get GHES App Config

read-only idempotent
export-github-installation-jwt-token

Export GitHub Installation JWT Token

read-only idempotent
ghes-installation-callback

GHES Installation Callback

import-github-installation-jwt-token

Import GitHub Installation from JWT Token

install-github-installation-another-workspace

Install a GitHub Installation from Another Workspace

delete-github-installation-workspace

Delete a GitHub Installation from a Workspace

idempotent

Capability Spec

windmill-git-sync.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Windmill API — Git Sync
  description: 'Windmill API — Git Sync. 7 operations. Lead operation: Get Connected Repositories. Self-contained Naftiko
    capability covering one Windmill business surface.'
  tags:
  - Windmill
  - Git Sync
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WINDMILL_API_KEY: WINDMILL_API_KEY
capability:
  consumes:
  - type: http
    namespace: windmill-git-sync
    baseUri: ''
    description: Windmill API — Git Sync business capability. Self-contained, no shared references.
    resources:
    - name: github_app-connected_repositories
      path: /github_app/connected_repositories
      operations:
      - name: getglobalconnectedrepositories
        method: GET
        description: Get Connected Repositories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: Page number for pagination (default 1)
    - name: github_app-ghes_config
      path: /github_app/ghes_config
      operations:
      - name: getghesconfig
        method: GET
        description: Get GHES App Config
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: w-workspace-github_app-export-installationId
      path: /w/{workspace}/github_app/export/{installationId}
      operations:
      - name: exportinstallation
        method: GET
        description: Export GitHub Installation JWT Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          required: true
        - name: installationId
          in: path
          type: integer
          required: true
    - name: w-workspace-github_app-ghes_installation_callback
      path: /w/{workspace}/github_app/ghes_installation_callback
      operations:
      - name: ghesinstallationcallback
        method: POST
        description: GHES Installation Callback
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: w-workspace-github_app-import
      path: /w/{workspace}/github_app/import
      operations:
      - name: importinstallation
        method: POST
        description: Import GitHub Installation from JWT Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: w-workspace-github_app-install_from_workspace
      path: /w/{workspace}/github_app/install_from_workspace
      operations:
      - name: installfromworkspace
        method: POST
        description: Install a GitHub Installation from Another Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: w-workspace-github_app-installation-installation_id
      path: /w/{workspace}/github_app/installation/{installation_id}
      operations:
      - name: deletefromworkspace
        method: DELETE
        description: Delete a GitHub Installation from a Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: installation_id
          in: path
          type: integer
          description: The ID of the GitHub installation to delete
          required: true
    authentication:
      type: bearer
      token: '{{env.WINDMILL_API_KEY}}'
  exposes:
  - type: rest
    namespace: windmill-git-sync-rest
    port: 8080
    description: REST adapter for Windmill API — Git Sync. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/github-app/connected-repositories
      name: github-app-connected-repositories
      description: REST surface for github_app-connected_repositories.
      operations:
      - method: GET
        name: getglobalconnectedrepositories
        description: Get Connected Repositories
        call: windmill-git-sync.getglobalconnectedrepositories
        with:
          page: rest.page
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/github-app/ghes-config
      name: github-app-ghes-config
      description: REST surface for github_app-ghes_config.
      operations:
      - method: GET
        name: getghesconfig
        description: Get GHES App Config
        call: windmill-git-sync.getghesconfig
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/w/{workspace}/github-app/export/{installationid}
      name: w-workspace-github-app-export-installationid
      description: REST surface for w-workspace-github_app-export-installationId.
      operations:
      - method: GET
        name: exportinstallation
        description: Export GitHub Installation JWT Token
        call: windmill-git-sync.exportinstallation
        with:
          workspace: rest.workspace
          installationId: rest.installationId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/w/{workspace}/github-app/ghes-installation-callback
      name: w-workspace-github-app-ghes-installation-callback
      description: REST surface for w-workspace-github_app-ghes_installation_callback.
      operations:
      - method: POST
        name: ghesinstallationcallback
        description: GHES Installation Callback
        call: windmill-git-sync.ghesinstallationcallback
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/w/{workspace}/github-app/import
      name: w-workspace-github-app-import
      description: REST surface for w-workspace-github_app-import.
      operations:
      - method: POST
        name: importinstallation
        description: Import GitHub Installation from JWT Token
        call: windmill-git-sync.importinstallation
        with:
          workspace: rest.workspace
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/w/{workspace}/github-app/install-from-workspace
      name: w-workspace-github-app-install-from-workspace
      description: REST surface for w-workspace-github_app-install_from_workspace.
      operations:
      - method: POST
        name: installfromworkspace
        description: Install a GitHub Installation from Another Workspace
        call: windmill-git-sync.installfromworkspace
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/w/{workspace}/github-app/installation/{installation-id}
      name: w-workspace-github-app-installation-installation-id
      description: REST surface for w-workspace-github_app-installation-installation_id.
      operations:
      - method: DELETE
        name: deletefromworkspace
        description: Delete a GitHub Installation from a Workspace
        call: windmill-git-sync.deletefromworkspace
        with:
          installation_id: rest.installation_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: windmill-git-sync-mcp
    port: 9090
    transport: http
    description: MCP adapter for Windmill API — Git Sync. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-connected-repositories
      description: Get Connected Repositories
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: windmill-git-sync.getglobalconnectedrepositories
      with:
        page: tools.page
      outputParameters:
      - type: object
        mapping: $.
    - name: get-ghes-app-config
      description: Get GHES App Config
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: windmill-git-sync.getghesconfig
      outputParameters:
      - type: object
        mapping: $.
    - name: export-github-installation-jwt-token
      description: Export GitHub Installation JWT Token
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: windmill-git-sync.exportinstallation
      with:
        workspace: tools.workspace
        installationId: tools.installationId
      outputParameters:
      - type: object
        mapping: $.
    - name: ghes-installation-callback
      description: GHES Installation Callback
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: windmill-git-sync.ghesinstallationcallback
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: import-github-installation-jwt-token
      description: Import GitHub Installation from JWT Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: windmill-git-sync.importinstallation
      with:
        workspace: tools.workspace
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: install-github-installation-another-workspace
      description: Install a GitHub Installation from Another Workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: windmill-git-sync.installfromworkspace
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-github-installation-workspace
      description: Delete a GitHub Installation from a Workspace
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: windmill-git-sync.deletefromworkspace
      with:
        installation_id: tools.installation_id
      outputParameters:
      - type: object
        mapping: $.