naftiko: 1.0.0-alpha2 info: label: PDCP API — template/v2 description: 'PDCP API — template/v2. 1 operations. Lead operation: Search Templates. Self-contained Naftiko capability covering one Nuclei business surface.' tags: - Nuclei - template/v2 created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: NUCLEI_API_KEY: NUCLEI_API_KEY capability: consumes: - type: http namespace: nuclei-template-v2 baseUri: https://api.projectdiscovery.io description: PDCP API — template/v2 business capability. Self-contained, no shared references. resources: - name: v2-template-search path: /v2/template/search operations: - name: getv2templatesearch method: GET description: Search Templates outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: scope in: query type: string description: Scope of templates to search (public or private) - name: limit in: query type: integer description: Maximum number of results to return - name: offset in: query type: integer description: Number of results to skip for pagination - name: fields in: query type: string description: Specific fields to return in the response - name: sort_asc in: query type: string description: Field to sort results in ascending order - name: sort_desc in: query type: string description: Field to sort results in descending order - name: q in: query type: string description: Search query string - name: highlight in: query type: boolean description: Whether to highlight search matches in results - name: facet_size in: query type: integer description: Number of facets to return in the response - name: X-Team-Id in: header type: string authentication: type: apikey key: X-API-Key value: '{{env.NUCLEI_API_KEY}}' placement: header exposes: - type: rest namespace: nuclei-template-v2-rest port: 8080 description: REST adapter for PDCP API — template/v2. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/template/search name: v2-template-search description: REST surface for v2-template-search. operations: - method: GET name: getv2templatesearch description: Search Templates call: nuclei-template-v2.getv2templatesearch with: scope: rest.scope limit: rest.limit offset: rest.offset fields: rest.fields sort_asc: rest.sort_asc sort_desc: rest.sort_desc q: rest.q highlight: rest.highlight facet_size: rest.facet_size X-Team-Id: rest.X-Team-Id outputParameters: - type: object mapping: $. - type: mcp namespace: nuclei-template-v2-mcp port: 9090 transport: http description: MCP adapter for PDCP API — template/v2. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: search-templates description: Search Templates hints: readOnly: true destructive: false idempotent: true call: nuclei-template-v2.getv2templatesearch with: scope: tools.scope limit: tools.limit offset: tools.offset fields: tools.fields sort_asc: tools.sort_asc sort_desc: tools.sort_desc q: tools.q highlight: tools.highlight facet_size: tools.facet_size X-Team-Id: tools.X-Team-Id outputParameters: - type: object mapping: $.