Mews · Capability

Connector API — Companies

Connector API — Companies. 4 operations. Lead operation: Add company. Self-contained Naftiko capability covering one Mews business surface.

Run with Naftiko MewsCompanies

What You Can Do

POST
Companiesadd — Add company
/v1/api/connector/v1/companies/add
POST
Companiesdelete — Delete companies
/v1/api/connector/v1/companies/delete
POST
Companiesgetall — Get all companies
/v1/api/connector/v1/companies/getall
POST
Companiesupdate — Update company
/v1/api/connector/v1/companies/update

MCP Tools

add-company

Add company

delete-companies

Delete companies

get-all-companies

Get all companies

read-only
update-company

Update company

Capability Spec

connector-companies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Connector API — Companies
  description: 'Connector API — Companies. 4 operations. Lead operation: Add company. Self-contained Naftiko capability covering
    one Mews business surface.'
  tags:
  - Mews
  - Companies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MEWS_API_KEY: MEWS_API_KEY
capability:
  consumes:
  - type: http
    namespace: connector-companies
    baseUri: https://api.mews.com
    description: Connector API — Companies business capability. Self-contained, no shared references.
    resources:
    - name: api-connector-v1-companies-add
      path: /api/connector/v1/companies/add
      operations:
      - name: companiesadd
        method: POST
        description: Add company
        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-companies-delete
      path: /api/connector/v1/companies/delete
      operations:
      - name: companiesdelete
        method: POST
        description: Delete companies
        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-companies-getAll
      path: /api/connector/v1/companies/getAll
      operations:
      - name: companiesgetall
        method: POST
        description: Get all companies
        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-companies-update
      path: /api/connector/v1/companies/update
      operations:
      - name: companiesupdate
        method: POST
        description: Update company
        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-companies-rest
    port: 8080
    description: REST adapter for Connector API — Companies. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/connector/v1/companies/add
      name: api-connector-v1-companies-add
      description: REST surface for api-connector-v1-companies-add.
      operations:
      - method: POST
        name: companiesadd
        description: Add company
        call: connector-companies.companiesadd
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/companies/delete
      name: api-connector-v1-companies-delete
      description: REST surface for api-connector-v1-companies-delete.
      operations:
      - method: POST
        name: companiesdelete
        description: Delete companies
        call: connector-companies.companiesdelete
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/companies/getall
      name: api-connector-v1-companies-getall
      description: REST surface for api-connector-v1-companies-getAll.
      operations:
      - method: POST
        name: companiesgetall
        description: Get all companies
        call: connector-companies.companiesgetall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/companies/update
      name: api-connector-v1-companies-update
      description: REST surface for api-connector-v1-companies-update.
      operations:
      - method: POST
        name: companiesupdate
        description: Update company
        call: connector-companies.companiesupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: connector-companies-mcp
    port: 9090
    transport: http
    description: MCP adapter for Connector API — Companies. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: add-company
      description: Add company
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-companies.companiesadd
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-companies
      description: Delete companies
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-companies.companiesdelete
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-companies
      description: Get all companies
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-companies.companiesgetall
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-company
      description: Update company
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-companies.companiesupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.