GitHub · Capability

github-repos-api — Repositories

github-repos-api — Repositories. 6 operations. Lead operation: GitHub List Dependabot Alerts for Repository. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubRepositories

What You Can Do

GET
Listdependabotalertsforrepository — GitHub List Dependabot Alerts for Repository
/v1/repos/{owner}/{repo}/dependabot/alerts
GET
Listrepositorydependabotsecrets — GitHub List Repository Secrets
/v1/repos/{owner}/{repo}/dependabot/secrets
GET
Getrepositorydependabotsecretspublickey — GitHub Get Repository Public Key
/v1/repos/{owner}/{repo}/dependabot/secrets/public-key
GET
Getrepositorydependabotsecret — GitHub Get Repository Secret
/v1/repos/{owner}/{repo}/dependabot/secrets/{secret-name}
PUT
Createorupdaterepositorydependabotsecret — GitHub Create or Update Repository Secret
/v1/repos/{owner}/{repo}/dependabot/secrets/{secret-name}
DELETE
Deleterepositorydependabotsecret — GitHub Delete Repository Secret
/v1/repos/{owner}/{repo}/dependabot/secrets/{secret-name}

MCP Tools

github-list-dependabot-alerts-repository

GitHub List Dependabot Alerts for Repository

read-only idempotent
github-list-repository-secrets

GitHub List Repository Secrets

read-only idempotent
github-get-repository-public-key

GitHub Get Repository Public Key

read-only idempotent
github-get-repository-secret

GitHub Get Repository Secret

read-only idempotent
github-create-update-repository-secret

GitHub Create or Update Repository Secret

idempotent
github-delete-repository-secret

GitHub Delete Repository Secret

idempotent

Capability Spec

repo-dependabot-repositories.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Repositories
  description: 'github-repos-api — Repositories. 6 operations. Lead operation: GitHub List Dependabot Alerts for Repository.
    Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Repositories
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repo-dependabot-repositories
    baseUri: ''
    description: github-repos-api — Repositories business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-dependabot-alerts
      path: /repos/{owner}/{repo}/dependabot/alerts
      operations:
      - name: listdependabotalertsforrepository
        method: GET
        description: GitHub List Dependabot Alerts for Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: '**Deprecated**. Page number of the results to fetch. Use cursor-based pagination with `before` or
            `after` instead.'
        - name: per_page
          in: query
          type: integer
          description: The number of results per page (max 100). For more information, see "[Using pagination in the REST
            API](https://docs.github.com/[email protected]/rest/using
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-dependabot-secrets
      path: /repos/{owner}/{repo}/dependabot/secrets
      operations:
      - name: listrepositorydependabotsecrets
        method: GET
        description: GitHub List Repository Secrets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-dependabot-secrets-public-key
      path: /repos/{owner}/{repo}/dependabot/secrets/public-key
      operations:
      - name: getrepositorydependabotsecretspublickey
        method: GET
        description: GitHub Get Repository Public Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-dependabot-secrets-secret_name
      path: /repos/{owner}/{repo}/dependabot/secrets/{secret_name}
      operations:
      - name: getrepositorydependabotsecret
        method: GET
        description: GitHub Get Repository Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: createorupdaterepositorydependabotsecret
        method: PUT
        description: GitHub Create or Update Repository Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleterepositorydependabotsecret
        method: DELETE
        description: GitHub Delete Repository Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: repo-dependabot-repositories-rest
    port: 8080
    description: REST adapter for github-repos-api — Repositories. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/dependabot/alerts
      name: repos-owner-repo-dependabot-alerts
      description: REST surface for repos-owner-repo-dependabot-alerts.
      operations:
      - method: GET
        name: listdependabotalertsforrepository
        description: GitHub List Dependabot Alerts for Repository
        call: repo-dependabot-repositories.listdependabotalertsforrepository
        with:
          page: rest.page
          per_page: rest.per_page
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/dependabot/secrets
      name: repos-owner-repo-dependabot-secrets
      description: REST surface for repos-owner-repo-dependabot-secrets.
      operations:
      - method: GET
        name: listrepositorydependabotsecrets
        description: GitHub List Repository Secrets
        call: repo-dependabot-repositories.listrepositorydependabotsecrets
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/dependabot/secrets/public-key
      name: repos-owner-repo-dependabot-secrets-public-key
      description: REST surface for repos-owner-repo-dependabot-secrets-public-key.
      operations:
      - method: GET
        name: getrepositorydependabotsecretspublickey
        description: GitHub Get Repository Public Key
        call: repo-dependabot-repositories.getrepositorydependabotsecretspublickey
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/dependabot/secrets/{secret-name}
      name: repos-owner-repo-dependabot-secrets-secret-name
      description: REST surface for repos-owner-repo-dependabot-secrets-secret_name.
      operations:
      - method: GET
        name: getrepositorydependabotsecret
        description: GitHub Get Repository Secret
        call: repo-dependabot-repositories.getrepositorydependabotsecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createorupdaterepositorydependabotsecret
        description: GitHub Create or Update Repository Secret
        call: repo-dependabot-repositories.createorupdaterepositorydependabotsecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleterepositorydependabotsecret
        description: GitHub Delete Repository Secret
        call: repo-dependabot-repositories.deleterepositorydependabotsecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repo-dependabot-repositories-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repos-api — Repositories. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: github-list-dependabot-alerts-repository
      description: GitHub List Dependabot Alerts for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-dependabot-repositories.listdependabotalertsforrepository
      with:
        page: tools.page
        per_page: tools.per_page
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-repository-secrets
      description: GitHub List Repository Secrets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-dependabot-repositories.listrepositorydependabotsecrets
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-repository-public-key
      description: GitHub Get Repository Public Key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-dependabot-repositories.getrepositorydependabotsecretspublickey
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-repository-secret
      description: GitHub Get Repository Secret
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-dependabot-repositories.getrepositorydependabotsecret
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-update-repository-secret
      description: GitHub Create or Update Repository Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repo-dependabot-repositories.createorupdaterepositorydependabotsecret
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-repository-secret
      description: GitHub Delete Repository Secret
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repo-dependabot-repositories.deleterepositorydependabotsecret
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.