GitHub · Capability

GitHub User API — Information

GitHub User API — Information. 1 operations. Lead operation: GitHub Get Contextual Information for User. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubInformation

What You Can Do

GET
Getcontextualinformationforuser — GitHub Get Contextual Information for User
/v1/users/{username}/hovercard

MCP Tools

github-get-contextual-information-user

GitHub Get Contextual Information for User

read-only idempotent

Capability Spec

users-information.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub User API — Information
  description: 'GitHub User API — Information. 1 operations. Lead operation: GitHub Get Contextual Information for User. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Information
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: users-information
    baseUri: ''
    description: GitHub User API — Information business capability. Self-contained, no shared references.
    resources:
    - name: users-username-hovercard
      path: /users/{username}/hovercard
      operations:
      - name: getcontextualinformationforuser
        method: GET
        description: GitHub Get Contextual Information for User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: subject_type
          in: query
          type: string
          description: Identifies which additional information you'd like to receive about the person's hovercard. Can be
            `organization`, `repository`, `issue`, `pull_request`. **Requ
        - name: subject_id
          in: query
          type: string
          description: Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`.
        - 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-information-rest
    port: 8080
    description: REST adapter for GitHub User API — Information. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/users/{username}/hovercard
      name: users-username-hovercard
      description: REST surface for users-username-hovercard.
      operations:
      - method: GET
        name: getcontextualinformationforuser
        description: GitHub Get Contextual Information for User
        call: users-information.getcontextualinformationforuser
        with:
          subject_type: rest.subject_type
          subject_id: rest.subject_id
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: users-information-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub User API — Information. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: github-get-contextual-information-user
      description: GitHub Get Contextual Information for User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: users-information.getcontextualinformationforuser
      with:
        subject_type: tools.subject_type
        subject_id: tools.subject_id
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.