GitLab · Capability

GitLab OAuth 2.0 API — User Info

GitLab OAuth 2.0 API — User Info. 1 operations. Lead operation: GitLab Get Authenticated User Information. Self-contained Naftiko capability covering one Gitlab business surface.

Run with Naftiko GitlabUser Info

What You Can Do

GET
Getuserinfo — GitLab Get Authenticated User Information
/v1/oauth/userinfo

MCP Tools

gitlab-get-authenticated-user-information

GitLab Get Authenticated User Information

read-only idempotent

Capability Spec

oauth2-user-info.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitLab OAuth 2.0 API — User Info
  description: 'GitLab OAuth 2.0 API — User Info. 1 operations. Lead operation: GitLab Get Authenticated User Information.
    Self-contained Naftiko capability covering one Gitlab business surface.'
  tags:
  - Gitlab
  - User Info
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITLAB_API_KEY: GITLAB_API_KEY
capability:
  consumes:
  - type: http
    namespace: oauth2-user-info
    baseUri: https://gitlab.com
    description: GitLab OAuth 2.0 API — User Info business capability. Self-contained, no shared references.
    resources:
    - name: oauth-userinfo
      path: /oauth/userinfo
      operations:
      - name: getuserinfo
        method: GET
        description: GitLab Get Authenticated User Information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITLAB_API_KEY}}'
  exposes:
  - type: rest
    namespace: oauth2-user-info-rest
    port: 8080
    description: REST adapter for GitLab OAuth 2.0 API — User Info. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/oauth/userinfo
      name: oauth-userinfo
      description: REST surface for oauth-userinfo.
      operations:
      - method: GET
        name: getuserinfo
        description: GitLab Get Authenticated User Information
        call: oauth2-user-info.getuserinfo
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: oauth2-user-info-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitLab OAuth 2.0 API — User Info. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: gitlab-get-authenticated-user-information
      description: GitLab Get Authenticated User Information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: oauth2-user-info.getuserinfo
      outputParameters:
      - type: object
        mapping: $.