GitHub · Capability

github-repos-api — Environment Secrets

github-repos-api — Environment Secrets. 5 operations. Lead operation: GitHub List Environment Secrets. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubEnvironment Secrets

What You Can Do

GET
Listenvironmentsecrets — GitHub List Environment Secrets
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets
GET
Getanenvironmentpublickey — GitHub Get an Environment Public Key
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/public-key
GET
Getanenvironmentsecret — GitHub Get an Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
PUT
Createorupdateanenvironmentsecret — GitHub Create or Update an Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
DELETE
Deleteanenvironmentsecret — GitHub Delete an Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}

MCP Tools

github-list-environment-secrets

GitHub List Environment Secrets

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

GitHub Get an Environment Public Key

read-only idempotent
github-get-environment-secret

GitHub Get an Environment Secret

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

GitHub Create or Update an Environment Secret

idempotent
github-delete-environment-secret

GitHub Delete an Environment Secret

idempotent

Capability Spec

repos-environment-secrets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Environment Secrets
  description: 'github-repos-api — Environment Secrets. 5 operations. Lead operation: GitHub List Environment Secrets. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Environment Secrets
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repos-environment-secrets
    baseUri: http://localhost:8080/rest/github-repos-api/1.1.4
    description: github-repos-api — Environment Secrets business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-environments-environment_name-secrets
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets
      operations:
      - name: listenvironmentsecrets
        method: GET
        description: GitHub List Environment 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-environments-environment_name-secrets-public-key
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key
      operations:
      - name: getanenvironmentpublickey
        method: GET
        description: GitHub Get an Environment 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-environments-environment_name-secrets-secret_name
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}
      operations:
      - name: getanenvironmentsecret
        method: GET
        description: GitHub Get an Environment 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: createorupdateanenvironmentsecret
        method: PUT
        description: GitHub Create or Update an Environment 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: deleteanenvironmentsecret
        method: DELETE
        description: GitHub Delete an Environment 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: repos-environment-secrets-rest
    port: 8080
    description: REST adapter for github-repos-api — Environment Secrets. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/environments/{environment-name}/secrets
      name: repos-owner-repo-environments-environment-name-secrets
      description: REST surface for repos-owner-repo-environments-environment_name-secrets.
      operations:
      - method: GET
        name: listenvironmentsecrets
        description: GitHub List Environment Secrets
        call: repos-environment-secrets.listenvironmentsecrets
        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}/environments/{environment-name}/secrets/public-key
      name: repos-owner-repo-environments-environment-name-secrets-public-key
      description: REST surface for repos-owner-repo-environments-environment_name-secrets-public-key.
      operations:
      - method: GET
        name: getanenvironmentpublickey
        description: GitHub Get an Environment Public Key
        call: repos-environment-secrets.getanenvironmentpublickey
        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}/environments/{environment-name}/secrets/{secret-name}
      name: repos-owner-repo-environments-environment-name-secrets-secret-name
      description: REST surface for repos-owner-repo-environments-environment_name-secrets-secret_name.
      operations:
      - method: GET
        name: getanenvironmentsecret
        description: GitHub Get an Environment Secret
        call: repos-environment-secrets.getanenvironmentsecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createorupdateanenvironmentsecret
        description: GitHub Create or Update an Environment Secret
        call: repos-environment-secrets.createorupdateanenvironmentsecret
        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: deleteanenvironmentsecret
        description: GitHub Delete an Environment Secret
        call: repos-environment-secrets.deleteanenvironmentsecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repos-environment-secrets-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repos-api — Environment Secrets. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: github-list-environment-secrets
      description: GitHub List Environment Secrets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repos-environment-secrets.listenvironmentsecrets
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-environment-public-key
      description: GitHub Get an Environment Public Key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repos-environment-secrets.getanenvironmentpublickey
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-environment-secret
      description: GitHub Get an Environment Secret
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repos-environment-secrets.getanenvironmentsecret
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-update-environment-secret
      description: GitHub Create or Update an Environment Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repos-environment-secrets.createorupdateanenvironmentsecret
      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-environment-secret
      description: GitHub Delete an Environment Secret
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repos-environment-secrets.deleteanenvironmentsecret
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.