naftiko: 1.0.0-alpha2 info: label: TiKV HTTP Management API — Debug description: 'TiKV HTTP Management API — Debug. 3 operations. Lead operation: Get CPU Profile. Self-contained Naftiko capability covering one Tikv business surface.' tags: - Tikv - Debug created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TIKV_API_KEY: TIKV_API_KEY capability: consumes: - type: http namespace: http-debug baseUri: http://localhost:20160 description: TiKV HTTP Management API — Debug business capability. Self-contained, no shared references. resources: - name: debug-pprof-profile path: /debug/pprof/profile operations: - name: getpprofprofile method: GET description: Get CPU Profile outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: seconds in: query type: integer description: Duration in seconds to profile - name: fail-failpoint path: /fail/{failpoint} operations: - name: setfailpoint method: PUT description: Set Failpoint outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: failpoint in: path type: string description: Failpoint name required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletefailpoint method: DELETE description: Delete Failpoint outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: failpoint in: path type: string required: true exposes: - type: rest namespace: http-debug-rest port: 8080 description: REST adapter for TiKV HTTP Management API — Debug. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/debug/pprof/profile name: debug-pprof-profile description: REST surface for debug-pprof-profile. operations: - method: GET name: getpprofprofile description: Get CPU Profile call: http-debug.getpprofprofile with: seconds: rest.seconds outputParameters: - type: object mapping: $. - path: /v1/fail/{failpoint} name: fail-failpoint description: REST surface for fail-failpoint. operations: - method: PUT name: setfailpoint description: Set Failpoint call: http-debug.setfailpoint with: failpoint: rest.failpoint body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletefailpoint description: Delete Failpoint call: http-debug.deletefailpoint with: failpoint: rest.failpoint outputParameters: - type: object mapping: $. - type: mcp namespace: http-debug-mcp port: 9090 transport: http description: MCP adapter for TiKV HTTP Management API — Debug. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-cpu-profile description: Get CPU Profile hints: readOnly: true destructive: false idempotent: true call: http-debug.getpprofprofile with: seconds: tools.seconds outputParameters: - type: object mapping: $. - name: set-failpoint description: Set Failpoint hints: readOnly: false destructive: false idempotent: true call: http-debug.setfailpoint with: failpoint: tools.failpoint body: tools.body outputParameters: - type: object mapping: $. - name: delete-failpoint description: Delete Failpoint hints: readOnly: false destructive: true idempotent: true call: http-debug.deletefailpoint with: failpoint: tools.failpoint outputParameters: - type: object mapping: $.