GitHub · Capability

GitHub User API — Addresses

GitHub User API — Addresses. 2 operations. Lead operation: GitHub List Email Addresses for the Authenticated User. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubAddresses

What You Can Do

GET
Listemailaddressesfortheauthenticateduser — GitHub List Email Addresses for the Authenticated User
/v1/user/emails
GET
Listpublicemailaddressesfortheauthenticateduser — GitHub List Public Email Addresses for the Authenticated User
/v1/user/public-emails

MCP Tools

github-list-email-addresses-authenticated

GitHub List Email Addresses for the Authenticated User

read-only idempotent
github-list-public-email-addresses

GitHub List Public Email Addresses for the Authenticated User

read-only idempotent

Capability Spec

users-addresses.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub User API — Addresses
  description: 'GitHub User API — Addresses. 2 operations. Lead operation: GitHub List Email Addresses for the Authenticated
    User. Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Addresses
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: users-addresses
    baseUri: ''
    description: GitHub User API — Addresses business capability. Self-contained, no shared references.
    resources:
    - name: user-emails
      path: /user/emails
      operations:
      - name: listemailaddressesfortheauthenticateduser
        method: GET
        description: GitHub List Email Addresses for the Authenticated User
        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: user-public_emails
      path: /user/public_emails
      operations:
      - name: listpublicemailaddressesfortheauthenticateduser
        method: GET
        description: GitHub List Public Email Addresses for the Authenticated User
        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: users-addresses-rest
    port: 8080
    description: REST adapter for GitHub User API — Addresses. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/user/emails
      name: user-emails
      description: REST surface for user-emails.
      operations:
      - method: GET
        name: listemailaddressesfortheauthenticateduser
        description: GitHub List Email Addresses for the Authenticated User
        call: users-addresses.listemailaddressesfortheauthenticateduser
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/public-emails
      name: user-public-emails
      description: REST surface for user-public_emails.
      operations:
      - method: GET
        name: listpublicemailaddressesfortheauthenticateduser
        description: GitHub List Public Email Addresses for the Authenticated User
        call: users-addresses.listpublicemailaddressesfortheauthenticateduser
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: users-addresses-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub User API — Addresses. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: github-list-email-addresses-authenticated
      description: GitHub List Email Addresses for the Authenticated User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: users-addresses.listemailaddressesfortheauthenticateduser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-public-email-addresses
      description: GitHub List Public Email Addresses for the Authenticated User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: users-addresses.listpublicemailaddressesfortheauthenticateduser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.