naftiko: 1.0.0-alpha2 info: label: PortainerCE API — templates description: 'PortainerCE API — templates. 2 operations. Lead operation: List available templates. Self-contained Naftiko capability covering one Portainer business surface.' tags: - Portainer - templates created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PORTAINER_API_KEY: PORTAINER_API_KEY capability: consumes: - type: http namespace: portainer-templates baseUri: '' description: PortainerCE API — templates business capability. Self-contained, no shared references. resources: - name: templates path: /templates operations: - name: templatelist method: GET description: List available templates outputRawFormat: json outputParameters: - name: result type: object value: $. - name: templates-id-file path: /templates/{id}/file operations: - name: templatefile method: POST description: Get a template's file outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: Template identifier required: true exposes: - type: rest namespace: portainer-templates-rest port: 8080 description: REST adapter for PortainerCE API — templates. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/templates name: templates description: REST surface for templates. operations: - method: GET name: templatelist description: List available templates call: portainer-templates.templatelist outputParameters: - type: object mapping: $. - path: /v1/templates/{id}/file name: templates-id-file description: REST surface for templates-id-file. operations: - method: POST name: templatefile description: Get a template's file call: portainer-templates.templatefile with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: portainer-templates-mcp port: 9090 transport: http description: MCP adapter for PortainerCE API — templates. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-available-templates description: List available templates hints: readOnly: true destructive: false idempotent: true call: portainer-templates.templatelist outputParameters: - type: object mapping: $. - name: get-template-s-file description: Get a template's file hints: readOnly: true destructive: false idempotent: false call: portainer-templates.templatefile with: id: tools.id outputParameters: - type: object mapping: $.