naftiko: 1.0.0-alpha2 info: label: Drupal JSON:API — Node Articles description: 'Drupal JSON:API — Node Articles. 5 operations. Lead operation: List article nodes. Self-contained Naftiko capability covering one Drupal business surface.' tags: - Drupal - Node Articles created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DRUPAL_API_KEY: DRUPAL_API_KEY capability: consumes: - type: http namespace: jsonapi-node-articles baseUri: https://example.com/jsonapi description: Drupal JSON:API — Node Articles business capability. Self-contained, no shared references. resources: - name: node-article path: /node/article operations: - name: listnodearticles method: GET description: List article nodes outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createnodearticle method: POST description: Create an article node outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: node-article-uuid path: /node/article/{uuid} operations: - name: getnodearticle method: GET description: Get an article node outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatenodearticle method: PATCH description: Update an article node outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletenodearticle method: DELETE description: Delete an article node outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.DRUPAL_API_KEY}}' exposes: - type: rest namespace: jsonapi-node-articles-rest port: 8080 description: REST adapter for Drupal JSON:API — Node Articles. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/node/article name: node-article description: REST surface for node-article. operations: - method: GET name: listnodearticles description: List article nodes call: jsonapi-node-articles.listnodearticles outputParameters: - type: object mapping: $. - method: POST name: createnodearticle description: Create an article node call: jsonapi-node-articles.createnodearticle with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/node/article/{uuid} name: node-article-uuid description: REST surface for node-article-uuid. operations: - method: GET name: getnodearticle description: Get an article node call: jsonapi-node-articles.getnodearticle outputParameters: - type: object mapping: $. - method: PATCH name: updatenodearticle description: Update an article node call: jsonapi-node-articles.updatenodearticle with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletenodearticle description: Delete an article node call: jsonapi-node-articles.deletenodearticle outputParameters: - type: object mapping: $. - type: mcp namespace: jsonapi-node-articles-mcp port: 9090 transport: http description: MCP adapter for Drupal JSON:API — Node Articles. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-article-nodes description: List article nodes hints: readOnly: true destructive: false idempotent: true call: jsonapi-node-articles.listnodearticles outputParameters: - type: object mapping: $. - name: create-article-node description: Create an article node hints: readOnly: false destructive: false idempotent: false call: jsonapi-node-articles.createnodearticle with: body: tools.body outputParameters: - type: object mapping: $. - name: get-article-node description: Get an article node hints: readOnly: true destructive: false idempotent: true call: jsonapi-node-articles.getnodearticle outputParameters: - type: object mapping: $. - name: update-article-node description: Update an article node hints: readOnly: false destructive: false idempotent: true call: jsonapi-node-articles.updatenodearticle with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-article-node description: Delete an article node hints: readOnly: false destructive: true idempotent: true call: jsonapi-node-articles.deletenodearticle outputParameters: - type: object mapping: $.