naftiko: 1.0.0-alpha2 info: label: Google Cloud Pub/Sub API — Topics description: 'Google Cloud Pub/Sub API — Topics. 5 operations. Lead operation: Google Cloud Pub/Sub List topics. Self-contained Naftiko capability covering one Google Cloud Pubsub business surface.' tags: - Google Cloud Pubsub - Topics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GOOGLE_CLOUD_PUBSUB_API_KEY: GOOGLE_CLOUD_PUBSUB_API_KEY capability: consumes: - type: http namespace: google-cloud-pubsub-topics baseUri: https://pubsub.googleapis.com/v1 description: Google Cloud Pub/Sub API — Topics business capability. Self-contained, no shared references. resources: - name: projects-projectId-topics path: /projects/{projectId}/topics operations: - name: listtopics method: GET description: Google Cloud Pub/Sub List topics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: projectId in: path type: string required: true - name: pageSize in: query type: integer - name: pageToken in: query type: string - name: projects-projectId-topics-topicId path: /projects/{projectId}/topics/{topicId} operations: - name: gettopic method: GET description: Google Cloud Pub/Sub Get a topic outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: projectId in: path type: string required: true - name: topicId in: path type: string required: true - name: createtopic method: PUT description: Google Cloud Pub/Sub Create a topic outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: projectId in: path type: string required: true - name: topicId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletetopic method: DELETE description: Google Cloud Pub/Sub Delete a topic outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: projectId in: path type: string required: true - name: topicId in: path type: string required: true - name: projects-projectId-topics-topicId}:publish path: /projects/{projectId}/topics/{topicId}:publish operations: - name: publishmessages method: POST description: Google Cloud Pub/Sub Publish messages outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: projectId in: path type: string required: true - name: topicId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.GOOGLE_CLOUD_PUBSUB_API_KEY}}' exposes: - type: rest namespace: google-cloud-pubsub-topics-rest port: 8080 description: REST adapter for Google Cloud Pub/Sub API — Topics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/projects/{projectid}/topics name: projects-projectid-topics description: REST surface for projects-projectId-topics. operations: - method: GET name: listtopics description: Google Cloud Pub/Sub List topics call: google-cloud-pubsub-topics.listtopics with: projectId: rest.projectId pageSize: rest.pageSize pageToken: rest.pageToken outputParameters: - type: object mapping: $. - path: /v1/projects/{projectid}/topics/{topicid} name: projects-projectid-topics-topicid description: REST surface for projects-projectId-topics-topicId. operations: - method: GET name: gettopic description: Google Cloud Pub/Sub Get a topic call: google-cloud-pubsub-topics.gettopic with: projectId: rest.projectId topicId: rest.topicId outputParameters: - type: object mapping: $. - method: PUT name: createtopic description: Google Cloud Pub/Sub Create a topic call: google-cloud-pubsub-topics.createtopic with: projectId: rest.projectId topicId: rest.topicId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletetopic description: Google Cloud Pub/Sub Delete a topic call: google-cloud-pubsub-topics.deletetopic with: projectId: rest.projectId topicId: rest.topicId outputParameters: - type: object mapping: $. - path: /v1/projects/{projectid}/topics/topicid-publish name: projects-projectid-topics-topicid-publish description: REST surface for projects-projectId-topics-topicId}:publish. operations: - method: POST name: publishmessages description: Google Cloud Pub/Sub Publish messages call: google-cloud-pubsub-topics.publishmessages with: projectId: rest.projectId topicId: rest.topicId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: google-cloud-pubsub-topics-mcp port: 9090 transport: http description: MCP adapter for Google Cloud Pub/Sub API — Topics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: google-cloud-pub-sub-list description: Google Cloud Pub/Sub List topics hints: readOnly: true destructive: false idempotent: true call: google-cloud-pubsub-topics.listtopics with: projectId: tools.projectId pageSize: tools.pageSize pageToken: tools.pageToken outputParameters: - type: object mapping: $. - name: google-cloud-pub-sub-get description: Google Cloud Pub/Sub Get a topic hints: readOnly: true destructive: false idempotent: true call: google-cloud-pubsub-topics.gettopic with: projectId: tools.projectId topicId: tools.topicId outputParameters: - type: object mapping: $. - name: google-cloud-pub-sub-create description: Google Cloud Pub/Sub Create a topic hints: readOnly: false destructive: false idempotent: true call: google-cloud-pubsub-topics.createtopic with: projectId: tools.projectId topicId: tools.topicId body: tools.body outputParameters: - type: object mapping: $. - name: google-cloud-pub-sub-delete description: Google Cloud Pub/Sub Delete a topic hints: readOnly: false destructive: true idempotent: true call: google-cloud-pubsub-topics.deletetopic with: projectId: tools.projectId topicId: tools.topicId outputParameters: - type: object mapping: $. - name: google-cloud-pub-sub-publish description: Google Cloud Pub/Sub Publish messages hints: readOnly: false destructive: false idempotent: false call: google-cloud-pubsub-topics.publishmessages with: projectId: tools.projectId topicId: tools.topicId body: tools.body outputParameters: - type: object mapping: $.