Mews · Capability

Connector API — Message threads

Connector API — Message threads. 2 operations. Lead operation: Add message thread. Self-contained Naftiko capability covering one Mews business surface.

Run with Naftiko MewsMessage threads

What You Can Do

POST
Messagethreadsadd — Add message thread
/v1/api/connector/v1/messagethreads/add
POST
Messagethreadsgetall — Get all message threads
/v1/api/connector/v1/messagethreads/getall

MCP Tools

add-message-thread

Add message thread

get-all-message-threads

Get all message threads

read-only

Capability Spec

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