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