AgStack Foundation · Capability

AgStack Asset Registry API β€” Authentication

AgStack Asset Registry API β€” Authentication. 1 operations. Lead operation: πŸ” User Login. Self-contained Naftiko capability covering one Agstack business surface.

Run with Naftiko AgstackAuthentication

What You Can Do

POST
Post — πŸ” User Login
/v1/login

MCP Tools

user-login

πŸ” User Login

Capability Spec

asset-registry-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: AgStack Asset Registry API β€” Authentication
  description: 'AgStack Asset Registry API β€” Authentication. 1 operations. Lead operation: πŸ” User Login. Self-contained Naftiko
    capability covering one Agstack business surface.'
  tags:
  - Agstack
  - Authentication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AGSTACK_API_KEY: AGSTACK_API_KEY
capability:
  consumes:
  - type: http
    namespace: asset-registry-authentication
    baseUri: https://api-ar.agstack.org
    description: AgStack Asset Registry API β€” Authentication business capability. Self-contained, no shared references.
    resources:
    - name: login
      path: /login
      operations:
      - name: post
        method: POST
        description: πŸ” User Login
        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.AGSTACK_API_KEY}}'
  exposes:
  - type: rest
    namespace: asset-registry-authentication-rest
    port: 8080
    description: REST adapter for AgStack Asset Registry API β€” Authentication. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/login
      name: login
      description: REST surface for login.
      operations:
      - method: POST
        name: post
        description: πŸ” User Login
        call: asset-registry-authentication.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: asset-registry-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for AgStack Asset Registry API β€” Authentication. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: user-login
      description: πŸ” User Login
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: asset-registry-authentication.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.