Mews · Capability

Connector API — Commands

Connector API — Commands. 7 operations. Lead operation: Add key cutter command. Self-contained Naftiko capability covering one Mews business surface.

Run with Naftiko MewsCommands

What You Can Do

POST
Commandsaddkeycutter — Add key cutter command
/v1/api/connector/v1/commands/addkeycutter
POST
Commandsaddpaymentterminal — Add payment command
/v1/api/connector/v1/commands/addpaymentterminal
POST
Commandsaddprinter — Add printer command
/v1/api/connector/v1/commands/addprinter
POST
Commandsgetallactive — Get all commands
/v1/api/connector/v1/commands/getallactive
POST
Commandsgetallbyids — Get all commands by ids
/v1/api/connector/v1/commands/getallbyids
POST
Commandsupdate — Update command
/v1/api/connector/v1/commands/update
POST
Fiscalmachinecommandsgetall — Get all fiscal machine commands
/v1/api/connector/v1/fiscalmachinecommands/getall

MCP Tools

add-key-cutter-command

Add key cutter command

add-payment-command

Add payment command

add-printer-command

Add printer command

get-all-commands

Get all commands

read-only
get-all-commands-ids

Get all commands by ids

read-only
update-command

Update command

get-all-fiscal-machine-commands

Get all fiscal machine commands

read-only

Capability Spec

connector-commands.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Connector API — Commands
  description: 'Connector API — Commands. 7 operations. Lead operation: Add key cutter command. Self-contained Naftiko capability
    covering one Mews business surface.'
  tags:
  - Mews
  - Commands
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MEWS_API_KEY: MEWS_API_KEY
capability:
  consumes:
  - type: http
    namespace: connector-commands
    baseUri: https://api.mews.com
    description: Connector API — Commands business capability. Self-contained, no shared references.
    resources:
    - name: api-connector-v1-commands-addKeyCutter
      path: /api/connector/v1/commands/addKeyCutter
      operations:
      - name: commandsaddkeycutter
        method: POST
        description: Add key cutter command
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-commands-addPaymentTerminal
      path: /api/connector/v1/commands/addPaymentTerminal
      operations:
      - name: commandsaddpaymentterminal
        method: POST
        description: Add payment command
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-commands-addPrinter
      path: /api/connector/v1/commands/addPrinter
      operations:
      - name: commandsaddprinter
        method: POST
        description: Add printer command
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-commands-getAllActive
      path: /api/connector/v1/commands/getAllActive
      operations:
      - name: commandsgetallactive
        method: POST
        description: Get all commands
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-commands-getAllByIds
      path: /api/connector/v1/commands/getAllByIds
      operations:
      - name: commandsgetallbyids
        method: POST
        description: Get all commands by ids
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-commands-update
      path: /api/connector/v1/commands/update
      operations:
      - name: commandsupdate
        method: POST
        description: Update command
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-fiscalMachineCommands-getAll
      path: /api/connector/v1/fiscalMachineCommands/getAll
      operations:
      - name: fiscalmachinecommandsgetall
        method: POST
        description: Get all fiscal machine commands
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: connector-commands-rest
    port: 8080
    description: REST adapter for Connector API — Commands. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/connector/v1/commands/addkeycutter
      name: api-connector-v1-commands-addkeycutter
      description: REST surface for api-connector-v1-commands-addKeyCutter.
      operations:
      - method: POST
        name: commandsaddkeycutter
        description: Add key cutter command
        call: connector-commands.commandsaddkeycutter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/commands/addpaymentterminal
      name: api-connector-v1-commands-addpaymentterminal
      description: REST surface for api-connector-v1-commands-addPaymentTerminal.
      operations:
      - method: POST
        name: commandsaddpaymentterminal
        description: Add payment command
        call: connector-commands.commandsaddpaymentterminal
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/commands/addprinter
      name: api-connector-v1-commands-addprinter
      description: REST surface for api-connector-v1-commands-addPrinter.
      operations:
      - method: POST
        name: commandsaddprinter
        description: Add printer command
        call: connector-commands.commandsaddprinter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/commands/getallactive
      name: api-connector-v1-commands-getallactive
      description: REST surface for api-connector-v1-commands-getAllActive.
      operations:
      - method: POST
        name: commandsgetallactive
        description: Get all commands
        call: connector-commands.commandsgetallactive
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/commands/getallbyids
      name: api-connector-v1-commands-getallbyids
      description: REST surface for api-connector-v1-commands-getAllByIds.
      operations:
      - method: POST
        name: commandsgetallbyids
        description: Get all commands by ids
        call: connector-commands.commandsgetallbyids
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/commands/update
      name: api-connector-v1-commands-update
      description: REST surface for api-connector-v1-commands-update.
      operations:
      - method: POST
        name: commandsupdate
        description: Update command
        call: connector-commands.commandsupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/fiscalmachinecommands/getall
      name: api-connector-v1-fiscalmachinecommands-getall
      description: REST surface for api-connector-v1-fiscalMachineCommands-getAll.
      operations:
      - method: POST
        name: fiscalmachinecommandsgetall
        description: Get all fiscal machine commands
        call: connector-commands.fiscalmachinecommandsgetall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: connector-commands-mcp
    port: 9090
    transport: http
    description: MCP adapter for Connector API — Commands. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: add-key-cutter-command
      description: Add key cutter command
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-commands.commandsaddkeycutter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: add-payment-command
      description: Add payment command
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-commands.commandsaddpaymentterminal
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: add-printer-command
      description: Add printer command
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-commands.commandsaddprinter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-commands
      description: Get all commands
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-commands.commandsgetallactive
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-commands-ids
      description: Get all commands by ids
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-commands.commandsgetallbyids
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-command
      description: Update command
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-commands.commandsupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-fiscal-machine-commands
      description: Get all fiscal machine commands
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-commands.fiscalmachinecommandsgetall
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.