Strimzi · Capability

Strimzi Kafka Bridge REST API — Producer

Strimzi Kafka Bridge REST API — Producer. 2 operations. Lead operation: Send Messages to Topic. Self-contained Naftiko capability covering one Strimzi business surface.

Run with Naftiko StrimziProducer

What You Can Do

POST
Send — Send Messages to Topic
/v1/topics/{topicname}
POST
Sendtopartition — Send Messages to Partition
/v1/topics/{topicname}/partitions/{partitionid}

MCP Tools

send-messages-topic

Send Messages to Topic

send-messages-partition

Send Messages to Partition

Capability Spec

kafka-bridge-producer.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Strimzi Kafka Bridge REST API — Producer
  description: 'Strimzi Kafka Bridge REST API — Producer. 2 operations. Lead operation: Send Messages to Topic. Self-contained
    Naftiko capability covering one Strimzi business surface.'
  tags:
  - Strimzi
  - Producer
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STRIMZI_API_KEY: STRIMZI_API_KEY
capability:
  consumes:
  - type: http
    namespace: kafka-bridge-producer
    baseUri: http://localhost:8080
    description: Strimzi Kafka Bridge REST API — Producer business capability. Self-contained, no shared references.
    resources:
    - name: topics-topicname
      path: /topics/{topicname}
      operations:
      - name: send
        method: POST
        description: Send Messages to Topic
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: topicname
          in: path
          type: string
          description: The name of the Kafka topic to send messages to
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: topics-topicname-partitions-partitionid
      path: /topics/{topicname}/partitions/{partitionid}
      operations:
      - name: sendtopartition
        method: POST
        description: Send Messages to Partition
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: topicname
          in: path
          type: string
          description: The name of the Kafka topic
          required: true
        - name: partitionid
          in: path
          type: integer
          description: The partition ID to send messages to
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: kafka-bridge-producer-rest
    port: 8080
    description: REST adapter for Strimzi Kafka Bridge REST API — Producer. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/topics/{topicname}
      name: topics-topicname
      description: REST surface for topics-topicname.
      operations:
      - method: POST
        name: send
        description: Send Messages to Topic
        call: kafka-bridge-producer.send
        with:
          topicname: rest.topicname
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/topics/{topicname}/partitions/{partitionid}
      name: topics-topicname-partitions-partitionid
      description: REST surface for topics-topicname-partitions-partitionid.
      operations:
      - method: POST
        name: sendtopartition
        description: Send Messages to Partition
        call: kafka-bridge-producer.sendtopartition
        with:
          topicname: rest.topicname
          partitionid: rest.partitionid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: kafka-bridge-producer-mcp
    port: 9090
    transport: http
    description: MCP adapter for Strimzi Kafka Bridge REST API — Producer. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: send-messages-topic
      description: Send Messages to Topic
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kafka-bridge-producer.send
      with:
        topicname: tools.topicname
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: send-messages-partition
      description: Send Messages to Partition
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kafka-bridge-producer.sendtopartition
      with:
        topicname: tools.topicname
        partitionid: tools.partitionid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.