naftiko: 1.0.0-alpha2 info: label: CubeFS Master API — MetaPartitions description: 'CubeFS Master API — MetaPartitions. 2 operations. Lead operation: CubeFS Create a metadata partition. Self-contained Naftiko capability covering one Cubefs business surface.' tags: - Cubefs - MetaPartitions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CUBEFS_API_KEY: CUBEFS_API_KEY capability: consumes: - type: http namespace: master-metapartitions baseUri: http://{masterHost}:{masterPort} description: CubeFS Master API — MetaPartitions business capability. Self-contained, no shared references. resources: - name: metaPartition-create path: /metaPartition/create operations: - name: createmetapartition method: GET description: CubeFS Create a metadata partition outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: query type: string description: Name of the volume to create metadata partitions for. required: true - name: metaPartition-decommission path: /metaPartition/decommission operations: - name: decommissionmetapartition method: GET description: CubeFS Decommission a metadata partition outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: query type: integer description: ID of the metadata partition to decommission. required: true - name: addr in: query type: string description: Address of the metadata node hosting the partition. required: true exposes: - type: rest namespace: master-metapartitions-rest port: 8080 description: REST adapter for CubeFS Master API — MetaPartitions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/metapartition/create name: metapartition-create description: REST surface for metaPartition-create. operations: - method: GET name: createmetapartition description: CubeFS Create a metadata partition call: master-metapartitions.createmetapartition with: name: rest.name outputParameters: - type: object mapping: $. - path: /v1/metapartition/decommission name: metapartition-decommission description: REST surface for metaPartition-decommission. operations: - method: GET name: decommissionmetapartition description: CubeFS Decommission a metadata partition call: master-metapartitions.decommissionmetapartition with: id: rest.id addr: rest.addr outputParameters: - type: object mapping: $. - type: mcp namespace: master-metapartitions-mcp port: 9090 transport: http description: MCP adapter for CubeFS Master API — MetaPartitions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: cubefs-create-metadata-partition description: CubeFS Create a metadata partition hints: readOnly: true destructive: false idempotent: true call: master-metapartitions.createmetapartition with: name: tools.name outputParameters: - type: object mapping: $. - name: cubefs-decommission-metadata-partition description: CubeFS Decommission a metadata partition hints: readOnly: true destructive: false idempotent: true call: master-metapartitions.decommissionmetapartition with: id: tools.id addr: tools.addr outputParameters: - type: object mapping: $.