naftiko: 1.0.0-alpha2 info: label: ZAP API — pnh description: 'ZAP API — pnh. 8 operations. Lead operation: pnh. Self-contained Naftiko capability covering one Owasp Zap business surface.' tags: - Owasp Zap - pnh created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OWASP_ZAP_API_KEY: OWASP_ZAP_API_KEY capability: consumes: - type: http namespace: owasp-zap-pnh baseUri: http://zap description: ZAP API — pnh business capability. Self-contained, no shared references. resources: - name: JSON-pnh-action-monitor path: /JSON/pnh/action/monitor/ operations: - name: pnhactionmonitor method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: JSON-pnh-action-oracle path: /JSON/pnh/action/oracle/ operations: - name: pnhactionoracle method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: JSON-pnh-action-startMonitoring path: /JSON/pnh/action/startMonitoring/ operations: - name: pnhactionstartmonitoring method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: JSON-pnh-action-stopMonitoring path: /JSON/pnh/action/stopMonitoring/ operations: - name: pnhactionstopmonitoring method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: OTHER-pnh-other-fx_pnh.xpi path: /OTHER/pnh/other/fx_pnh.xpi/ operations: - name: pnhotherfxpnhxpi method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: OTHER-pnh-other-manifest path: /OTHER/pnh/other/manifest/ operations: - name: pnhothermanifest method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: OTHER-pnh-other-pnh path: /OTHER/pnh/other/pnh/ operations: - name: pnhotherpnh method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: OTHER-pnh-other-service path: /OTHER/pnh/other/service/ operations: - name: pnhotherservice method: GET description: '' outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: X-ZAP-API-Key value: '{{env.OWASP_ZAP_API_KEY}}' placement: header exposes: - type: rest namespace: owasp-zap-pnh-rest port: 8080 description: REST adapter for ZAP API — pnh. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/json/pnh/action/monitor name: json-pnh-action-monitor description: REST surface for JSON-pnh-action-monitor. operations: - method: GET name: pnhactionmonitor description: pnhactionmonitor call: owasp-zap-pnh.pnhactionmonitor outputParameters: - type: object mapping: $. - path: /v1/json/pnh/action/oracle name: json-pnh-action-oracle description: REST surface for JSON-pnh-action-oracle. operations: - method: GET name: pnhactionoracle description: pnhactionoracle call: owasp-zap-pnh.pnhactionoracle outputParameters: - type: object mapping: $. - path: /v1/json/pnh/action/startmonitoring name: json-pnh-action-startmonitoring description: REST surface for JSON-pnh-action-startMonitoring. operations: - method: GET name: pnhactionstartmonitoring description: pnhactionstartmonitoring call: owasp-zap-pnh.pnhactionstartmonitoring outputParameters: - type: object mapping: $. - path: /v1/json/pnh/action/stopmonitoring name: json-pnh-action-stopmonitoring description: REST surface for JSON-pnh-action-stopMonitoring. operations: - method: GET name: pnhactionstopmonitoring description: pnhactionstopmonitoring call: owasp-zap-pnh.pnhactionstopmonitoring outputParameters: - type: object mapping: $. - path: /v1/other/pnh/other/fx-pnh-xpi name: other-pnh-other-fx-pnh-xpi description: REST surface for OTHER-pnh-other-fx_pnh.xpi. operations: - method: GET name: pnhotherfxpnhxpi description: pnhotherfxpnhxpi call: owasp-zap-pnh.pnhotherfxpnhxpi outputParameters: - type: object mapping: $. - path: /v1/other/pnh/other/manifest name: other-pnh-other-manifest description: REST surface for OTHER-pnh-other-manifest. operations: - method: GET name: pnhothermanifest description: pnhothermanifest call: owasp-zap-pnh.pnhothermanifest outputParameters: - type: object mapping: $. - path: /v1/other/pnh/other/pnh name: other-pnh-other-pnh description: REST surface for OTHER-pnh-other-pnh. operations: - method: GET name: pnhotherpnh description: pnhotherpnh call: owasp-zap-pnh.pnhotherpnh outputParameters: - type: object mapping: $. - path: /v1/other/pnh/other/service name: other-pnh-other-service description: REST surface for OTHER-pnh-other-service. operations: - method: GET name: pnhotherservice description: pnhotherservice call: owasp-zap-pnh.pnhotherservice outputParameters: - type: object mapping: $. - type: mcp namespace: owasp-zap-pnh-mcp port: 9090 transport: http description: MCP adapter for ZAP API — pnh. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: pnhactionmonitor description: pnhactionmonitor hints: readOnly: true destructive: false idempotent: true call: owasp-zap-pnh.pnhactionmonitor outputParameters: - type: object mapping: $. - name: pnhactionoracle description: pnhactionoracle hints: readOnly: true destructive: false idempotent: true call: owasp-zap-pnh.pnhactionoracle outputParameters: - type: object mapping: $. - name: pnhactionstartmonitoring description: pnhactionstartmonitoring hints: readOnly: true destructive: false idempotent: true call: owasp-zap-pnh.pnhactionstartmonitoring outputParameters: - type: object mapping: $. - name: pnhactionstopmonitoring description: pnhactionstopmonitoring hints: readOnly: true destructive: false idempotent: true call: owasp-zap-pnh.pnhactionstopmonitoring outputParameters: - type: object mapping: $. - name: pnhotherfxpnhxpi description: pnhotherfxpnhxpi hints: readOnly: true destructive: false idempotent: true call: owasp-zap-pnh.pnhotherfxpnhxpi outputParameters: - type: object mapping: $. - name: pnhothermanifest description: pnhothermanifest hints: readOnly: true destructive: false idempotent: true call: owasp-zap-pnh.pnhothermanifest outputParameters: - type: object mapping: $. - name: pnhotherpnh description: pnhotherpnh hints: readOnly: true destructive: false idempotent: true call: owasp-zap-pnh.pnhotherpnh outputParameters: - type: object mapping: $. - name: pnhotherservice description: pnhotherservice hints: readOnly: true destructive: false idempotent: true call: owasp-zap-pnh.pnhotherservice outputParameters: - type: object mapping: $.