GitHub · Capability

GitHub Org API — Public

GitHub Org API — Public. 7 operations. Lead operation: GitHub Get an Organization Public Key. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubPublic

What You Can Do

GET
Getanorganizationpublickey — GitHub Get an Organization Public Key
/v1/orgs/{org}/actions/secrets/public-key
GET
Getanorganizationpublickey — GitHub Get an Organization Public Key
/v1/orgs/{org}/dependabot/secrets/public-key
GET
Listpublicorganizationevents — GitHub List Public Organization Events
/v1/orgs/{org}/events
GET
Listpublicorganizationmembers — GitHub List Public Organization Members
/v1/orgs/{org}/public-members
GET
Checkpublicorganizationmembershipforuser — GitHub Check Public Organization Membership for User
/v1/orgs/{org}/public-members/{username}
PUT
Setpublicorganizationmembershipfortheauthenticateduser — GitHub Set Public Organization Membership for the Authenticated User
/v1/orgs/{org}/public-members/{username}
DELETE
Removepublicorganizationmembershipfortheauthenticateduser — GitHub Remove Public Organization Membership for the Authenticated User
/v1/orgs/{org}/public-members/{username}

MCP Tools

github-get-organization-public-key

GitHub Get an Organization Public Key

read-only idempotent
github-get-organization-public-key-2

GitHub Get an Organization Public Key

read-only idempotent
github-list-public-organization-events

GitHub List Public Organization Events

read-only idempotent
github-list-public-organization-members

GitHub List Public Organization Members

read-only idempotent
github-check-public-organization-membership

GitHub Check Public Organization Membership for User

read-only idempotent
github-set-public-organization-membership

GitHub Set Public Organization Membership for the Authenticated User

idempotent
github-remove-public-organization-membership

GitHub Remove Public Organization Membership for the Authenticated User

idempotent

Capability Spec

organizations-public.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Public
  description: 'GitHub Org API — Public. 7 operations. Lead operation: GitHub Get an Organization Public Key. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Public
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: organizations-public
    baseUri: ''
    description: GitHub Org API — Public business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-actions-secrets-public-key
      path: /orgs/{org}/actions/secrets/public-key
      operations:
      - name: getanorganizationpublickey
        method: GET
        description: GitHub Get an Organization Public Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-dependabot-secrets-public-key
      path: /orgs/{org}/dependabot/secrets/public-key
      operations:
      - name: getanorganizationpublickey
        method: GET
        description: GitHub Get an Organization Public Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-events
      path: /orgs/{org}/events
      operations:
      - name: listpublicorganizationevents
        method: GET
        description: GitHub List Public Organization Events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-public_members
      path: /orgs/{org}/public_members
      operations:
      - name: listpublicorganizationmembers
        method: GET
        description: GitHub List Public Organization Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-public_members-username
      path: /orgs/{org}/public_members/{username}
      operations:
      - name: checkpublicorganizationmembershipforuser
        method: GET
        description: GitHub Check Public Organization Membership for User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setpublicorganizationmembershipfortheauthenticateduser
        method: PUT
        description: GitHub Set Public Organization Membership for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: removepublicorganizationmembershipfortheauthenticateduser
        method: DELETE
        description: GitHub Remove Public Organization Membership for the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: organizations-public-rest
    port: 8080
    description: REST adapter for GitHub Org API — Public. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/actions/secrets/public-key
      name: orgs-org-actions-secrets-public-key
      description: REST surface for orgs-org-actions-secrets-public-key.
      operations:
      - method: GET
        name: getanorganizationpublickey
        description: GitHub Get an Organization Public Key
        call: organizations-public.getanorganizationpublickey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/dependabot/secrets/public-key
      name: orgs-org-dependabot-secrets-public-key
      description: REST surface for orgs-org-dependabot-secrets-public-key.
      operations:
      - method: GET
        name: getanorganizationpublickey
        description: GitHub Get an Organization Public Key
        call: organizations-public.getanorganizationpublickey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/events
      name: orgs-org-events
      description: REST surface for orgs-org-events.
      operations:
      - method: GET
        name: listpublicorganizationevents
        description: GitHub List Public Organization Events
        call: organizations-public.listpublicorganizationevents
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/public-members
      name: orgs-org-public-members
      description: REST surface for orgs-org-public_members.
      operations:
      - method: GET
        name: listpublicorganizationmembers
        description: GitHub List Public Organization Members
        call: organizations-public.listpublicorganizationmembers
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/public-members/{username}
      name: orgs-org-public-members-username
      description: REST surface for orgs-org-public_members-username.
      operations:
      - method: GET
        name: checkpublicorganizationmembershipforuser
        description: GitHub Check Public Organization Membership for User
        call: organizations-public.checkpublicorganizationmembershipforuser
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setpublicorganizationmembershipfortheauthenticateduser
        description: GitHub Set Public Organization Membership for the Authenticated User
        call: organizations-public.setpublicorganizationmembershipfortheauthenticateduser
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removepublicorganizationmembershipfortheauthenticateduser
        description: GitHub Remove Public Organization Membership for the Authenticated User
        call: organizations-public.removepublicorganizationmembershipfortheauthenticateduser
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: organizations-public-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Org API — Public. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-get-organization-public-key
      description: GitHub Get an Organization Public Key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-public.getanorganizationpublickey
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-organization-public-key-2
      description: GitHub Get an Organization Public Key
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-public.getanorganizationpublickey
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-public-organization-events
      description: GitHub List Public Organization Events
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-public.listpublicorganizationevents
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-public-organization-members
      description: GitHub List Public Organization Members
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-public.listpublicorganizationmembers
      outputParameters:
      - type: object
        mapping: $.
    - name: github-check-public-organization-membership
      description: GitHub Check Public Organization Membership for User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-public.checkpublicorganizationmembershipforuser
      outputParameters:
      - type: object
        mapping: $.
    - name: github-set-public-organization-membership
      description: GitHub Set Public Organization Membership for the Authenticated User
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-public.setpublicorganizationmembershipfortheauthenticateduser
      outputParameters:
      - type: object
        mapping: $.
    - name: github-remove-public-organization-membership
      description: GitHub Remove Public Organization Membership for the Authenticated User
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-public.removepublicorganizationmembershipfortheauthenticateduser
      outputParameters:
      - type: object
        mapping: $.