Portainer · Capability

PortainerCE API — gitops

PortainerCE API — gitops. 1 operations. Lead operation: preview the content of target file in the git repository. Self-contained Naftiko capability covering one Portainer business surface.

Run with Naftiko Portainergitops

What You Can Do

POST
Gitoperationrepofilepreview — preview the content of target file in the git repository
/v1/gitops/repo/file/preview

MCP Tools

preview-content-target-file-git

preview the content of target file in the git repository

read-only

Capability Spec

portainer-gitops.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PortainerCE API — gitops
  description: 'PortainerCE API — gitops. 1 operations. Lead operation: preview the content of target file in the git repository.
    Self-contained Naftiko capability covering one Portainer business surface.'
  tags:
  - Portainer
  - gitops
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTAINER_API_KEY: PORTAINER_API_KEY
capability:
  consumes:
  - type: http
    namespace: portainer-gitops
    baseUri: ''
    description: PortainerCE API — gitops business capability. Self-contained, no shared references.
    resources:
    - name: gitops-repo-file-preview
      path: /gitops/repo/file/preview
      operations:
      - name: gitoperationrepofilepreview
        method: POST
        description: preview the content of target file in the git repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: string
          description: Template details
          required: true
  exposes:
  - type: rest
    namespace: portainer-gitops-rest
    port: 8080
    description: REST adapter for PortainerCE API — gitops. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/gitops/repo/file/preview
      name: gitops-repo-file-preview
      description: REST surface for gitops-repo-file-preview.
      operations:
      - method: POST
        name: gitoperationrepofilepreview
        description: preview the content of target file in the git repository
        call: portainer-gitops.gitoperationrepofilepreview
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: portainer-gitops-mcp
    port: 9090
    transport: http
    description: MCP adapter for PortainerCE API — gitops. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: preview-content-target-file-git
      description: preview the content of target file in the git repository
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: portainer-gitops.gitoperationrepofilepreview
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.