FOSSology · Capability

FOSSology API — auth

FOSSology API — auth. 1 operations. Lead operation: Generate a new token. Self-contained Naftiko capability covering one Fossology business surface.

Run with Naftiko Fossologyauth

What You Can Do

POST
Createtoken — Generate a new token
/v1/tokens

MCP Tools

generate-new-token

Generate a new token

Capability Spec

fossology-auth.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FOSSology API — auth
  description: 'FOSSology API — auth. 1 operations. Lead operation: Generate a new token. Self-contained Naftiko capability
    covering one Fossology business surface.'
  tags:
  - Fossology
  - auth
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FOSSOLOGY_API_KEY: FOSSOLOGY_API_KEY
capability:
  consumes:
  - type: http
    namespace: fossology-auth
    baseUri: http://localhost/repo/api/v1
    description: FOSSology API — auth business capability. Self-contained, no shared references.
    resources:
    - name: tokens
      path: /tokens
      operations:
      - name: createtoken
        method: POST
        description: Generate a new token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.FOSSOLOGY_API_KEY}}'
  exposes:
  - type: rest
    namespace: fossology-auth-rest
    port: 8080
    description: REST adapter for FOSSology API — auth. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/tokens
      name: tokens
      description: REST surface for tokens.
      operations:
      - method: POST
        name: createtoken
        description: Generate a new token
        call: fossology-auth.createtoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fossology-auth-mcp
    port: 9090
    transport: http
    description: MCP adapter for FOSSology API — auth. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: generate-new-token
      description: Generate a new token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fossology-auth.createtoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.