naftiko: 1.0.0-alpha2 info: label: Confluent Kafka REST Proxy API — Topic description: 'Confluent Kafka REST Proxy API — Topic. 4 operations. Lead operation: Apache kafka List Topics. Self-contained Naftiko capability covering one Apache Kafka business surface.' tags: - Apache Kafka - Topic created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: APACHE_KAFKA_API_KEY: APACHE_KAFKA_API_KEY capability: consumes: - type: http namespace: kafka-rest-proxy-topic baseUri: http://localhost:8082 description: Confluent Kafka REST Proxy API — Topic business capability. Self-contained, no shared references. resources: - name: clusters-cluster_id-topics path: /clusters/{cluster_id}/topics operations: - name: listtopics method: GET description: Apache kafka List Topics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: cluster_id in: path type: string required: true - name: createtopic method: POST description: Apache kafka Create Topic outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: cluster_id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: clusters-cluster_id-topics-topic_name path: /clusters/{cluster_id}/topics/{topic_name} operations: - name: gettopic method: GET description: Apache kafka Get Topic outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: cluster_id in: path type: string required: true - name: topic_name in: path type: string required: true - name: deletetopic method: DELETE description: Apache kafka Delete Topic outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: cluster_id in: path type: string required: true - name: topic_name in: path type: string required: true exposes: - type: rest namespace: kafka-rest-proxy-topic-rest port: 8080 description: REST adapter for Confluent Kafka REST Proxy API — Topic. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/clusters/{cluster-id}/topics name: clusters-cluster-id-topics description: REST surface for clusters-cluster_id-topics. operations: - method: GET name: listtopics description: Apache kafka List Topics call: kafka-rest-proxy-topic.listtopics with: cluster_id: rest.cluster_id outputParameters: - type: object mapping: $. - method: POST name: createtopic description: Apache kafka Create Topic call: kafka-rest-proxy-topic.createtopic with: cluster_id: rest.cluster_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/clusters/{cluster-id}/topics/{topic-name} name: clusters-cluster-id-topics-topic-name description: REST surface for clusters-cluster_id-topics-topic_name. operations: - method: GET name: gettopic description: Apache kafka Get Topic call: kafka-rest-proxy-topic.gettopic with: cluster_id: rest.cluster_id topic_name: rest.topic_name outputParameters: - type: object mapping: $. - method: DELETE name: deletetopic description: Apache kafka Delete Topic call: kafka-rest-proxy-topic.deletetopic with: cluster_id: rest.cluster_id topic_name: rest.topic_name outputParameters: - type: object mapping: $. - type: mcp namespace: kafka-rest-proxy-topic-mcp port: 9090 transport: http description: MCP adapter for Confluent Kafka REST Proxy API — Topic. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: apache-kafka-list-topics description: Apache kafka List Topics hints: readOnly: true destructive: false idempotent: true call: kafka-rest-proxy-topic.listtopics with: cluster_id: tools.cluster_id outputParameters: - type: object mapping: $. - name: apache-kafka-create-topic description: Apache kafka Create Topic hints: readOnly: false destructive: false idempotent: false call: kafka-rest-proxy-topic.createtopic with: cluster_id: tools.cluster_id body: tools.body outputParameters: - type: object mapping: $. - name: apache-kafka-get-topic description: Apache kafka Get Topic hints: readOnly: true destructive: false idempotent: true call: kafka-rest-proxy-topic.gettopic with: cluster_id: tools.cluster_id topic_name: tools.topic_name outputParameters: - type: object mapping: $. - name: apache-kafka-delete-topic description: Apache kafka Delete Topic hints: readOnly: false destructive: true idempotent: true call: kafka-rest-proxy-topic.deletetopic with: cluster_id: tools.cluster_id topic_name: tools.topic_name outputParameters: - type: object mapping: $.