GitHub · Capability

GitHub Repos API — Default

GitHub Repos API — Default. 4 operations. Lead operation: Get Default Workflow Permissions For Repository. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubDefault

What You Can Do

GET
Getdefaultworkflowpermissionsforrepository — Get Default Workflow Permissions For Repository
/v1/repos/{owner}/{repo}/actions/permissions/workflow
PUT
Setdefaultworkflowpermissionsforrepository — Set Default Workflow Permissions For Repository
/v1/repos/{owner}/{repo}/actions/permissions/workflow
GET
Getcodescanningdefaultsetupconfiguration — Get Code Scanning Default Setup Configuration
/v1/repos/{owner}/{repo}/code-scanning/default-setup
PATCH
Updatecodescanningdefaultsetupconfiguration — Update Code Scanning Default Setup Configuration
/v1/repos/{owner}/{repo}/code-scanning/default-setup

MCP Tools

get-default-workflow-permissions-repository

Get Default Workflow Permissions For Repository

read-only idempotent
set-default-workflow-permissions-repository

Set Default Workflow Permissions For Repository

idempotent
get-code-scanning-default-setup

Get Code Scanning Default Setup Configuration

read-only idempotent
update-code-scanning-default-setup

Update Code Scanning Default Setup Configuration

idempotent

Capability Spec

temp-default.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Default
  description: 'GitHub Repos API — Default. 4 operations. Lead operation: Get Default Workflow Permissions For Repository.
    Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Default
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-default
    baseUri: ''
    description: GitHub Repos API — Default business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-actions-permissions-workflow
      path: /repos/{owner}/{repo}/actions/permissions/workflow
      operations:
      - name: getdefaultworkflowpermissionsforrepository
        method: GET
        description: Get Default Workflow Permissions For Repository
        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: setdefaultworkflowpermissionsforrepository
        method: PUT
        description: Set Default Workflow Permissions For Repository
        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: repos-owner-repo-code-scanning-default-setup
      path: /repos/{owner}/{repo}/code-scanning/default-setup
      operations:
      - name: getcodescanningdefaultsetupconfiguration
        method: GET
        description: Get Code Scanning Default Setup Configuration
        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: updatecodescanningdefaultsetupconfiguration
        method: PATCH
        description: Update Code Scanning Default Setup Configuration
        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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: temp-default-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Default. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/actions/permissions/workflow
      name: repos-owner-repo-actions-permissions-workflow
      description: REST surface for repos-owner-repo-actions-permissions-workflow.
      operations:
      - method: GET
        name: getdefaultworkflowpermissionsforrepository
        description: Get Default Workflow Permissions For Repository
        call: temp-default.getdefaultworkflowpermissionsforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setdefaultworkflowpermissionsforrepository
        description: Set Default Workflow Permissions For Repository
        call: temp-default.setdefaultworkflowpermissionsforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/code-scanning/default-setup
      name: repos-owner-repo-code-scanning-default-setup
      description: REST surface for repos-owner-repo-code-scanning-default-setup.
      operations:
      - method: GET
        name: getcodescanningdefaultsetupconfiguration
        description: Get Code Scanning Default Setup Configuration
        call: temp-default.getcodescanningdefaultsetupconfiguration
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecodescanningdefaultsetupconfiguration
        description: Update Code Scanning Default Setup Configuration
        call: temp-default.updatecodescanningdefaultsetupconfiguration
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: temp-default-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Default. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-default-workflow-permissions-repository
      description: Get Default Workflow Permissions For Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-default.getdefaultworkflowpermissionsforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: set-default-workflow-permissions-repository
      description: Set Default Workflow Permissions For Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-default.setdefaultworkflowpermissionsforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-code-scanning-default-setup
      description: Get Code Scanning Default Setup Configuration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-default.getcodescanningdefaultsetupconfiguration
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: update-code-scanning-default-setup
      description: Update Code Scanning Default Setup Configuration
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-default.updatecodescanningdefaultsetupconfiguration
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.