naftiko: 1.0.0-alpha2 info: label: Dokploy API — patch description: 'Dokploy API — patch. 12 operations. Lead operation: patch.create. Self-contained Naftiko capability covering one Dokploy business surface.' tags: - Dokploy - patch created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: DOKPLOY_API_KEY: DOKPLOY_API_KEY DOKPLOY_URL: DOKPLOY_URL capability: consumes: - type: http namespace: dokploy-patch baseUri: ${DOKPLOY_URL}/api description: Dokploy API — patch business capability. Self-contained, no shared references. resources: - name: create path: /patch.create operations: - name: patch-create method: POST description: patch-create outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body required: true - name: one path: /patch.one operations: - name: patch-one method: GET description: patch-one outputRawFormat: json outputParameters: - name: result type: object value: $. - name: byEntityId path: /patch.byEntityId operations: - name: patch-byEntityId method: GET description: patch-byEntityId outputRawFormat: json outputParameters: - name: result type: object value: $. - name: update path: /patch.update operations: - name: patch-update method: POST description: patch-update outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body required: true - name: delete path: /patch.delete operations: - name: patch-delete method: POST description: patch-delete outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body required: true - name: toggleEnabled path: /patch.toggleEnabled operations: - name: patch-toggleEnabled method: POST description: patch-toggleEnabled outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body required: true - name: ensureRepo path: /patch.ensureRepo operations: - name: patch-ensureRepo method: POST description: patch-ensureRepo outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body required: true - name: readRepoDirectories path: /patch.readRepoDirectories operations: - name: patch-readRepoDirectories method: GET description: patch-readRepoDirectories outputRawFormat: json outputParameters: - name: result type: object value: $. - name: readRepoFile path: /patch.readRepoFile operations: - name: patch-readRepoFile method: GET description: patch-readRepoFile outputRawFormat: json outputParameters: - name: result type: object value: $. - name: saveFileAsPatch path: /patch.saveFileAsPatch operations: - name: patch-saveFileAsPatch method: POST description: patch-saveFileAsPatch outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body required: true - name: markFileForDeletion path: /patch.markFileForDeletion operations: - name: patch-markFileForDeletion method: POST description: patch-markFileForDeletion outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body required: true - name: cleanPatchRepos path: /patch.cleanPatchRepos operations: - name: patch-cleanPatchRepos method: POST description: patch-cleanPatchRepos outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body required: true exposes: - type: rest namespace: dokploy-patch-rest port: 8080 description: REST adapter for Dokploy API — patch. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/patch.create name: create description: REST surface for create. operations: - method: POST name: patch-create description: patch-create call: dokploy-patch.patch-create with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/patch.one name: one description: REST surface for one. operations: - method: GET name: patch-one description: patch-one call: dokploy-patch.patch-one outputParameters: - type: object mapping: $. - path: /v1/patch.byEntityId name: byEntityId description: REST surface for byEntityId. operations: - method: GET name: patch-byEntityId description: patch-byEntityId call: dokploy-patch.patch-byEntityId outputParameters: - type: object mapping: $. - path: /v1/patch.update name: update description: REST surface for update. operations: - method: POST name: patch-update description: patch-update call: dokploy-patch.patch-update with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/patch.delete name: delete description: REST surface for delete. operations: - method: POST name: patch-delete description: patch-delete call: dokploy-patch.patch-delete with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/patch.toggleEnabled name: toggleEnabled description: REST surface for toggleEnabled. operations: - method: POST name: patch-toggleEnabled description: patch-toggleEnabled call: dokploy-patch.patch-toggleEnabled with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/patch.ensureRepo name: ensureRepo description: REST surface for ensureRepo. operations: - method: POST name: patch-ensureRepo description: patch-ensureRepo call: dokploy-patch.patch-ensureRepo with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/patch.readRepoDirectories name: readRepoDirectories description: REST surface for readRepoDirectories. operations: - method: GET name: patch-readRepoDirectories description: patch-readRepoDirectories call: dokploy-patch.patch-readRepoDirectories outputParameters: - type: object mapping: $. - path: /v1/patch.readRepoFile name: readRepoFile description: REST surface for readRepoFile. operations: - method: GET name: patch-readRepoFile description: patch-readRepoFile call: dokploy-patch.patch-readRepoFile outputParameters: - type: object mapping: $. - path: /v1/patch.saveFileAsPatch name: saveFileAsPatch description: REST surface for saveFileAsPatch. operations: - method: POST name: patch-saveFileAsPatch description: patch-saveFileAsPatch call: dokploy-patch.patch-saveFileAsPatch with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/patch.markFileForDeletion name: markFileForDeletion description: REST surface for markFileForDeletion. operations: - method: POST name: patch-markFileForDeletion description: patch-markFileForDeletion call: dokploy-patch.patch-markFileForDeletion with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/patch.cleanPatchRepos name: cleanPatchRepos description: REST surface for cleanPatchRepos. operations: - method: POST name: patch-cleanPatchRepos description: patch-cleanPatchRepos call: dokploy-patch.patch-cleanPatchRepos with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: dokploy-patch-mcp port: 9090 transport: http description: MCP adapter for Dokploy API — patch. One tool per consumed operation, routed inline through this capability’s consumes block. tools: - name: patch-create description: patch-create hints: readOnly: false destructive: false idempotent: false call: dokploy-patch.patch-create with: body: tools.body outputParameters: - type: object mapping: $. - name: patch-one description: patch-one hints: readOnly: true destructive: false idempotent: true call: dokploy-patch.patch-one outputParameters: - type: object mapping: $. - name: patch-byEntityId description: patch-byEntityId hints: readOnly: true destructive: false idempotent: true call: dokploy-patch.patch-byEntityId outputParameters: - type: object mapping: $. - name: patch-update description: patch-update hints: readOnly: false destructive: false idempotent: false call: dokploy-patch.patch-update with: body: tools.body outputParameters: - type: object mapping: $. - name: patch-delete description: patch-delete hints: readOnly: false destructive: false idempotent: false call: dokploy-patch.patch-delete with: body: tools.body outputParameters: - type: object mapping: $. - name: patch-toggleEnabled description: patch-toggleEnabled hints: readOnly: false destructive: false idempotent: false call: dokploy-patch.patch-toggleEnabled with: body: tools.body outputParameters: - type: object mapping: $. - name: patch-ensureRepo description: patch-ensureRepo hints: readOnly: false destructive: false idempotent: false call: dokploy-patch.patch-ensureRepo with: body: tools.body outputParameters: - type: object mapping: $. - name: patch-readRepoDirectories description: patch-readRepoDirectories hints: readOnly: true destructive: false idempotent: true call: dokploy-patch.patch-readRepoDirectories outputParameters: - type: object mapping: $. - name: patch-readRepoFile description: patch-readRepoFile hints: readOnly: true destructive: false idempotent: true call: dokploy-patch.patch-readRepoFile outputParameters: - type: object mapping: $. - name: patch-saveFileAsPatch description: patch-saveFileAsPatch hints: readOnly: false destructive: false idempotent: false call: dokploy-patch.patch-saveFileAsPatch with: body: tools.body outputParameters: - type: object mapping: $. - name: patch-markFileForDeletion description: patch-markFileForDeletion hints: readOnly: false destructive: false idempotent: false call: dokploy-patch.patch-markFileForDeletion with: body: tools.body outputParameters: - type: object mapping: $. - name: patch-cleanPatchRepos description: patch-cleanPatchRepos hints: readOnly: false destructive: false idempotent: false call: dokploy-patch.patch-cleanPatchRepos with: body: tools.body outputParameters: - type: object mapping: $.