Nacos · Capability

Nacos Open API — Auth

Nacos Open API — Auth. 1 operations. Lead operation: User login. Self-contained Naftiko capability covering one Nacos business surface.

Run with Naftiko NacosAuth

What You Can Do

POST
Login — User login
/v1/v1/auth/login

MCP Tools

user-login

User login

Capability Spec

open-auth.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Nacos Open API — Auth
  description: 'Nacos Open API — Auth. 1 operations. Lead operation: User login. Self-contained Naftiko capability covering
    one Nacos business surface.'
  tags:
  - Nacos
  - Auth
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NACOS_API_KEY: NACOS_API_KEY
capability:
  consumes:
  - type: http
    namespace: open-auth
    baseUri: http://localhost:8848/nacos
    description: Nacos Open API — Auth business capability. Self-contained, no shared references.
    resources:
    - name: v1-auth-login
      path: /v1/auth/login
      operations:
      - name: login
        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: apikey
      key: accessToken
      value: '{{env.NACOS_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: open-auth-rest
    port: 8080
    description: REST adapter for Nacos Open API — Auth. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/auth/login
      name: v1-auth-login
      description: REST surface for v1-auth-login.
      operations:
      - method: POST
        name: login
        description: User login
        call: open-auth.login
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: open-auth-mcp
    port: 9090
    transport: http
    description: MCP adapter for Nacos Open API — Auth. 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: open-auth.login
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.